]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: pm9g45: add missing gpio_request()
authorIlko Iliev <iliev@ronetix.at>
Tue, 13 Jun 2023 15:09:58 +0000 (17:09 +0200)
committerEugen Hristev <eugen.hristev@collabora.com>
Fri, 16 Jun 2023 09:02:02 +0000 (12:02 +0300)
This fixes the following run time error message:

set_dir_flags: error: gpio PIOD3 not reserved
set_dir_flags: error: gpio PIOC14 not reserved

Signed-off-by: Ilko Iliev <iliev@ronetix.at>
board/ronetix/pm9g45/pm9g45.c

index c56582a19485f19a0153625d1f7d33eff5f7b927..aa5c80ac64176734fb06532726795c7254cbcdda 100644 (file)
@@ -67,10 +67,12 @@ static void pm9g45_nand_hw_init(void)
 
 #ifdef CFG_SYS_NAND_READY_PIN
        /* Configure RDY/BSY */
+       gpio_request(CFG_SYS_NAND_READY_PIN, "NAND RDY/BSY");
        gpio_direction_input(CFG_SYS_NAND_READY_PIN);
 #endif
 
        /* Enable NandFlash */
+       gpio_request(CFG_SYS_NAND_ENABLE_PIN, "NAND enable");
        gpio_direction_output(CFG_SYS_NAND_ENABLE_PIN, 1);
 }
 #endif