Skip to content

Commit 042fdb7

Browse files
nmenontrini
authored andcommitted
usb: xhci: Remove assumption of DWC instance based on DRA7 SoC type
Both AM57xx and DRA7xx share the same set of base addresses for DWC controllers. The usage however differ with DWC2 instance used typically in AM57xx evms while DWC1 instances used in DRA7x platforms. Use TARGET_SOC config to differentiate so that CONFIG_AM57XX can be dropped. Eventually, this needs to be dt-fied. Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
1 parent 4361220 commit 042fdb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/usb/xhci-omap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
#ifndef _ASM_ARCH_XHCI_OMAP_H_
1111
#define _ASM_ARCH_XHCI_OMAP_H_
1212

13-
#ifdef CONFIG_DRA7XX
13+
#ifdef CONFIG_TARGET_DRA7XX_EVM
1414
#define OMAP_XHCI_BASE 0x488d0000
1515
#define OMAP_OCP1_SCP_BASE 0x4A081000
1616
#define OMAP_OTG_WRAPPER_BASE 0x488c0000
17-
#elif defined CONFIG_AM57XX
17+
#elif defined CONFIG_TARGET_AM57XX_EVM
1818
#define OMAP_XHCI_BASE 0x48890000
1919
#define OMAP_OCP1_SCP_BASE 0x4A084c00
2020
#define OMAP_OTG_WRAPPER_BASE 0x48880000

0 commit comments

Comments
 (0)