aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2022-02-07 17:09:01 -0600
committerTom Rini <trini@konsulko.com>2022-04-08 22:51:48 -0400
commit1d99e673c752bc7d55aa25b02e050741496f7109 (patch)
treee2c081865cef9411867a22f9581102b75a362b6f /common
parent34be6968c3570d8e03fcafcd60c02f315b8f4602 (diff)
downloadu-boot-1d99e673c752bc7d55aa25b02e050741496f7109.zip
u-boot-1d99e673c752bc7d55aa25b02e050741496f7109.tar.gz
u-boot-1d99e673c752bc7d55aa25b02e050741496f7109.tar.bz2
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 <eajames@linux.ibm.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index b452d4f..c9750ee 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