From e2b20f2d5ad6b061d7645528c45a4bfc4beb1f29 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 15 Apr 2013 19:47:40 -0700 Subject: snow: Configure the power button as an input GPIO. We need to read it to report its value to the payload. The kernel will reconfigure it as an external interrupt, but we'll make it a regular input for now. Change-Id: I019bd2c2731144d3b7bb53fad0c2c903874f616c Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/3096 Reviewed-by: David Hendricks Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/mainboard/google/snow/romstage.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainboard/google/snow/romstage.c b/src/mainboard/google/snow/romstage.c index 96e93dae5d..4dce4398d8 100644 --- a/src/mainboard/google/snow/romstage.c +++ b/src/mainboard/google/snow/romstage.c @@ -128,7 +128,8 @@ static void chromeos_gpios(void) enum { WP_GPIO = 6, RECMODE_GPIO = 0, - LID_GPIO = 5 + LID_GPIO = 5, + POWER_GPIO = 3 }; gpio_pt1 = (struct exynos5_gpio_part1 *)EXYNOS5_GPIO_PART1_BASE; @@ -142,6 +143,9 @@ static void chromeos_gpios(void) s5p_gpio_direction_input(&gpio_pt2->x3, LID_GPIO); s5p_gpio_set_pull(&gpio_pt2->x3, LID_GPIO, EXYNOS_GPIO_PULL_NONE); + + s5p_gpio_direction_input(&gpio_pt2->x1, POWER_GPIO); + s5p_gpio_set_pull(&gpio_pt2->x1, POWER_GPIO, EXYNOS_GPIO_PULL_NONE); } void main(void) -- cgit v1.2.3