summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Yanok <ilya.yanok@cogentembedded.com>2012-08-11 00:08:20 +0400
committerVishveshwar Bhat <vishveshwar.bhat@ti.com>2012-10-23 12:18:59 +0530
commit7479f7e206412ce590adfd01d961aa5772099683 (patch)
tree99c0a7a96796609fe61d54478aa29ca31aea6be7
parentc9b2ec0cf8c851e6f8ff49624e567785ae96071f (diff)
downloadu-boot-beaglebone-7479f7e206412ce590adfd01d961aa5772099683.tar.gz
am335x: add USB-related defines
Define USB-related registers offsets. Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
-rw-r--r--arch/arm/include/asm/arch-ti81xx/cpu.h6
-rw-r--r--arch/arm/include/asm/arch-ti81xx/hardware.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-ti81xx/cpu.h b/arch/arm/include/asm/arch-ti81xx/cpu.h
index 8a396114f..65b1abb48 100644
--- a/arch/arm/include/asm/arch-ti81xx/cpu.h
+++ b/arch/arm/include/asm/arch-ti81xx/cpu.h
@@ -252,6 +252,7 @@ struct gptimer {
#define CM_CLKMODE_DPLL_PER (CM_WKUP + 0x8c)
#define CM_DIV_M2_DPLL_PER (CM_WKUP + 0xAC)
#define CM_IDLEST_DPLL_PER (CM_WKUP + 0x70)
+#define CM_CLKDCOLDO_DPLL_PER (CM_WKUP + 0x7C)
/* Display PLL */
#define CM_CLKSEL_DPLL_DISP (CM_WKUP + 0x54)
@@ -310,6 +311,7 @@ struct gptimer {
#define CM_PER_I2C2_CLKCTRL (CM_PER + 0x44) /* I2C2 */
#define CM_WKUP_GPIO0_CLKCTRL (CM_WKUP + 0x8) /* GPIO0 */
#define CM_RTC_RTC_CLKCTRL (CM_RTC + 0x0) /* RTC */
+#define CM_PER_USB0_CLKCTRL (CM_PER + 0x1C) /* OTG */
#define CM_PER_MMC0_CLKCTRL (CM_PER + 0x3C)
#define CM_PER_MMC1_CLKCTRL (CM_PER + 0xF4)
@@ -724,6 +726,10 @@ extern struct gpmc *gpmc_cfg;
#endif /* __ASSEMBLY__ */
#endif /* __KERNEL_STRICT_NAMES */
+/* OTG PHY regs */
+#define USB_CTRL0 (CTRL_BASE + 0x620)
+#define USB_CTRL1 (CTRL_BASE + 0x628)
+
/* Ethernet MAC ID from EFuse */
#define MAC_ID0_LO (CTRL_BASE + 0x630)
#define MAC_ID0_HI (CTRL_BASE + 0x634)
diff --git a/arch/arm/include/asm/arch-ti81xx/hardware.h b/arch/arm/include/asm/arch-ti81xx/hardware.h
index 433b4213e..0317f2c60 100644
--- a/arch/arm/include/asm/arch-ti81xx/hardware.h
+++ b/arch/arm/include/asm/arch-ti81xx/hardware.h
@@ -118,5 +118,9 @@
/* RTC base address */
#define AM335X_RTC_BASE 0x44E3E000
+/* OTG base addresses */
+#define AM335X_USB0_OTG_BASE 0x47401000
+#define AM335X_USB1_OTG_BASE 0x47401800
+
#endif /* __TI81XX_HARDWARE_H */