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)
This commit is contained in:
Gabe Black 2013-04-15 19:59:10 -07:00
parent e2b20f2d5a
commit 5cda30845c
1 changed files with 5 additions and 3 deletions

View File

@ -36,7 +36,8 @@ enum {
enum { enum {
WP_GPIO = 6, WP_GPIO = 6,
RECMODE_GPIO = 0, RECMODE_GPIO = 0,
LID_GPIO = 5 LID_GPIO = 5,
POWER_GPIO = 3
}; };
static struct exynos5_gpio_part1 *gpio_pt1 = static struct exynos5_gpio_part1 *gpio_pt1 =
@ -72,9 +73,10 @@ void fill_lb_gpios(struct lb_gpios *gpios)
count++; count++;
/* Power: virtual GPIO active low */ /* 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].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", strncpy((char *)gpios->gpios[count].name, "power",
GPIO_MAX_NAME_LENGTH); GPIO_MAX_NAME_LENGTH);
count++; count++;