mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
board: siemens: iot2050: use the named gpio to control the user-button
User-button is controlled by the mcu domain gpio number 25. But main0 main1 mcu domain all have gpio number 25. To identify where the gpio is from, Using gpio controll base as the prefix to indicate the gpio resource. Signed-off-by: chao zeng <chao.zeng@siemens.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7b5cfe3750
commit
f750769aa3
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ static bool user_button_pressed(void)
|
|||
|
||||
memset(&gpio, 0, sizeof(gpio));
|
||||
|
||||
if (dm_gpio_lookup_name("25", &gpio) < 0 ||
|
||||
if (dm_gpio_lookup_name("gpio@42110000_25", &gpio) < 0 ||
|
||||
dm_gpio_request(&gpio, "USER button") < 0 ||
|
||||
dm_gpio_set_dir_flags(&gpio, GPIOD_IS_IN) < 0)
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue