OMAP3 core changes necessary for MUSB

Signed-off-by: Dirk Behme <dirk.be...@googlemail.com>

---
Note: OMAP3 USB code will be sent later to USB maintainer, so
      CONFIG_MUSB isn't used anywhere yet. This will avoid
      USB maintainer to change OMAP3 core files.

 cpu/arm_cortexa8/omap3/clock.c     |    5 +++++
 include/asm-arm/arch-omap3/cpu.h   |    2 ++
 include/asm-arm/arch-omap3/omap3.h |   11 +++++++++++
 3 files changed, 18 insertions(+)

Index: u-boot-main/cpu/arm_cortexa8/omap3/clock.c
===================================================================
--- u-boot-main.orig/cpu/arm_cortexa8/omap3/clock.c
+++ u-boot-main/cpu/arm_cortexa8/omap3/clock.c
@@ -377,5 +377,10 @@ void per_clocks_enable(void)
        sr32(&prcm_base->fclken_per, 0, 32, FCK_PER_ON);
        sr32(&prcm_base->iclken_per, 0, 32, ICK_PER_ON);
 
+#ifdef CONFIG_MUSB
+       /* Enable the MUSB interface clock */
+       sr32(&prcm_base->iclken1_core, 4, 1, 0x1);
+#endif
+
        sdelay(1000);
 }
Index: u-boot-main/include/asm-arm/arch-omap3/cpu.h
===================================================================
--- u-boot-main.orig/include/asm-arm/arch-omap3/cpu.h
+++ u-boot-main/include/asm-arm/arch-omap3/cpu.h
@@ -432,4 +432,6 @@ typedef struct pm {
 #define I2C_BASE2              (OMAP34XX_CORE_L4_IO_BASE + 0x72000)
 #define I2C_BASE3              (OMAP34XX_CORE_L4_IO_BASE + 0x60000)
 
+#define UDC_BASE               (OMAP34XX_CORE_L4_IO_BASE + 0xAB000)
+
 #endif /* _CPU_H */
Index: u-boot-main/include/asm-arm/arch-omap3/omap3.h
===================================================================
--- u-boot-main.orig/include/asm-arm/arch-omap3/omap3.h
+++ u-boot-main/include/asm-arm/arch-omap3/omap3.h
@@ -3,6 +3,7 @@
  * Texas Instruments, <www.ti.com>
  * Richard Woodruff <r-woodru...@ti.com>
  * Syed Mohammed Khasim <x0kha...@ti.com>
+ * Atin Malaviya <atin.malav...@gmail.com>
  *
  * See file CREDITS for list of people who contributed to this
  * project.
@@ -200,6 +201,7 @@ typedef struct gpio {
 #define LEDBPWM                        (0x1 << 5)
 
 /* I2C ID4 (slave4) register */
+#define PROTECT_KEY            0x44
 #define VAUX2_DEV_GRP          0x76
 #define VAUX2_DEDICATED                0x79
 #define VAUX3_DEV_GRP          0x7A
@@ -209,6 +211,15 @@ typedef struct gpio {
 #define VDAC_DEV_GRP           0x96
 #define VDAC_DEDICATED         0x99
 
+#define VUSB1V5_DEV_GRP                0xCC
+#define VUSB1V5_TYPE           0xCD
+#define VUSB1V8_DEV_GRP                0xCF
+#define VUSB1V8_TYPE           0xD0
+#define VUSB3V1_DEV_GRP                0xD2
+#define VUSB3V1_TYPE           0xD3
+#define VUSB_DEDICATED1                0xD8
+#define VUSB_DEDICATED2                0xD9
+
 #define DEV_GRP_P1             0x20
 #define DEV_GRP_ALL            0xE0
 
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to