public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/6] arm: am57xx: cl-som-am57x: fix XHCI registers base address
@ 2017-02-09  7:00 Uri Mashiach
  2017-02-09 20:29 ` Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: Uri Mashiach @ 2017-02-09  7:00 UTC (permalink / raw)
  To: u-boot

The following XHCI registers base address are set to OMAP5 values:
OMAP_XHCI_BASE, OMAP_OCP1_SCP_BASE, OMAP_OTG_WRAPPER_BASE

Captured crash for "usb start" command:
----------------------------------cut----------------------------------
=> usb start
starting USB...
USB0:   data abort
pc : [<fff63d22>]          lr : [<fff63b63>]
reloc pc : [<8081cd22>]    lr : [<8081cb63>]
sp : fdf42d08  ip : fff9e040     fp : fdf42d50
r10: fff8a998  r9 : fdf42ef0     r8 : 00000000
r7 : fdf42d28  r6 : fdf42d2c     r5 : fffa5c00  r4 : 00000000
r3 : 4a020000  r2 : 00000000     r1 : fdf42e78  r0 : fffa5c00
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...
----------------------------------cut----------------------------------

Fix by adding the CL-SOM-AM57x target to the XHCI registers base address
ifdef'ery.
A better fix should be based on a SOC family defines (currently
missing).

Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
---
 include/linux/usb/xhci-omap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/usb/xhci-omap.h b/include/linux/usb/xhci-omap.h
index 9de80d7..89665a0 100644
--- a/include/linux/usb/xhci-omap.h
+++ b/include/linux/usb/xhci-omap.h
@@ -14,7 +14,7 @@
 #define OMAP_XHCI_BASE 0x488d0000
 #define OMAP_OCP1_SCP_BASE 0x4A081000
 #define OMAP_OTG_WRAPPER_BASE 0x488c0000
-#elif defined CONFIG_TARGET_AM57XX_EVM
+#elif defined(CONFIG_TARGET_AM57XX_EVM) || defined(CONFIG_TARGET_CL_SOM_AM57X)
 #define OMAP_XHCI_BASE 0x48890000
 #define OMAP_OCP1_SCP_BASE 0x4A084c00
 #define OMAP_OTG_WRAPPER_BASE 0x48880000
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-02-14  9:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09  7:00 [U-Boot] [PATCH 1/6] arm: am57xx: cl-som-am57x: fix XHCI registers base address Uri Mashiach
2017-02-09 20:29 ` Tom Rini
2017-02-12  8:55   ` Uri Mashiach
2017-02-12 15:47     ` Tom Rini
2017-02-13 11:46       ` Lokesh Vutla
2017-02-13 12:12         ` Uri Mashiach
2017-02-13 12:33           ` Lokesh Vutla
2017-02-14  9:08             ` Uri Mashiach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox