[U-Boot] [PATCH 1/2] gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag

Faiz Abbas faiz_abbas at ti.com
Thu Mar 15 15:41:34 UTC 2018


With DM enabled in SPL, DM_FLAG_PRE_RELOC is required for
the omap_gpio driver to be bound to the gpio devices.

Therefore, add DM_FLAG_PRE_RELOC flag to the omap_gpio driver.

Signed-off-by: Faiz Abbas <faiz_abbas at ti.com>
---
 drivers/gpio/omap_gpio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c
index 7243100..559f29b 100644
--- a/drivers/gpio/omap_gpio.c
+++ b/drivers/gpio/omap_gpio.c
@@ -345,6 +345,7 @@ U_BOOT_DRIVER(gpio_omap) = {
 	.bind	= omap_gpio_bind,
 	.probe	= omap_gpio_probe,
 	.priv_auto_alloc_size = sizeof(struct gpio_bank),
+	.flags = DM_FLAG_PRE_RELOC,
 };
 
 #endif /* CONFIG_DM_GPIO */
-- 
2.7.4



More information about the U-Boot mailing list