summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2017-04-27 16:30:50 +0200
committerJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2017-04-27 16:30:50 +0200
commit6dbef0bd81fcfe2332f78d901d116bc0e3b2daf1 (patch)
treea6d4d4d935b3fffc7d71cde126f063610c53cf35
parent882ecf40c65522e4fc5a41c5b5a2dc97075b05e7 (diff)
lynx: set correct fastboot, lid, sleep button GPIOs
-rw-r--r--board/sunxi/board.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 3f631d8c60..aeca22f4bf 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -949,11 +949,11 @@ int ft_board_setup(void *blob, bd_t *bd)
#ifdef CONFIG_SUNXI_FASTBOOT_GPIO
static int fastboot_key_pressed(void)
{
- int pin = sunxi_name_to_gpio(CONFIG_SUNXI_FASTBOOT_GPIO);
+ int pin = sunxi_name_to_gpio("PL6");
gpio_request(pin, "fastboot");
gpio_direction_input(pin);
- sunxi_gpio_set_pull(SUNXI_GPM(7), SUNXI_GPIO_PULL_UP);
+ sunxi_gpio_set_pull(SUNXI_GPL(6), SUNXI_GPIO_PULL_UP);
udelay(100);
@@ -962,11 +962,11 @@ static int fastboot_key_pressed(void)
static int lid_open(void)
{
- int pin = sunxi_name_to_gpio("PM1");
+ int pin = sunxi_name_to_gpio("PL7");
gpio_request(pin, "no_autoboot");
gpio_direction_input(pin);
- sunxi_gpio_set_pull(SUNXI_GPM(1), SUNXI_GPIO_PULL_DOWN);
+ sunxi_gpio_set_pull(SUNXI_GPL(7), SUNXI_GPIO_PULL_DOWN);
udelay(100);
@@ -975,11 +975,11 @@ static int lid_open(void)
static int sleep_key_pressed(void)
{
- int pin = sunxi_name_to_gpio("PM3");
+ int pin = sunxi_name_to_gpio("PL5");
gpio_request(pin, "ums");
gpio_direction_input(pin);
- sunxi_gpio_set_pull(SUNXI_GPM(3), SUNXI_GPIO_PULL_UP);
+ sunxi_gpio_set_pull(SUNXI_GPL(5), SUNXI_GPIO_PULL_UP);
udelay(100);