summaryrefslogtreecommitdiff
path: root/src/mainboard/google/snow
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2013-04-15 19:59:10 -0700
committerGabe Black <gabeblack@chromium.org>2013-04-16 11:11:44 +0200
commit5cda30845c370d079a1ba2ff27628d76342da08d (patch)
tree58cb32d72f7f0fff7e632c5d693b035a966090d9 /src/mainboard/google/snow
parente2b20f2d5ad6b061d7645528c45a4bfc4beb1f29 (diff)
downloadcoreboot-5cda30845c370d079a1ba2ff27628d76342da08d.tar.xz
snow: Report the state of the power button GPIO in the coreboot tables.
Change-Id: Ia7ce2b7342e186c565b92211e3ac15d80ce24b38 Signed-off-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/3097 Reviewed-by: David Hendricks <dhendrix@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/google/snow')
-rw-r--r--src/mainboard/google/snow/chromeos.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainboard/google/snow/chromeos.c b/src/mainboard/google/snow/chromeos.c
index e9e03aa3ea..0c47458902 100644
--- a/src/mainboard/google/snow/chromeos.c
+++ b/src/mainboard/google/snow/chromeos.c
@@ -36,7 +36,8 @@ enum {
enum {
WP_GPIO = 6,
RECMODE_GPIO = 0,
- LID_GPIO = 5
+ LID_GPIO = 5,
+ POWER_GPIO = 3
};
static struct exynos5_gpio_part1 *gpio_pt1 =
@@ -72,9 +73,10 @@ void fill_lb_gpios(struct lb_gpios *gpios)
count++;
/* Power: virtual GPIO active low */
- gpios->gpios[count].port = -1;
+ gpios->gpios[count].port = EXYNOS5_GPX1;
gpios->gpios[count].polarity = ACTIVE_LOW;
- gpios->gpios[count].value = 1;
+ gpios->gpios[count].value =
+ s5p_gpio_get_value(&gpio_pt2->x1, POWER_GPIO);
strncpy((char *)gpios->gpios[count].name, "power",
GPIO_MAX_NAME_LENGTH);
count++;