diff options
author | Wolfgang Grandegger <wg@denx.de> | 2012-02-08 22:33:25 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-03-26 23:09:23 +0200 |
commit | 3f467529cad0789b6dcc44f5ebc595c3e47341ce (patch) | |
tree | d0624edc4bef071d11c293916797b62ec9c1579c /arch/arm/cpu/armv7/mx6 | |
parent | 4e187fbcdf602bd6661e5fe7dc3f9c17b796dc39 (diff) | |
download | u-boot-imx-3f467529cad0789b6dcc44f5ebc595c3e47341ce.zip u-boot-imx-3f467529cad0789b6dcc44f5ebc595c3e47341ce.tar.gz u-boot-imx-3f467529cad0789b6dcc44f5ebc595c3e47341ce.tar.bz2 |
usb/ehci: Add USB support for the MX6Q
Currently, only USB Host 1 is supported.
Cc: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Wolfgang Grandegger <wg@denx.de>
Diffstat (limited to 'arch/arm/cpu/armv7/mx6')
-rw-r--r-- | arch/arm/cpu/armv7/mx6/clock.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index fa3a124..ef98563 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6/clock.c @@ -36,6 +36,19 @@ enum pll_clocks { struct imx_ccm_reg *imx_ccm = (struct imx_ccm_reg *)CCM_BASE_ADDR; +void enable_usboh3_clk(unsigned char enable) +{ + u32 reg; + + reg = __raw_readl(&imx_ccm->CCGR6); + if (enable) + reg |= MXC_CCM_CCGR_CG_MASK << MXC_CCM_CCGR0_CG0_OFFSET; + else + reg &= ~(MXC_CCM_CCGR_CG_MASK << MXC_CCM_CCGR0_CG0_OFFSET); + __raw_writel(reg, &imx_ccm->CCGR6); + +} + static u32 decode_pll(enum pll_clocks pll, u32 infreq) { u32 div; |