mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
board: stm32mp1: update the gpio hog support
This patch updates the current gpio hog implementation and uses the new API gpio_hog_probe_all(), activated with CONFIG_GPIO_HOG. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
9ebc326c08
commit
29e4ce3c97
1 changed files with 2 additions and 8 deletions
|
@ -670,17 +670,11 @@ static void board_ev1_init(void)
|
||||||
/* board dependent setup after realloc */
|
/* board dependent setup after realloc */
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
|
||||||
|
|
||||||
/* address of boot parameters */
|
/* address of boot parameters */
|
||||||
gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
|
gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
|
||||||
|
|
||||||
/* probe all PINCTRL for hog */
|
if (CONFIG_IS_ENABLED(DM_GPIO_HOG))
|
||||||
for (uclass_first_device(UCLASS_PINCTRL, &dev);
|
gpio_hog_probe_all();
|
||||||
dev;
|
|
||||||
uclass_next_device(&dev)) {
|
|
||||||
pr_debug("probe pincontrol = %s\n", dev->name);
|
|
||||||
}
|
|
||||||
|
|
||||||
board_key_check();
|
board_key_check();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue