From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vignesh R Date: Tue, 23 May 2017 17:25:39 +0530 Subject: [U-Boot] [PATCH 04/11] omap5/am57xx/dra7xx: board: do not register usb devices when CONFIG_DM_USB is defined In-Reply-To: <20170523115546.399-1-vigneshr@ti.com> References: <20170523115546.399-1-vigneshr@ti.com> Message-ID: <20170523115546.399-5-vigneshr@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Mugunthan V N Do not register usb devices when CONFIG_DM_USB is define. Signed-off-by: Mugunthan V N Signed-off-by: Vignesh R --- board/ti/am57xx/board.c | 2 +- board/ti/dra7xx/evm.c | 2 +- board/ti/omap5_uevm/evm.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c index 3be697a6eaad..3566f8d94972 100644 --- a/board/ti/am57xx/board.c +++ b/board/ti/am57xx/board.c @@ -688,7 +688,7 @@ int spl_start_uboot(void) } #endif -#ifdef CONFIG_USB_DWC3 +#if defined(CONFIG_USB_DWC3) && !defined(CONFIG_DM_USB) static struct dwc3_device usb_otg_ss2 = { .maximum_speed = USB_SPEED_HIGH, .base = DRA7_USB_OTG_SS2_BASE, diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index a0e2ede590ec..66f9a7252b5e 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -711,7 +711,7 @@ int board_mmc_init(bd_t *bis) } #endif -#ifdef CONFIG_USB_DWC3 +#if defined(CONFIG_USB_DWC3) && !defined(CONFIG_DM_USB) static struct dwc3_device usb_otg_ss1 = { .maximum_speed = USB_SPEED_SUPER, .base = DRA7_USB_OTG_SS1_BASE, diff --git a/board/ti/omap5_uevm/evm.c b/board/ti/omap5_uevm/evm.c index 0ca22f1fde5f..ea4083c23ad1 100644 --- a/board/ti/omap5_uevm/evm.c +++ b/board/ti/omap5_uevm/evm.c @@ -59,7 +59,7 @@ struct tca642x_bank_info tca642x_init[] = { .configuration_reg = 0x40 }, }; -#ifdef CONFIG_USB_DWC3 +#if defined(CONFIG_USB_DWC3) && !defined(CONFIG_DM_USB) static struct dwc3_device usb_otg_ss = { .maximum_speed = USB_SPEED_SUPER, .base = OMAP5XX_USB_OTG_SS_BASE, -- 2.13.0