ARM: LPC32xx: Cleanup USB clock init
Move most of usb clock initialization from lpc32xx_udc and ohci-nxp to clock.c. Also adds ohci clocks and otg clocks. Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com> Signed-off-by: Roland Stigge <stigge@antcom.de>
This commit is contained in:

committed by
Roland Stigge

parent
a0a30b6a69
commit
a408e8f423
@@ -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
|
||||
|
Reference in New Issue
Block a user