coreboot-kgpe-d16/src/mainboard/google
Duncan Laurie 5a45c9529a rambi: Add ACPI table support for I2C devices
In order to support probing I2C devices when the controller is
in ACPI mode the mainboard needs to decalre them in the proper
scope with the address/interrupt information.  The touchpad devices
are ATML0000/ELAN0000 and the touchscreen is ATML0001 so they can
be distinguished in userland scripts based on ID.  There is also
a special "ISTP" node that indicates whether the devices is a
touchpad (=1) or touchscreen (=0) in case this is useful to drivers.

These names may not be final but they are a starting point and can
be easily changed.

Atmel devices also have a bootloader mode which needs to be
declared as a separate device.  Unfortunately it does not work as
expected to have multiple I2cSerialBus() resources declared in a
single device and have it select properly, even with the use of
StartDependentFn(), so bootloader devices are declared separately.

The original devices are left in \_SB scope and are only enabled
if the I2C controllers are in PCI mode.  The new devices are only
enabled if the I2C controllers are in ACPI mode.

BUG=chrome-os-partner:24380
BRANCH=baytrail
TEST=manual

1) Ensure there is no change in functionality by default and that
the devices are still probed by chromeos_laptop in the kernel.
2) Enable lpss_acpi_mode=1 in devicetree.cb and kernel changes to
add _HID entries for devices in appropriate drivers.  Ensure that
the devices are probed successfully.  Further changes are needed
to the chromeos-touch-firmware scripts to load config and update
firmware based on the new ACPI _HID entries.
3) Put touchpad in bootloader mode (by flashing bad firmware) and
ensure that it is detected at address 0x25 and the firmware is
able to be updated.

Change-Id: I5b9b47ddc94474a677497271e963f62cb09438e0
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/182259
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/5045
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2014-05-15 05:05:31 +02:00
..
bolt ChromeOS boards: Always build code for bootmode straps 2014-05-08 16:26:58 +02:00
butterfly ChromeOS boards: Always build code for bootmode straps 2014-05-08 16:26:58 +02:00
falco ChromeOS boards: Always build code for bootmode straps 2014-05-08 16:26:58 +02:00
link ChromeOS boards: Always build code for bootmode straps 2014-05-08 16:26:58 +02:00
parrot ChromeOS boards: Always build code for bootmode straps 2014-05-08 16:26:58 +02:00
peppy ChromeOS boards: Always build code for bootmode straps 2014-05-08 16:26:58 +02:00
pit ChromeOS boards: Fix includes 2014-05-08 16:25:57 +02:00
rambi rambi: Add ACPI table support for I2C devices 2014-05-15 05:05:31 +02:00
slippy ChromeOS boards: Always build code for bootmode straps 2014-05-08 16:26:58 +02:00
snow ChromeOS boards: Fix includes 2014-05-08 16:25:57 +02:00
stout ChromeOS boards: Always build code for bootmode straps 2014-05-08 16:26:58 +02:00
Kconfig Remove CACHE_ROM. 2014-02-25 00:57:35 +01:00