diff options
author | Marc Jones <marcj303@gmail.com> | 2017-09-20 17:09:19 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-09-27 02:53:54 +0000 |
commit | 9cffe25ce0b06a19e3e18978ea83e006f64886a2 (patch) | |
tree | 75e79013409cf17d80ffa61d06c56a3a4170e3b5 /src/mainboard | |
parent | 469c01ebd2ae0464d469496ecf156b4559a3f506 (diff) | |
download | coreboot-9cffe25ce0b06a19e3e18978ea83e006f64886a2.tar.xz |
google/kahlee: Fix GPIO ASL
Use a single define and set the CROS GPIO ASL device to match the
Stoney Ridge GPIO HID. Update the GPIO number to 142. Also, add a DDN
field in the GPIO ASL. This addresses the TEST indicated below.
BUG=b:65597554
BRANCH=none
TEST=grep ^ /sys/devices/platform/chromeos_acpi/GPIO.*/* reports AMD0030.
Change-Id: I1d6c42c6c9a0eef25e0e99aed6d838c767f5e01f
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: https://review.coreboot.org/21614
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/kahlee/acpi/carrizo_fch.asl | 9 | ||||
-rw-r--r-- | src/mainboard/google/kahlee/chromeos.c | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/mainboard/google/kahlee/acpi/carrizo_fch.asl b/src/mainboard/google/kahlee/acpi/carrizo_fch.asl index 04f563eb12..9bf7decb49 100644 --- a/src/mainboard/google/kahlee/acpi/carrizo_fch.asl +++ b/src/mainboard/google/kahlee/acpi/carrizo_fch.asl @@ -13,6 +13,8 @@ * GNU General Public License for more details. */ +#include <soc/gpio.h> + Device (AAHB) { Name (_HID, "AAHB0000") @@ -30,9 +32,10 @@ Device (AAHB) Device (GPIO) { - Name (_HID, "AMD0030") - Name (_CID, "AMD0030") - Name(_UID, 0) + Name (_HID, GPIO_DEVICE_NAME) + Name (_CID, GPIO_DEVICE_NAME) + Name (_UID, 0) + Name (_DDN, GPIO_DEVICE_DESC) Name (_CRS, ResourceTemplate() { diff --git a/src/mainboard/google/kahlee/chromeos.c b/src/mainboard/google/kahlee/chromeos.c index 156614bbb8..4c152ba0e5 100644 --- a/src/mainboard/google/kahlee/chromeos.c +++ b/src/mainboard/google/kahlee/chromeos.c @@ -21,7 +21,7 @@ #include <gpio.h> /* SPI Write protect */ -#define CROS_WP_GPIO GPIO_122 +#define CROS_WP_GPIO GPIO_142 void fill_lb_gpios(struct lb_gpios *gpios) { @@ -40,8 +40,8 @@ int get_write_protect_state(void) } static const struct cros_gpio cros_gpios[] = { - CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, CROS_GPIO_DEVICE_NAME), - CROS_GPIO_WP_AH(CROS_WP_GPIO, CROS_GPIO_DEVICE_NAME), + CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, GPIO_DEVICE_NAME), + CROS_GPIO_WP_AH(CROS_WP_GPIO, GPIO_DEVICE_NAME), }; void mainboard_chromeos_acpi_generate(void) |