summaryrefslogtreecommitdiff
path: root/board/siemens
diff options
context:
space:
mode:
authorchao zeng <chao.zeng@siemens.com>2023-02-28 19:19:20 +0100
committerTom Rini <trini@konsulko.com>2023-03-29 11:58:26 -0400
commitf750769aa35e0793ce48a676ebe344bfe1fa7444 (patch)
tree0d34096921c8022dec5c67781aa87b8f8e495afe /board/siemens
parent7b5cfe3750783a7454d640da2a4fb0c14d95aba7 (diff)
downloadu-boot-f750769aa35e0793ce48a676ebe344bfe1fa7444.tar.gz
u-boot-f750769aa35e0793ce48a676ebe344bfe1fa7444.tar.bz2
u-boot-f750769aa35e0793ce48a676ebe344bfe1fa7444.zip
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>
Diffstat (limited to 'board/siemens')
-rw-r--r--board/siemens/iot2050/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/siemens/iot2050/board.c b/board/siemens/iot2050/board.c
index 57d7009e8c..2735ae3fb7 100644
--- a/board/siemens/iot2050/board.c
+++ b/board/siemens/iot2050/board.c
@@ -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;