aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/cm-regbits-44xx.h
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2011-07-01 22:30:23 -0400
committerTony Lindgren <tony@atomide.com>2011-07-08 05:18:24 -0400
commit6b54b4991289762887a572785e296d15adbc1550 (patch)
tree7fe9e8175f5c5d90a22314f1727efab4c0071bcb /arch/arm/mach-omap2/cm-regbits-44xx.h
parentcc0170b2d929b8a31fec3da66a132822a99f550b (diff)
OMAP4: PRCM: OMAP4460 specific PRM and CM register bitshifts
This patch adds additional register bitshifts for registers added in OMAP4460 platform. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Benoit Cousson <b-cousson@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Acked-by: Paul Walmsley <paul@pwsan.com> [tony@atomide.com: updated to apply on cleanup patches] Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/cm-regbits-44xx.h')
-rw-r--r--arch/arm/mach-omap2/cm-regbits-44xx.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/cm-regbits-44xx.h b/arch/arm/mach-omap2/cm-regbits-44xx.h
index 9d47a05b17b4..28e20d3a9f77 100644
--- a/arch/arm/mach-omap2/cm-regbits-44xx.h
+++ b/arch/arm/mach-omap2/cm-regbits-44xx.h
@@ -106,6 +106,10 @@
106#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_SHIFT 9 106#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_SHIFT 9
107#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_MASK (1 << 9) 107#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_MASK (1 << 9)
108 108
109/* Used by CM_L4CFG_CLKSTCTRL */
110#define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_SHIFT 9
111#define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_MASK (1 << 9)
112
109/* Used by CM_CEFUSE_CLKSTCTRL */ 113/* Used by CM_CEFUSE_CLKSTCTRL */
110#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_SHIFT 9 114#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_SHIFT 9
111#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_MASK (1 << 9) 115#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_MASK (1 << 9)
@@ -418,6 +422,10 @@
418#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_SHIFT 11 422#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_SHIFT 11
419#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_MASK (1 << 11) 423#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_MASK (1 << 11)
420 424
425/* Used by CM_WKUP_CLKSTCTRL */
426#define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_SHIFT 13
427#define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_MASK (1 << 13)
428
421/* 429/*
422 * Used by CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, 430 * Used by CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL,
423 * CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, 431 * CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL,
@@ -449,6 +457,10 @@
449#define OMAP4430_CLKSEL_60M_SHIFT 24 457#define OMAP4430_CLKSEL_60M_SHIFT 24
450#define OMAP4430_CLKSEL_60M_MASK (1 << 24) 458#define OMAP4430_CLKSEL_60M_MASK (1 << 24)
451 459
460/* Used by CM_MPU_MPU_CLKCTRL */
461#define OMAP4460_CLKSEL_ABE_DIV_MODE_SHIFT 25
462#define OMAP4460_CLKSEL_ABE_DIV_MODE_MASK (1 << 25)
463
452/* Used by CM1_ABE_AESS_CLKCTRL */ 464/* Used by CM1_ABE_AESS_CLKCTRL */
453#define OMAP4430_CLKSEL_AESS_FCLK_SHIFT 24 465#define OMAP4430_CLKSEL_AESS_FCLK_SHIFT 24
454#define OMAP4430_CLKSEL_AESS_FCLK_MASK (1 << 24) 466#define OMAP4430_CLKSEL_AESS_FCLK_MASK (1 << 24)
@@ -468,6 +480,10 @@
468#define OMAP4430_CLKSEL_DIV_SHIFT 24 480#define OMAP4430_CLKSEL_DIV_SHIFT 24
469#define OMAP4430_CLKSEL_DIV_MASK (1 << 24) 481#define OMAP4430_CLKSEL_DIV_MASK (1 << 24)
470 482
483/* Used by CM_MPU_MPU_CLKCTRL */
484#define OMAP4460_CLKSEL_EMIF_DIV_MODE_SHIFT 24
485#define OMAP4460_CLKSEL_EMIF_DIV_MODE_MASK (1 << 24)
486
471/* Used by CM_CAM_FDIF_CLKCTRL */ 487/* Used by CM_CAM_FDIF_CLKCTRL */
472#define OMAP4430_CLKSEL_FCLK_SHIFT 24 488#define OMAP4430_CLKSEL_FCLK_SHIFT 24
473#define OMAP4430_CLKSEL_FCLK_MASK (0x3 << 24) 489#define OMAP4430_CLKSEL_FCLK_MASK (0x3 << 24)
@@ -572,6 +588,14 @@
572#define OMAP4430_D2D_STATDEP_SHIFT 18 588#define OMAP4430_D2D_STATDEP_SHIFT 18
573#define OMAP4430_D2D_STATDEP_MASK (1 << 18) 589#define OMAP4430_D2D_STATDEP_MASK (1 << 18)
574 590
591/* Used by CM_CLKSEL_DPLL_MPU */
592#define OMAP4460_DCC_COUNT_MAX_SHIFT 24
593#define OMAP4460_DCC_COUNT_MAX_MASK (0xff << 24)
594
595/* Used by CM_CLKSEL_DPLL_MPU */
596#define OMAP4460_DCC_EN_SHIFT 22
597#define OMAP4460_DCC_EN_MASK (1 << 22)
598
575/* 599/*
576 * Used by CM_SSC_DELTAMSTEP_DPLL_ABE, CM_SSC_DELTAMSTEP_DPLL_CORE, 600 * Used by CM_SSC_DELTAMSTEP_DPLL_ABE, CM_SSC_DELTAMSTEP_DPLL_CORE,
577 * CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE, CM_SSC_DELTAMSTEP_DPLL_DDRPHY, 601 * CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE, CM_SSC_DELTAMSTEP_DPLL_DDRPHY,
@@ -582,6 +606,10 @@
582#define OMAP4430_DELTAMSTEP_SHIFT 0 606#define OMAP4430_DELTAMSTEP_SHIFT 0
583#define OMAP4430_DELTAMSTEP_MASK (0xfffff << 0) 607#define OMAP4430_DELTAMSTEP_MASK (0xfffff << 0)
584 608
609/* Renamed from DELTAMSTEP Used by CM_SSC_DELTAMSTEP_DPLL_USB */
610#define OMAP4460_DELTAMSTEP_0_20_SHIFT 0
611#define OMAP4460_DELTAMSTEP_0_20_MASK (0x1fffff << 0)
612
585/* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */ 613/* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
586#define OMAP4430_DLL_OVERRIDE_SHIFT 2 614#define OMAP4430_DLL_OVERRIDE_SHIFT 2
587#define OMAP4430_DLL_OVERRIDE_MASK (1 << 2) 615#define OMAP4430_DLL_OVERRIDE_MASK (1 << 2)
@@ -1204,6 +1232,10 @@
1204#define OMAP4430_MODULEMODE_SHIFT 0 1232#define OMAP4430_MODULEMODE_SHIFT 0
1205#define OMAP4430_MODULEMODE_MASK (0x3 << 0) 1233#define OMAP4430_MODULEMODE_MASK (0x3 << 0)
1206 1234
1235/* Used by CM_L4CFG_DYNAMICDEP */
1236#define OMAP4460_MPU_DYNDEP_SHIFT 19
1237#define OMAP4460_MPU_DYNDEP_MASK (1 << 19)
1238
1207/* Used by CM_DSS_DSS_CLKCTRL */ 1239/* Used by CM_DSS_DSS_CLKCTRL */
1208#define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT 9 1240#define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT 9
1209#define OMAP4430_OPTFCLKEN_48MHZ_CLK_MASK (1 << 9) 1241#define OMAP4430_OPTFCLKEN_48MHZ_CLK_MASK (1 << 9)
@@ -1298,6 +1330,10 @@
1298#define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT 10 1330#define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT 10
1299#define OMAP4430_OPTFCLKEN_SYS_CLK_MASK (1 << 10) 1331#define OMAP4430_OPTFCLKEN_SYS_CLK_MASK (1 << 10)
1300 1332
1333/* Used by CM_WKUP_BANDGAP_CLKCTRL */
1334#define OMAP4460_OPTFCLKEN_TS_FCLK_SHIFT 8
1335#define OMAP4460_OPTFCLKEN_TS_FCLK_MASK (1 << 8)
1336
1301/* Used by CM_DSS_DSS_CLKCTRL */ 1337/* Used by CM_DSS_DSS_CLKCTRL */
1302#define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT 11 1338#define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT 11
1303#define OMAP4430_OPTFCLKEN_TV_CLK_MASK (1 << 11) 1339#define OMAP4430_OPTFCLKEN_TV_CLK_MASK (1 << 11)