diff options
| author | Eddie James <[email protected]> | 2022-02-07 17:09:01 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-08 22:51:48 -0400 |
| commit | 1d99e673c752bc7d55aa25b02e050741496f7109 (patch) | |
| tree | e2c081865cef9411867a22f9581102b75a362b6f /common | |
| parent | 34be6968c3570d8e03fcafcd60c02f315b8f4602 (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.
Signed-off-by: Eddie James <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
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 b452d4feeb2..c9750ee1637 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -20,6 +20,7 @@ #include <serial.h> #include <spl.h> #include <asm/global_data.h> +#include <asm-generic/gpio.h> #include <asm/u-boot.h> #include <nand.h> #include <fat.h> @@ -743,6 +744,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 |
