From 6dbef0bd81fcfe2332f78d901d116bc0e3b2daf1 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 27 Apr 2017 16:30:50 +0200 Subject: lynx: set correct fastboot, lid, sleep button GPIOs --- board/sunxi/board.c | 12 ++++++------ 1 file 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); -- cgit v1.2.3