aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-lpc32xx/include/mach/platform.h
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2012-07-03 21:45:50 +0200
committerArnd Bergmann <[email protected]>2012-07-03 21:45:50 +0200
commit47d4ed78d3ef8f3ae436042682ab0d29ce3fd639 (patch)
treebbb23f87a3233f10013c511ff4b596620364943e /arch/arm/mach-lpc32xx/include/mach/platform.h
parentc53629413409782eeafb4e314dc8c6c8094bff3b (diff)
parentdcdd1339a3cda33f216628142eea78f3d41b47fe (diff)
Merge branch 'lpc32xx/core' of git://git.antcom.de/linux-2.6 into next/soc
A second batch of core patches for lpc32xx, based on top of the first one in the lpc32xx-next branch. * 'lpc32xx/core' of git://git.antcom.de/linux-2.6: ARM: LPC32xx: Remove unused gpios ARM: LPC32xx: Remove USB and I2C init from phy3250.c ARM: LPC32xx: Cleanup USB clock init ARM: LPC32xx: Remove wrong re-initialization of MMC clock register ARM: LPC32xx: Add further bits to MMC init ARM: LPC32xx: Init MMC via clock Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'arch/arm/mach-lpc32xx/include/mach/platform.h')
-rw-r--r--arch/arm/mach-lpc32xx/include/mach/platform.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-lpc32xx/include/mach/platform.h b/arch/arm/mach-lpc32xx/include/mach/platform.h
index c584f5bb164f..acc4aabf1c7b 100644
--- a/arch/arm/mach-lpc32xx/include/mach/platform.h
+++ b/arch/arm/mach-lpc32xx/include/mach/platform.h
@@ -694,4 +694,18 @@
#define LPC32XX_GPIO_P2_MUX_CLR _GPREG(0x02C)
#define LPC32XX_GPIO_P2_MUX_STATE _GPREG(0x030)
+/*
+ * USB Otg Registers
+ */
+#define _OTGREG(x) io_p2v(LPC32XX_USB_OTG_BASE + (x))
+#define LPC32XX_USB_OTG_CLK_CTRL _OTGREG(0xFF4)
+#define LPC32XX_USB_OTG_CLK_STAT _OTGREG(0xFF8)
+
+/* USB OTG CLK CTRL bit defines */
+#define LPC32XX_USB_OTG_AHB_M_CLOCK_ON _BIT(4)
+#define LPC32XX_USB_OTG_OTG_CLOCK_ON _BIT(3)
+#define LPC32XX_USB_OTG_I2C_CLOCK_ON _BIT(2)
+#define LPC32XX_USB_OTG_DEV_CLOCK_ON _BIT(1)
+#define LPC32XX_USB_OTG_HOST_CLOCK_ON _BIT(0)
+
#endif