This patch adds CM defines used by OMAP EHCI on OMAP34xx Incorporated Paul Walmsley review comments Signed-off-by: Vikram Pandita <vikram.pandita@xxxxxx> --- arch/arm/mach-omap2/cm.h | 2 + arch/arm/mach-omap2/cm_regbits_34xx.h | 37 +++++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) Index: omap-submit/arch/arm/mach-omap2/cm_regbits_34xx.h =================================================================== --- omap-submit.orig/arch/arm/mach-omap2/cm_regbits_34xx.h 2008-02-04 16:42:02.000000000 +0530 +++ omap-submit/arch/arm/mach-omap2/cm_regbits_34xx.h 2008-02-04 16:42:25.000000000 +0530 @@ -198,6 +198,10 @@ #define OMAP3430_ST_SHA11 (1 << 1) #define OMAP3430_ST_DES1 (1 << 0) +/* CM_IDLEST3_CORE */ +#define OMAP3430_ST_USBTLL (1 << 2) +#define OMAP3430_ST_USBTLL_SHIFT 2 + /* CM_AUTOIDLE1_CORE */ #define OMAP3430_AUTO_AES2 (1 << 28) #define OMAP3430_AUTO_AES2_SHIFT 28 @@ -266,6 +270,10 @@ #define OMAP3430_AUTO_DES1 (1 << 0) #define OMAP3430_AUTO_DES1_SHIFT 0 +/* CM_AUTOIDLE3_CORE */ +#define OMAP3430_AUTO_USBTLL (1 << 2) +#define OMAP3430_AUTO_USBTLL_SHIFT 2 + /* CM_CLKSEL_CORE */ #define OMAP3430_CLKSEL_SSI_SHIFT 8 #define OMAP3430_CLKSEL_SSI_MASK (0xf << 8) @@ -384,9 +392,11 @@ /* CM_CLKEN2_PLL */ #define OMAP3430ES2_EN_PERIPH2_DPLL_LPMODE_SHIFT 10 #define OMAP3430ES2_PERIPH2_DPLL_RAMPTIME_MASK (0x3 << 8) +#define OMAP3430ES2_PERIPH2_DPLL_FREQSEL_SHIFT 4 #define OMAP3430ES2_PERIPH2_DPLL_FREQSEL_MASK (0xf << 4) #define OMAP3430ES2_EN_PERIPH2_DPLL_DRIFTGUARD_SHIFT 3 -#define OMAP3430ES2_EN_PERIPH2_DPLL_MASK (0x7 << 0) +#define OMAP3430ES2_EN_PERIPH2_DPLL_SHIFT 0 +#define OMAP3430ES2_EN_PERIPH2_DPLL_MASK (0x7 << 0) /* CM_IDLEST_CKGEN */ #define OMAP3430_ST_54M_CLK (1 << 5) @@ -396,6 +406,10 @@ #define OMAP3430_ST_PERIPH_CLK (1 << 1) #define OMAP3430_ST_CORE_CLK (1 << 0) +/* CM_IDLEST2_CKGEN */ +#define OMAP3430_ST_120M_CLK (1 << 1) +#define OMAP3430_ST_PERIPH2_CLK (1 << 0) + /* CM_AUTOIDLE_PLL */ #define OMAP3430_AUTO_PERIPH_DPLL_SHIFT 3 #define OMAP3430_AUTO_PERIPH_DPLL_MASK (0x7 << 3) @@ -424,10 +438,13 @@ #define OMAP3430_DIV_96M_MASK (0x1f << 0) /* CM_CLKSEL4_PLL */ +#define OMAP3430ES2_PERIPH2_DPLL_MULT_SHIFT 8 #define OMAP3430ES2_PERIPH2_DPLL_MULT_MASK (0x7ff << 8) +#define OMAP3430ES2_PERIPH2_DPLL_DIV_SHIFT 0 #define OMAP3430ES2_PERIPH2_DPLL_DIV_MASK (0x7f << 0) /* CM_CLKSEL5_PLL */ +#define OMAP3430ES2_DIV_120M_SHIFT 0 #define OMAP3430ES2_DIV_120M_MASK (0x1f << 0) /* CM_CLKOUT_CTRL */ @@ -629,4 +646,22 @@ #define OMAP3430ES2_EN_USBHOST_SHIFT 0 #define OMAP3430ES2_EN_USBHOST_MASK (1 << 0) +/* CM_IDLEST_USBHOST */ + +/* CM_AUTOIDLE_USBHOST */ +#define OMAP3430ES2_AUTO_USBHOST_SHIFT 0 +#define OMAP3430ES2_AUTO_USBHOST_MASK (1<<0) + +/* CM_SLEEPDEP_USBHOST */ +#define OMAP3430ES2_EN_MPU_SHIFT 1 +#define OMAP3430ES2_EN_MPU_MASK (1<<1) +#define OMAP3430ES2_EN_IVA2_SHIFT 2 +#define OMAP3430ES2_EN_IVA2_MASK (1<<2) + +/* CM_CLKSTCTRL_USBHOST */ +#define OMAP3430ES2_CLKTRCTRL_USBHOST_SHIFT 0 +#define OMAP3430ES2_CLKTRCTRL_USBHOST_MASK (3<<0) + + + #endif Index: omap-submit/arch/arm/mach-omap2/cm.h =================================================================== --- omap-submit.orig/arch/arm/mach-omap2/cm.h 2008-02-04 16:57:16.000000000 +0530 +++ omap-submit/arch/arm/mach-omap2/cm.h 2008-02-04 17:07:02.000000000 +0530 @@ -124,6 +124,8 @@ #define OMAP3430ES2_CM_CLKSEL5 0x0050 #define OMAP3430_CM_CLKSEL2_EMU 0x0050 #define OMAP3430_CM_CLKSEL3_EMU 0x0054 +#define OMAP3430_CM_IDLEST3_CORE 0x0028 +#define OMAP3430_CM_AUTOIDLE3_CORE 0x0038 - To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html