diff mbox series

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

Message ID 1521128495-4551-2-git-send-email-faiz_abbas@ti.com
State Accepted
Commit 8e14ba7bd5242ec1e92367d1cea67b66f8b958c0
Delegated to: Tom Rini
Headers show
Series Fix boot in some am335x sk boards | expand

Commit Message

Faiz Abbas March 15, 2018, 3:41 p.m. UTC
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@ti.com>
---
 drivers/gpio/omap_gpio.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini March 15, 2018, 5:58 p.m. UTC | #1
On Thu, Mar 15, 2018 at 09:11:34PM +0530, Faiz Abbas wrote:

> 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@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini March 22, 2018, 8:35 p.m. UTC | #2
On Thu, Mar 15, 2018 at 09:11:34PM +0530, Faiz Abbas wrote:

> 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@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

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 */