]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
km/ls102xa: use qrio selftest_pin for reading selftest
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
Tue, 16 Nov 2021 12:49:46 +0000 (12:49 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 1 Feb 2022 09:34:24 +0000 (15:04 +0530)
QRIO library now supports direct read of the test pin status.

Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c

index db49e8ff225ad912905f7c9ffe64c4ea8ba2110c..2be2b64df5a61423e43eb9767df4d4ec4a532609 100644 (file)
@@ -150,9 +150,8 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 #if defined(CONFIG_POST)
 int post_hotkeys_pressed(void)
 {
-       /* DIC26_SELFTEST: GPRTA0, GPA0 */
-       qrio_gpio_direction_input(QRIO_GPIO_A, 0);
-       return qrio_get_gpio(QRIO_GPIO_A, 0);
+       /* DIC26_SELFTEST: QRIO, SLFTEST */
+       return qrio_get_selftest_pin();
 }
 
 ulong post_word_load(void)