summaryrefslogtreecommitdiff
path: root/common/spl/spl.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-04-10 11:19:14 -0400
committerTom Rini <trini@konsulko.com>2022-04-10 11:19:14 -0400
commit22b7d140fa17a15e85b87cd7258fa4ff190a11a3 (patch)
treec8eb4bb3e20292dc879416ff5b9a5108b8730d04 /common/spl/spl.c
parentd46e86d25c2a504b3e2e4ab17d70b2f0be440f34 (diff)
parentc170fe0a77738df1344a805acfe53133e5d15e43 (diff)
Merge branch '2022-04-08-gpio-updates'
- Add PCA957X GPIO support, enable GPIO hogging in SPL, add gpio_request_by_line_name() for later use and add some pytests for 'gpio'
Diffstat (limited to 'common/spl/spl.c')
-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 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