diff options
author | Eddie James <eajames@linux.ibm.com> | 2022-02-07 17:09:01 -0600 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2023-07-07 18:39:49 +0200 |
commit | 031b9963f5f5181f9f6a102e4cc0b9e12d32f2ca (patch) | |
tree | 735d1dda0ff10c486315544925342ea9e69b90a3 /common | |
parent | 1758570639a6bd53e968808a624db532ad905c4b (diff) |
gpio: Enable hogging support in SPL
Use the CONFIG macros to conditionally build the GPIO hogging support in
either the SPL or U-Boot, or both, depending on the configuration. Also
call the GPIO hog probe function in the common SPL board initialization
as an equivalent to adding it to the U-Boot init sequence functions.
Upstream-Status: Backport [1d99e673c752bc7d55aa25b02e050741496f7109]
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 63c48fbf33..87e6ab390b 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -19,6 +19,7 @@ #include <serial.h> #include <spl.h> #include <asm/u-boot.h> +#include <asm-generic/gpio.h> #include <nand.h> #include <fat.h> #include <u-boot/crc.h> @@ -637,6 +638,9 @@ void board_init_r(gd_t *dummy1, ulong dummy2) } } + if (CONFIG_IS_ENABLED(GPIO_HOG)) + gpio_hog_probe_all(); + #if CONFIG_IS_ENABLED(BOARD_INIT) spl_board_init(); #endif |