From 1d99e673c752bc7d55aa25b02e050741496f7109 Mon Sep 17 00:00:00 2001 From: Eddie James Date: Mon, 7 Feb 2022 17:09:01 -0600 Subject: 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 Reviewed-by: Simon Glass --- common/spl/spl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') 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 #include #include +#include #include #include #include @@ -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 -- cgit v1.2.3