Skip to contentSkip to conversation

powerpc/83xx: Define USB1 and USB2 base addr for MPC834x

PATCH New Ramneek Mehresh 2 participants 3 messages Oct 19, 2013 – Nov 13, 2013 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/83xx: Define USB1 and USB2 base addr for MPC834x

Define base addresse for both MPH(USB1) and DR(USB2) controllers for MPC834x socs

---
 arch/powerpc/include/asm/immap_83xx.h | 5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/include/asm/immap_83xx.h +5 -0
index 3c86ff6..289f7ca 100644
@@ -763,6 +763,7 @@ typedef struct immap {
 	u8			res7[0xC0000];
 } immap_t;
 
+#ifndef	CONFIG_MPC834x
 #ifdef CONFIG_HAS_FSL_MPH_USB
 #define CONFIG_SYS_MPC83xx_USB1_OFFSET  0x22000	/* use the MPH controller */
 #define CONFIG_SYS_MPC83xx_USB2_OFFSET	0
@@ -770,6 +771,10 @@ typedef struct immap {
 #define CONFIG_SYS_MPC83xx_USB1_OFFSET	0
 #define CONFIG_SYS_MPC83xx_USB2_OFFSET  0x23000	/* use the DR controller */
 #endif
+#else
+#define CONFIG_SYS_MPC83xx_USB1_OFFSET	0x22000
+#define CONFIG_SYS_MPC83xx_USB2_OFFSET  0x23000
+#endif
 
 #elif defined(CONFIG_MPC8313)
 typedef struct immap {
Signature · 1 line
1.7.11.7
#1 lore raw

PATCH 1/1 powerpc/83xx: Define USB1 and USB2 base addr for MPC834x

Kim,

I can take this in if you ack it.

York

Quoted 32 lines · Ramneek Mehresh

Define base addresse for both MPH(USB1) and DR(USB2) controllers for MPC834x socs

---
 arch/powerpc/include/asm/immap_83xx.h | 5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/include/asm/immap_83xx.h +5 -0
index 3c86ff6..289f7ca 100644
@@ -763,6 +763,7 @@ typedef struct immap {
 	u8			res7[0xC0000];
 } immap_t;
 
+#ifndef	CONFIG_MPC834x
 #ifdef CONFIG_HAS_FSL_MPH_USB
 #define CONFIG_SYS_MPC83xx_USB1_OFFSET  0x22000	/* use the MPH controller */
 #define CONFIG_SYS_MPC83xx_USB2_OFFSET	0
@@ -770,6 +771,10 @@ typedef struct immap {
 #define CONFIG_SYS_MPC83xx_USB1_OFFSET	0
 #define CONFIG_SYS_MPC83xx_USB2_OFFSET  0x23000	/* use the DR controller */
 #endif
+#else
+#define CONFIG_SYS_MPC83xx_USB1_OFFSET	0x22000
+#define CONFIG_SYS_MPC83xx_USB2_OFFSET  0x23000
+#endif
 
 #elif defined(CONFIG_MPC8313)
 typedef struct immap {