diff mbox

[U-Boot,v2,71/80] dm: usb: tegra: Move to driver model for USB

Message ID 1427307788-7496-72-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass March 25, 2015, 6:22 p.m. UTC
Move Tegra boards over to driver model for USB EHCI. There are a few things
that are no-longer needed (e.g. in fdtdec.h) but these will be cleaned up
in a later patch to be applied one we are confident this change is fully
tested.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 arch/arm/mach-tegra/Kconfig | 3 +++
 board/nvidia/common/board.c | 2 ++
 2 files changed, 5 insertions(+)

Comments

Simon Glass April 7, 2015, 7:11 p.m. UTC | #1
On 25 March 2015 at 12:22, Simon Glass <sjg@chromium.org> wrote:
> Move Tegra boards over to driver model for USB EHCI. There are a few things
> that are no-longer needed (e.g. in fdtdec.h) but these will be cleaned up
> in a later patch to be applied one we are confident this change is fully
> tested.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2: None
>
>  arch/arm/mach-tegra/Kconfig | 3 +++
>  board/nvidia/common/board.c | 2 ++
>  2 files changed, 5 insertions(+)

Applied to u-boot-dm/next.
diff mbox

Patch

diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index fccfd79..3625035 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -47,6 +47,9 @@  config DM_I2C
 config DM_GPIO
 	default y
 
+config DM_USB
+	default y
+
 source "arch/arm/mach-tegra/tegra20/Kconfig"
 source "arch/arm/mach-tegra/tegra30/Kconfig"
 source "arch/arm/mach-tegra/tegra114/Kconfig"
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 018dddb..a97035c 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -128,8 +128,10 @@  int board_init(void)
 
 #ifdef CONFIG_USB_EHCI_TEGRA
 	pin_mux_usb();
+#ifndef CONFIG_DM_USB
 	usb_process_devicetree(gd->fdt_blob);
 #endif
+#endif
 
 #ifdef CONFIG_LCD
 	tegra_lcd_check_next_stage(gd->fdt_blob, 0);