blob: 65597a7456381ce61c59e18af61dce641b05ed07 [file] [log] [blame]
Rajendra Nayakdd708412009-12-08 18:24:54 -07001/*
2 * OMAP44xx Clock Management register bits
3 *
Rajendra Nayak568997c2010-09-27 14:02:55 -06004 * Copyright (C) 2009-2010 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
Rajendra Nayakdd708412009-12-08 18:24:54 -07006 *
7 * Paul Walmsley (paul@pwsan.com)
8 * Rajendra Nayak (rnayak@ti.com)
9 * Benoit Cousson (b-cousson@ti.com)
10 *
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License version 2 as
19 * published by the Free Software Foundation.
20 */
21
22#ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
23#define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
24
Benoit Cousson7b342a82011-07-09 19:15:05 -060025/* Used by CM_L3_1_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070026#define OMAP4430_ABE_DYNDEP_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -060027#define OMAP4430_ABE_DYNDEP_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -070028
29/*
Benoit Cousson7b342a82011-07-09 19:15:05 -060030 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP,
31 * CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -070032 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070033#define OMAP4430_ABE_STATDEP_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -060034#define OMAP4430_ABE_STATDEP_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -070035
Benoit Cousson7b342a82011-07-09 19:15:05 -060036/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070037#define OMAP4430_ALWONCORE_DYNDEP_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -060038#define OMAP4430_ALWONCORE_DYNDEP_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -070039
40/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070041#define OMAP4430_ALWONCORE_STATDEP_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -060042#define OMAP4430_ALWONCORE_STATDEP_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -070043
44/*
Rajendra Nayak568997c2010-09-27 14:02:55 -060045 * Used by CM_AUTOIDLE_DPLL_ABE, CM_AUTOIDLE_DPLL_CORE,
Benoit Cousson7b342a82011-07-09 19:15:05 -060046 * CM_AUTOIDLE_DPLL_DDRPHY, CM_AUTOIDLE_DPLL_IVA, CM_AUTOIDLE_DPLL_MPU,
47 * CM_AUTOIDLE_DPLL_PER, CM_AUTOIDLE_DPLL_UNIPRO, CM_AUTOIDLE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -070048 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070049#define OMAP4430_AUTO_DPLL_MODE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -060050#define OMAP4430_AUTO_DPLL_MODE_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -070051
Benoit Cousson7b342a82011-07-09 19:15:05 -060052/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070053#define OMAP4430_CEFUSE_DYNDEP_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -060054#define OMAP4430_CEFUSE_DYNDEP_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -070055
56/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070057#define OMAP4430_CEFUSE_STATDEP_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -060058#define OMAP4430_CEFUSE_STATDEP_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -070059
60/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070061#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -060062#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -070063
64/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070065#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -060066#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -070067
68/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070069#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -060070#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -070071
72/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070073#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -060074#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -070075
76/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070077#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -060078#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -070079
Benoit Cousson7b342a82011-07-09 19:15:05 -060080/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070081#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -060082#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -070083
Benoit Cousson7b342a82011-07-09 19:15:05 -060084/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070085#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -060086#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -070087
Benoit Cousson7b342a82011-07-09 19:15:05 -060088/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070089#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -060090#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -070091
92/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070093#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -060094#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_MASK (1 << 9)
95
96/* Used by CM_ALWON_CLKSTCTRL */
97#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_SHIFT 12
98#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -070099
100/* Used by CM_EMU_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700101#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600102#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700103
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530104/* Used by CM_L4CFG_CLKSTCTRL */
105#define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_SHIFT 9
106#define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_MASK (1 << 9)
107
Rajendra Nayakdd708412009-12-08 18:24:54 -0700108/* Used by CM_CEFUSE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700109#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600110#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700111
Benoit Cousson7b342a82011-07-09 19:15:05 -0600112/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700113#define OMAP4430_CLKACTIVITY_DLL_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600114#define OMAP4430_CLKACTIVITY_DLL_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700115
Benoit Cousson7b342a82011-07-09 19:15:05 -0600116/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700117#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600118#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700119
Benoit Cousson7b342a82011-07-09 19:15:05 -0600120/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700121#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600122#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700123
Benoit Cousson7b342a82011-07-09 19:15:05 -0600124/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700125#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600126#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700127
Benoit Cousson7b342a82011-07-09 19:15:05 -0600128/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700129#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600130#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700131
Benoit Cousson7b342a82011-07-09 19:15:05 -0600132/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700133#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -0600134#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700135
Benoit Cousson7b342a82011-07-09 19:15:05 -0600136/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700137#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -0600138#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700139
140/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700141#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600142#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700143
144/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700145#define OMAP4430_CLKACTIVITY_DSS_FCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600146#define OMAP4430_CLKACTIVITY_DSS_FCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700147
148/* Used by CM_DUCATI_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700149#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600150#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700151
152/* Used by CM_EMU_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700153#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600154#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700155
156/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700157#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600158#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700159
Benoit Cousson7b342a82011-07-09 19:15:05 -0600160/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700161#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -0600162#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700163
164/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700165#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600166#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700167
168/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700169#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600170#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700171
Benoit Cousson7b342a82011-07-09 19:15:05 -0600172/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700173#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600174#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700175
Benoit Cousson7b342a82011-07-09 19:15:05 -0600176/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700177#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_SHIFT 26
Rajendra Nayak568997c2010-09-27 14:02:55 -0600178#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_MASK (1 << 26)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700179
Benoit Cousson7b342a82011-07-09 19:15:05 -0600180/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700181#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_SHIFT 21
Rajendra Nayak568997c2010-09-27 14:02:55 -0600182#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_MASK (1 << 21)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700183
Benoit Cousson7b342a82011-07-09 19:15:05 -0600184/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700185#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_SHIFT 27
Rajendra Nayak568997c2010-09-27 14:02:55 -0600186#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_MASK (1 << 27)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700187
Benoit Cousson7b342a82011-07-09 19:15:05 -0600188/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700189#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -0600190#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700191
Benoit Cousson7b342a82011-07-09 19:15:05 -0600192/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700193#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600194#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700195
Benoit Cousson7b342a82011-07-09 19:15:05 -0600196/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700197#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_SHIFT 28
Rajendra Nayak568997c2010-09-27 14:02:55 -0600198#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_MASK (1 << 28)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700199
Benoit Cousson7b342a82011-07-09 19:15:05 -0600200/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700201#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_SHIFT 29
Rajendra Nayak568997c2010-09-27 14:02:55 -0600202#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_MASK (1 << 29)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700203
Benoit Cousson7b342a82011-07-09 19:15:05 -0600204/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700205#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600206#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700207
Benoit Cousson7b342a82011-07-09 19:15:05 -0600208/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700209#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600210#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700211
Benoit Cousson7b342a82011-07-09 19:15:05 -0600212/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700213#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -0600214#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700215
Benoit Cousson7b342a82011-07-09 19:15:05 -0600216/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700217#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600218#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700219
Benoit Cousson7b342a82011-07-09 19:15:05 -0600220/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700221#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -0600222#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700223
224/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700225#define OMAP4430_CLKACTIVITY_ISS_GCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600226#define OMAP4430_CLKACTIVITY_ISS_GCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700227
228/* Used by CM_IVAHD_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700229#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600230#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700231
Rajendra Nayak568997c2010-09-27 14:02:55 -0600232/* Used by CM_D2D_CLKSTCTRL */
233#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_SHIFT 10
234#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700235
Benoit Cousson7b342a82011-07-09 19:15:05 -0600236/* Used by CM_L3_1_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700237#define OMAP4430_CLKACTIVITY_L3_1_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600238#define OMAP4430_CLKACTIVITY_L3_1_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700239
Benoit Cousson7b342a82011-07-09 19:15:05 -0600240/* Used by CM_L3_2_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700241#define OMAP4430_CLKACTIVITY_L3_2_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600242#define OMAP4430_CLKACTIVITY_L3_2_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700243
244/* Used by CM_D2D_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700245#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600246#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700247
248/* Used by CM_SDMA_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700249#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600250#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700251
252/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700253#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600254#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700255
Benoit Cousson7b342a82011-07-09 19:15:05 -0600256/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700257#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600258#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700259
260/* Used by CM_GFX_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700261#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600262#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700263
Benoit Cousson7b342a82011-07-09 19:15:05 -0600264/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700265#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600266#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700267
268/* Used by CM_L3INSTR_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700269#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600270#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700271
272/* Used by CM_L4SEC_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700273#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600274#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700275
276/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700277#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600278#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700279
280/* Used by CM_CEFUSE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700281#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600282#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700283
Benoit Cousson7b342a82011-07-09 19:15:05 -0600284/* Used by CM_L4CFG_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700285#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600286#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700287
288/* Used by CM_D2D_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700289#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600290#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700291
Benoit Cousson7b342a82011-07-09 19:15:05 -0600292/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700293#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600294#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700295
Benoit Cousson7b342a82011-07-09 19:15:05 -0600296/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700297#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600298#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700299
300/* Used by CM_L4SEC_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700301#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600302#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700303
304/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700305#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600306#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700307
Benoit Cousson7b342a82011-07-09 19:15:05 -0600308/* Used by CM_MPU_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700309#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600310#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700311
312/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700313#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600314#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700315
Benoit Cousson7b342a82011-07-09 19:15:05 -0600316/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700317#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600318#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700319
Benoit Cousson7b342a82011-07-09 19:15:05 -0600320/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700321#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -0600322#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700323
Benoit Cousson7b342a82011-07-09 19:15:05 -0600324/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700325#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600326#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700327
Benoit Cousson7b342a82011-07-09 19:15:05 -0600328/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700329#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -0600330#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700331
Benoit Cousson7b342a82011-07-09 19:15:05 -0600332/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700333#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -0600334#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700335
Benoit Cousson7b342a82011-07-09 19:15:05 -0600336/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700337#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600338#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700339
Benoit Cousson7b342a82011-07-09 19:15:05 -0600340/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700341#define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_SHIFT 21
Rajendra Nayak568997c2010-09-27 14:02:55 -0600342#define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_MASK (1 << 21)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700343
Benoit Cousson7b342a82011-07-09 19:15:05 -0600344/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700345#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_SHIFT 22
Rajendra Nayak568997c2010-09-27 14:02:55 -0600346#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_MASK (1 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700347
Benoit Cousson7b342a82011-07-09 19:15:05 -0600348/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700349#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600350#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700351
Benoit Cousson7b342a82011-07-09 19:15:05 -0600352/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700353#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600354#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700355
356/* Used by CM_GFX_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700357#define OMAP4430_CLKACTIVITY_SGX_GFCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600358#define OMAP4430_CLKACTIVITY_SGX_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700359
360/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700361#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600362#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700363
364/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700365#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600366#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700367
368/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700369#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600370#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700371
372/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700373#define OMAP4430_CLKACTIVITY_SYS_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600374#define OMAP4430_CLKACTIVITY_SYS_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700375
376/* Used by CM_TESLA_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700377#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600378#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700379
Benoit Cousson7b342a82011-07-09 19:15:05 -0600380/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700381#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_SHIFT 22
Rajendra Nayak568997c2010-09-27 14:02:55 -0600382#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_MASK (1 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700383
Benoit Cousson7b342a82011-07-09 19:15:05 -0600384/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700385#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_SHIFT 23
Rajendra Nayak568997c2010-09-27 14:02:55 -0600386#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_MASK (1 << 23)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700387
Benoit Cousson7b342a82011-07-09 19:15:05 -0600388/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700389#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600390#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_MASK (1 << 24)
391
Benoit Cousson7b342a82011-07-09 19:15:05 -0600392/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600393#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_SHIFT 10
394#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_MASK (1 << 10)
395
Benoit Cousson7b342a82011-07-09 19:15:05 -0600396/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600397#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_SHIFT 14
398#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700399
Benoit Cousson7b342a82011-07-09 19:15:05 -0600400/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700401#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -0600402#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700403
404/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700405#define OMAP4430_CLKACTIVITY_USIM_GFCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600406#define OMAP4430_CLKACTIVITY_USIM_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700407
Benoit Cousson7b342a82011-07-09 19:15:05 -0600408/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700409#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_SHIFT 30
Rajendra Nayak568997c2010-09-27 14:02:55 -0600410#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_MASK (1 << 30)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700411
Benoit Cousson7b342a82011-07-09 19:15:05 -0600412/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700413#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -0600414#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700415
416/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700417#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600418#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700419
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530420/* Used by CM_WKUP_CLKSTCTRL */
421#define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_SHIFT 13
422#define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_MASK (1 << 13)
423
Rajendra Nayakdd708412009-12-08 18:24:54 -0700424/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600425 * Used by CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL,
426 * CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL,
427 * CM_L3INIT_MMC2_CLKCTRL, CM_L3INIT_MMC6_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -0700428 * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL,
429 * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL,
430 * CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600431 * CM_WKUP_TIMER1_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700432 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700433#define OMAP4430_CLKSEL_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600434#define OMAP4430_CLKSEL_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700435
436/*
437 * Renamed from CLKSEL Used by CM_ABE_DSS_SYS_CLKSEL, CM_ABE_PLL_REF_CLKSEL,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600438 * CM_CLKSEL_DUCATI_ISS_ROOT, CM_CLKSEL_USB_60MHZ, CM_L4_WKUP_CLKSEL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700439 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700440#define OMAP4430_CLKSEL_0_0_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600441#define OMAP4430_CLKSEL_0_0_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700442
443/* Renamed from CLKSEL Used by CM_BYPCLK_DPLL_IVA, CM_BYPCLK_DPLL_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700444#define OMAP4430_CLKSEL_0_1_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600445#define OMAP4430_CLKSEL_0_1_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700446
447/* Renamed from CLKSEL Used by CM_L3INIT_HSI_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700448#define OMAP4430_CLKSEL_24_25_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600449#define OMAP4430_CLKSEL_24_25_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700450
451/* Used by CM_L3INIT_USB_OTG_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700452#define OMAP4430_CLKSEL_60M_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600453#define OMAP4430_CLKSEL_60M_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700454
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530455/* Used by CM_MPU_MPU_CLKCTRL */
456#define OMAP4460_CLKSEL_ABE_DIV_MODE_SHIFT 25
457#define OMAP4460_CLKSEL_ABE_DIV_MODE_MASK (1 << 25)
458
Rajendra Nayakdd708412009-12-08 18:24:54 -0700459/* Used by CM1_ABE_AESS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700460#define OMAP4430_CLKSEL_AESS_FCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600461#define OMAP4430_CLKSEL_AESS_FCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700462
Benoit Cousson7b342a82011-07-09 19:15:05 -0600463/* Used by CM_CLKSEL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700464#define OMAP4430_CLKSEL_CORE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600465#define OMAP4430_CLKSEL_CORE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700466
Benoit Cousson7b342a82011-07-09 19:15:05 -0600467/* Renamed from CLKSEL_CORE Used by CM_SHADOW_FREQ_CONFIG2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700468#define OMAP4430_CLKSEL_CORE_1_1_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600469#define OMAP4430_CLKSEL_CORE_1_1_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700470
471/* Used by CM_WKUP_USIM_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700472#define OMAP4430_CLKSEL_DIV_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600473#define OMAP4430_CLKSEL_DIV_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700474
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530475/* Used by CM_MPU_MPU_CLKCTRL */
476#define OMAP4460_CLKSEL_EMIF_DIV_MODE_SHIFT 24
477#define OMAP4460_CLKSEL_EMIF_DIV_MODE_MASK (1 << 24)
478
Rajendra Nayakdd708412009-12-08 18:24:54 -0700479/* Used by CM_CAM_FDIF_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700480#define OMAP4430_CLKSEL_FCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600481#define OMAP4430_CLKSEL_FCLK_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700482
483/* Used by CM_L4PER_MCBSP4_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700484#define OMAP4430_CLKSEL_INTERNAL_SOURCE_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -0600485#define OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700486
487/*
488 * Renamed from CLKSEL_INTERNAL_SOURCE Used by CM1_ABE_DMIC_CLKCTRL,
489 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
490 * CM1_ABE_MCBSP3_CLKCTRL
491 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700492#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_SHIFT 26
Rajendra Nayak568997c2010-09-27 14:02:55 -0600493#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_MASK (0x3 << 26)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700494
Benoit Cousson7b342a82011-07-09 19:15:05 -0600495/* Used by CM_CLKSEL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700496#define OMAP4430_CLKSEL_L3_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600497#define OMAP4430_CLKSEL_L3_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700498
Benoit Cousson7b342a82011-07-09 19:15:05 -0600499/* Renamed from CLKSEL_L3 Used by CM_SHADOW_FREQ_CONFIG2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700500#define OMAP4430_CLKSEL_L3_SHADOW_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600501#define OMAP4430_CLKSEL_L3_SHADOW_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700502
Benoit Cousson7b342a82011-07-09 19:15:05 -0600503/* Used by CM_CLKSEL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700504#define OMAP4430_CLKSEL_L4_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600505#define OMAP4430_CLKSEL_L4_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700506
507/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700508#define OMAP4430_CLKSEL_OPP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600509#define OMAP4430_CLKSEL_OPP_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700510
511/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700512#define OMAP4430_CLKSEL_PMD_STM_CLK_SHIFT 27
Rajendra Nayak568997c2010-09-27 14:02:55 -0600513#define OMAP4430_CLKSEL_PMD_STM_CLK_MASK (0x7 << 27)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700514
515/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700516#define OMAP4430_CLKSEL_PMD_TRACE_CLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600517#define OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK (0x7 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700518
519/* Used by CM_GFX_GFX_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700520#define OMAP4430_CLKSEL_SGX_FCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600521#define OMAP4430_CLKSEL_SGX_FCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700522
523/*
524 * Used by CM1_ABE_DMIC_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL,
525 * CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL
526 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700527#define OMAP4430_CLKSEL_SOURCE_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600528#define OMAP4430_CLKSEL_SOURCE_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700529
530/* Renamed from CLKSEL_SOURCE Used by CM_L4PER_MCBSP4_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700531#define OMAP4430_CLKSEL_SOURCE_24_24_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600532#define OMAP4430_CLKSEL_SOURCE_24_24_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700533
Benoit Cousson7b342a82011-07-09 19:15:05 -0600534/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700535#define OMAP4430_CLKSEL_UTMI_P1_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600536#define OMAP4430_CLKSEL_UTMI_P1_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700537
Benoit Cousson7b342a82011-07-09 19:15:05 -0600538/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700539#define OMAP4430_CLKSEL_UTMI_P2_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -0600540#define OMAP4430_CLKSEL_UTMI_P2_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700541
542/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600543 * Used by CM1_ABE_CLKSTCTRL, CM_ALWON_CLKSTCTRL, CM_CAM_CLKSTCTRL,
544 * CM_CEFUSE_CLKSTCTRL, CM_D2D_CLKSTCTRL, CM_DSS_CLKSTCTRL,
545 * CM_DUCATI_CLKSTCTRL, CM_EMU_CLKSTCTRL, CM_GFX_CLKSTCTRL, CM_IVAHD_CLKSTCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600546 * CM_L3INIT_CLKSTCTRL, CM_L3INSTR_CLKSTCTRL, CM_L3_1_CLKSTCTRL,
547 * CM_L3_2_CLKSTCTRL, CM_L4CFG_CLKSTCTRL, CM_L4PER_CLKSTCTRL,
548 * CM_L4SEC_CLKSTCTRL, CM_MEMIF_CLKSTCTRL, CM_MPU_CLKSTCTRL, CM_SDMA_CLKSTCTRL,
549 * CM_TESLA_CLKSTCTRL, CM_WKUP_CLKSTCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700550 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700551#define OMAP4430_CLKTRCTRL_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600552#define OMAP4430_CLKTRCTRL_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700553
554/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700555#define OMAP4430_CORE_DPLL_EMU_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600556#define OMAP4430_CORE_DPLL_EMU_DIV_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700557
558/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700559#define OMAP4430_CORE_DPLL_EMU_MULT_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600560#define OMAP4430_CORE_DPLL_EMU_MULT_MASK (0x7ff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700561
Rajendra Nayak568997c2010-09-27 14:02:55 -0600562/* Used by REVISION_CM1, REVISION_CM2 */
563#define OMAP4430_CUSTOM_SHIFT 6
564#define OMAP4430_CUSTOM_MASK (0x3 << 6)
565
Benoit Cousson7b342a82011-07-09 19:15:05 -0600566/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700567#define OMAP4430_D2D_DYNDEP_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600568#define OMAP4430_D2D_DYNDEP_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700569
570/* Used by CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700571#define OMAP4430_D2D_STATDEP_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600572#define OMAP4430_D2D_STATDEP_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700573
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530574/* Used by CM_CLKSEL_DPLL_MPU */
575#define OMAP4460_DCC_COUNT_MAX_SHIFT 24
576#define OMAP4460_DCC_COUNT_MAX_MASK (0xff << 24)
577
578/* Used by CM_CLKSEL_DPLL_MPU */
579#define OMAP4460_DCC_EN_SHIFT 22
580#define OMAP4460_DCC_EN_MASK (1 << 22)
581
Rajendra Nayakdd708412009-12-08 18:24:54 -0700582/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600583 * Used by CM_SSC_DELTAMSTEP_DPLL_ABE, CM_SSC_DELTAMSTEP_DPLL_CORE,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600584 * CM_SSC_DELTAMSTEP_DPLL_DDRPHY, CM_SSC_DELTAMSTEP_DPLL_IVA,
585 * CM_SSC_DELTAMSTEP_DPLL_MPU, CM_SSC_DELTAMSTEP_DPLL_PER,
586 * CM_SSC_DELTAMSTEP_DPLL_UNIPRO, CM_SSC_DELTAMSTEP_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700587 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700588#define OMAP4430_DELTAMSTEP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600589#define OMAP4430_DELTAMSTEP_MASK (0xfffff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700590
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530591/* Renamed from DELTAMSTEP Used by CM_SSC_DELTAMSTEP_DPLL_USB */
592#define OMAP4460_DELTAMSTEP_0_20_SHIFT 0
593#define OMAP4460_DELTAMSTEP_0_20_MASK (0x1fffff << 0)
594
Benoit Cousson7b342a82011-07-09 19:15:05 -0600595/* Used by CM_DLL_CTRL */
596#define OMAP4430_DLL_OVERRIDE_SHIFT 0
597#define OMAP4430_DLL_OVERRIDE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700598
Benoit Cousson7b342a82011-07-09 19:15:05 -0600599/* Renamed from DLL_OVERRIDE Used by CM_SHADOW_FREQ_CONFIG1 */
600#define OMAP4430_DLL_OVERRIDE_2_2_SHIFT 2
601#define OMAP4430_DLL_OVERRIDE_2_2_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700602
Benoit Cousson7b342a82011-07-09 19:15:05 -0600603/* Used by CM_SHADOW_FREQ_CONFIG1 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700604#define OMAP4430_DLL_RESET_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600605#define OMAP4430_DLL_RESET_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700606
607/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600608 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_DDRPHY,
609 * CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER,
610 * CM_CLKSEL_DPLL_UNIPRO, CM_CLKSEL_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700611 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700612#define OMAP4430_DPLL_BYP_CLKSEL_SHIFT 23
Rajendra Nayak568997c2010-09-27 14:02:55 -0600613#define OMAP4430_DPLL_BYP_CLKSEL_MASK (1 << 23)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700614
615/* Used by CM_CLKDCOLDO_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700616#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600617#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700618
Benoit Cousson7b342a82011-07-09 19:15:05 -0600619/* Used by CM_CLKSEL_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700620#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600621#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700622
Benoit Cousson7b342a82011-07-09 19:15:05 -0600623/* Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE, CM_DIV_M3_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700624#define OMAP4430_DPLL_CLKOUTHIF_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600625#define OMAP4430_DPLL_CLKOUTHIF_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700626
Benoit Cousson7b342a82011-07-09 19:15:05 -0600627/* Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE, CM_DIV_M3_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700628#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600629#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700630
Benoit Cousson7b342a82011-07-09 19:15:05 -0600631/* Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE, CM_DIV_M3_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700632#define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600633#define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700634
Rajendra Nayak568997c2010-09-27 14:02:55 -0600635/* Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700636#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600637#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700638
639/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600640 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
641 * CM_DIV_M2_DPLL_MPU, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700642 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700643#define OMAP4430_DPLL_CLKOUT_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600644#define OMAP4430_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700645
646/* Renamed from DPLL_CLKOUT_DIV Used by CM_DIV_M2_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700647#define OMAP4430_DPLL_CLKOUT_DIV_0_6_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600648#define OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700649
650/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600651 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
652 * CM_DIV_M2_DPLL_MPU, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700653 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700654#define OMAP4430_DPLL_CLKOUT_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600655#define OMAP4430_DPLL_CLKOUT_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700656
657/* Renamed from DPLL_CLKOUT_DIVCHACK Used by CM_DIV_M2_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700658#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -0600659#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700660
661/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600662 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
663 * CM_DIV_M2_DPLL_MPU, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700664 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700665#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600666#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700667
Benoit Cousson7b342a82011-07-09 19:15:05 -0600668/* Used by CM_SHADOW_FREQ_CONFIG1 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700669#define OMAP4430_DPLL_CORE_DPLL_EN_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600670#define OMAP4430_DPLL_CORE_DPLL_EN_MASK (0x7 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700671
Benoit Cousson7b342a82011-07-09 19:15:05 -0600672/* Used by CM_SHADOW_FREQ_CONFIG1 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700673#define OMAP4430_DPLL_CORE_M2_DIV_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600674#define OMAP4430_DPLL_CORE_M2_DIV_MASK (0x1f << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700675
Benoit Cousson7b342a82011-07-09 19:15:05 -0600676/* Used by CM_SHADOW_FREQ_CONFIG2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700677#define OMAP4430_DPLL_CORE_M5_DIV_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600678#define OMAP4430_DPLL_CORE_M5_DIV_MASK (0x1f << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700679
680/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600681 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_DDRPHY,
682 * CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER,
683 * CM_CLKSEL_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700684 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700685#define OMAP4430_DPLL_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600686#define OMAP4430_DPLL_DIV_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700687
688/* Renamed from DPLL_DIV Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700689#define OMAP4430_DPLL_DIV_0_7_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600690#define OMAP4430_DPLL_DIV_0_7_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700691
692/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600693 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
694 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700695 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700696#define OMAP4430_DPLL_DRIFTGUARD_EN_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600697#define OMAP4430_DPLL_DRIFTGUARD_EN_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700698
699/* Renamed from DPLL_DRIFTGUARD_EN Used by CM_CLKMODE_DPLL_UNIPRO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700700#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600701#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700702
703/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600704 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
705 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
706 * CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700707 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700708#define OMAP4430_DPLL_EN_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600709#define OMAP4430_DPLL_EN_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700710
711/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600712 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
713 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
714 * CM_CLKMODE_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700715 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700716#define OMAP4430_DPLL_LPMODE_EN_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600717#define OMAP4430_DPLL_LPMODE_EN_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700718
719/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600720 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_DDRPHY,
721 * CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER,
722 * CM_CLKSEL_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700723 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700724#define OMAP4430_DPLL_MULT_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600725#define OMAP4430_DPLL_MULT_MASK (0x7ff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700726
727/* Renamed from DPLL_MULT Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700728#define OMAP4430_DPLL_MULT_USB_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600729#define OMAP4430_DPLL_MULT_USB_MASK (0xfff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700730
731/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600732 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
733 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
734 * CM_CLKMODE_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700735 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700736#define OMAP4430_DPLL_REGM4XEN_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600737#define OMAP4430_DPLL_REGM4XEN_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700738
739/* Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700740#define OMAP4430_DPLL_SD_DIV_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600741#define OMAP4430_DPLL_SD_DIV_MASK (0xff << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700742
743/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600744 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
745 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
746 * CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700747 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700748#define OMAP4430_DPLL_SSC_ACK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -0600749#define OMAP4430_DPLL_SSC_ACK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700750
751/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600752 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
753 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
754 * CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700755 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700756#define OMAP4430_DPLL_SSC_DOWNSPREAD_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -0600757#define OMAP4430_DPLL_SSC_DOWNSPREAD_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700758
759/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600760 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
761 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
762 * CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700763 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700764#define OMAP4430_DPLL_SSC_EN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600765#define OMAP4430_DPLL_SSC_EN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700766
Benoit Cousson7b342a82011-07-09 19:15:05 -0600767/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600768#define OMAP4430_DSS_DYNDEP_SHIFT 8
769#define OMAP4430_DSS_DYNDEP_MASK (1 << 8)
770
Benoit Cousson7b342a82011-07-09 19:15:05 -0600771/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700772#define OMAP4430_DSS_STATDEP_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600773#define OMAP4430_DSS_STATDEP_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700774
Benoit Cousson7b342a82011-07-09 19:15:05 -0600775/* Used by CM_L3_2_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700776#define OMAP4430_DUCATI_DYNDEP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600777#define OMAP4430_DUCATI_DYNDEP_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700778
Benoit Cousson7b342a82011-07-09 19:15:05 -0600779/* Used by CM_MPU_STATICDEP, CM_SDMA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700780#define OMAP4430_DUCATI_STATDEP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600781#define OMAP4430_DUCATI_STATDEP_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700782
Benoit Cousson7b342a82011-07-09 19:15:05 -0600783/* Used by CM_SHADOW_FREQ_CONFIG1 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700784#define OMAP4430_FREQ_UPDATE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600785#define OMAP4430_FREQ_UPDATE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700786
Rajendra Nayak568997c2010-09-27 14:02:55 -0600787/* Used by REVISION_CM1, REVISION_CM2 */
788#define OMAP4430_FUNC_SHIFT 16
789#define OMAP4430_FUNC_MASK (0xfff << 16)
790
Benoit Cousson7b342a82011-07-09 19:15:05 -0600791/* Used by CM_L3_2_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700792#define OMAP4430_GFX_DYNDEP_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600793#define OMAP4430_GFX_DYNDEP_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700794
795/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700796#define OMAP4430_GFX_STATDEP_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600797#define OMAP4430_GFX_STATDEP_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700798
Benoit Cousson7b342a82011-07-09 19:15:05 -0600799/* Used by CM_SHADOW_FREQ_CONFIG2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700800#define OMAP4430_GPMC_FREQ_UPDATE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600801#define OMAP4430_GPMC_FREQ_UPDATE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700802
803/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600804 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
805 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700806 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700807#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600808#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700809
810/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600811 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
812 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700813 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700814#define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600815#define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700816
817/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600818 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
819 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700820 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700821#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600822#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700823
824/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600825 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
826 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700827 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700828#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600829#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700830
831/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600832 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
833 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700834 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700835#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600836#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700837
838/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600839 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
840 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700841 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700842#define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600843#define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700844
845/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600846 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
847 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700848 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700849#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600850#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700851
852/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600853 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
854 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700855 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700856#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600857#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700858
Benoit Cousson7b342a82011-07-09 19:15:05 -0600859/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700860#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600861#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700862
Benoit Cousson7b342a82011-07-09 19:15:05 -0600863/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700864#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600865#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700866
Benoit Cousson7b342a82011-07-09 19:15:05 -0600867/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700868#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600869#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700870
Benoit Cousson7b342a82011-07-09 19:15:05 -0600871/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700872#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600873#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700874
Benoit Cousson7b342a82011-07-09 19:15:05 -0600875/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700876#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600877#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700878
Benoit Cousson7b342a82011-07-09 19:15:05 -0600879/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700880#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600881#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700882
Benoit Cousson7b342a82011-07-09 19:15:05 -0600883/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700884#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600885#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700886
Benoit Cousson7b342a82011-07-09 19:15:05 -0600887/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700888#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600889#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700890
891/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600892 * Used by CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL,
893 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
894 * CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL,
895 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
896 * CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, CM_ALWON_MDMINTC_CLKCTRL,
897 * CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL,
898 * CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600899 * CM_CM1_PROFILING_CLKCTRL, CM_CM2_PROFILING_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600900 * CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL,
901 * CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
902 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
903 * CM_IVAHD_SL2_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -0700904 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
905 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
906 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
907 * CM_L3INIT_USBPHYOCP2SCP_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600908 * CM_L3INIT_USB_HOST_FS_CLKCTRL, CM_L3INIT_USB_OTG_CLKCTRL,
909 * CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_XHPI_CLKCTRL, CM_L3INSTR_L3_3_CLKCTRL,
910 * CM_L3INSTR_L3_INSTR_CLKCTRL, CM_L3INSTR_OCP_WP1_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600911 * CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, CM_L3_2_L3_2_CLKCTRL,
912 * CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, CM_L4CFG_L4_CFG_CLKCTRL,
913 * CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, CM_L4PER_ADC_CLKCTRL,
914 * CM_L4PER_DMTIMER10_CLKCTRL, CM_L4PER_DMTIMER11_CLKCTRL,
915 * CM_L4PER_DMTIMER2_CLKCTRL, CM_L4PER_DMTIMER3_CLKCTRL,
916 * CM_L4PER_DMTIMER4_CLKCTRL, CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600917 * CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL,
918 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_HDQ1W_CLKCTRL,
919 * CM_L4PER_HECC1_CLKCTRL, CM_L4PER_HECC2_CLKCTRL, CM_L4PER_I2C1_CLKCTRL,
920 * CM_L4PER_I2C2_CLKCTRL, CM_L4PER_I2C3_CLKCTRL, CM_L4PER_I2C4_CLKCTRL,
921 * CM_L4PER_I2C5_CLKCTRL, CM_L4PER_L4PER_CLKCTRL, CM_L4PER_MCASP2_CLKCTRL,
922 * CM_L4PER_MCASP3_CLKCTRL, CM_L4PER_MCBSP4_CLKCTRL, CM_L4PER_MCSPI1_CLKCTRL,
923 * CM_L4PER_MCSPI2_CLKCTRL, CM_L4PER_MCSPI3_CLKCTRL, CM_L4PER_MCSPI4_CLKCTRL,
924 * CM_L4PER_MGATE_CLKCTRL, CM_L4PER_MMCSD3_CLKCTRL, CM_L4PER_MMCSD4_CLKCTRL,
925 * CM_L4PER_MMCSD5_CLKCTRL, CM_L4PER_MSPROHG_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600926 * CM_L4PER_SLIMBUS2_CLKCTRL, CM_L4PER_UART1_CLKCTRL, CM_L4PER_UART2_CLKCTRL,
927 * CM_L4PER_UART3_CLKCTRL, CM_L4PER_UART4_CLKCTRL, CM_L4SEC_AES1_CLKCTRL,
928 * CM_L4SEC_AES2_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L4SEC_DES3DES_CLKCTRL,
929 * CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL, CM_L4SEC_SHA2MD51_CLKCTRL,
930 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
931 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL,
932 * CM_MEMIF_EMIF_H2_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
933 * CM_TESLA_TESLA_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL,
934 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL,
935 * CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL,
936 * CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700937 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700938#define OMAP4430_IDLEST_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600939#define OMAP4430_IDLEST_MASK (0x3 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700940
Benoit Cousson7b342a82011-07-09 19:15:05 -0600941/* Used by CM_DUCATI_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600942#define OMAP4430_ISS_DYNDEP_SHIFT 9
943#define OMAP4430_ISS_DYNDEP_MASK (1 << 9)
944
945/*
946 * Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600947 * CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -0700948 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700949#define OMAP4430_ISS_STATDEP_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600950#define OMAP4430_ISS_STATDEP_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700951
Benoit Cousson7b342a82011-07-09 19:15:05 -0600952/* Used by CM_L3_2_DYNAMICDEP, CM_TESLA_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700953#define OMAP4430_IVAHD_DYNDEP_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600954#define OMAP4430_IVAHD_DYNDEP_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700955
956/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600957 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_DSS_STATICDEP,
958 * CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_L3INIT_STATICDEP,
959 * CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -0700960 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700961#define OMAP4430_IVAHD_STATDEP_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600962#define OMAP4430_IVAHD_STATDEP_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700963
Benoit Cousson7b342a82011-07-09 19:15:05 -0600964/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700965#define OMAP4430_L3INIT_DYNDEP_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -0600966#define OMAP4430_L3INIT_DYNDEP_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700967
968/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600969 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_MPU_STATICDEP,
970 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -0700971 */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600972#define OMAP4430_L3INIT_STATDEP_SHIFT 7
973#define OMAP4430_L3INIT_STATDEP_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700974
975/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600976 * Used by CM_DSS_DYNAMICDEP, CM_L3INIT_DYNAMICDEP, CM_L3_2_DYNAMICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600977 * CM_L4CFG_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -0600978 */
979#define OMAP4430_L3_1_DYNDEP_SHIFT 5
980#define OMAP4430_L3_1_DYNDEP_MASK (1 << 5)
981
982/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600983 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_DSS_STATICDEP,
984 * CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600985 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600986 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -0600987 */
988#define OMAP4430_L3_1_STATDEP_SHIFT 5
989#define OMAP4430_L3_1_STATDEP_MASK (1 << 5)
990
991/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600992 * Used by CM_CAM_DYNAMICDEP, CM_D2D_DYNAMICDEP, CM_DUCATI_DYNAMICDEP,
993 * CM_EMU_DYNAMICDEP, CM_GFX_DYNAMICDEP, CM_IVAHD_DYNAMICDEP,
994 * CM_L3INIT_DYNAMICDEP, CM_L3_1_DYNAMICDEP, CM_L4CFG_DYNAMICDEP,
995 * CM_L4SEC_DYNAMICDEP, CM_SDMA_DYNAMICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -0600996 */
997#define OMAP4430_L3_2_DYNDEP_SHIFT 6
998#define OMAP4430_L3_2_DYNDEP_MASK (1 << 6)
999
1000/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001001 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_DSS_STATICDEP,
1002 * CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001003 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001004 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -06001005 */
1006#define OMAP4430_L3_2_STATDEP_SHIFT 6
1007#define OMAP4430_L3_2_STATDEP_MASK (1 << 6)
1008
Benoit Cousson7b342a82011-07-09 19:15:05 -06001009/* Used by CM_L3_1_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001010#define OMAP4430_L4CFG_DYNDEP_SHIFT 12
1011#define OMAP4430_L4CFG_DYNDEP_MASK (1 << 12)
1012
1013/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001014 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP,
1015 * CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -06001016 */
1017#define OMAP4430_L4CFG_STATDEP_SHIFT 12
1018#define OMAP4430_L4CFG_STATDEP_MASK (1 << 12)
1019
Benoit Cousson7b342a82011-07-09 19:15:05 -06001020/* Used by CM_L3_2_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001021#define OMAP4430_L4PER_DYNDEP_SHIFT 13
1022#define OMAP4430_L4PER_DYNDEP_MASK (1 << 13)
1023
1024/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001025 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP,
1026 * CM_L4SEC_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001027 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001028#define OMAP4430_L4PER_STATDEP_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -06001029#define OMAP4430_L4PER_STATDEP_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001030
Benoit Cousson7b342a82011-07-09 19:15:05 -06001031/* Used by CM_L3_2_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001032#define OMAP4430_L4SEC_DYNDEP_SHIFT 14
1033#define OMAP4430_L4SEC_DYNDEP_MASK (1 << 14)
1034
1035/*
1036 * Used by CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001037 * CM_SDMA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001038 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001039#define OMAP4430_L4SEC_STATDEP_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -06001040#define OMAP4430_L4SEC_STATDEP_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001041
Benoit Cousson7b342a82011-07-09 19:15:05 -06001042/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001043#define OMAP4430_L4WKUP_DYNDEP_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -06001044#define OMAP4430_L4WKUP_DYNDEP_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001045
1046/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001047 * Used by CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001048 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001049 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001050#define OMAP4430_L4WKUP_STATDEP_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -06001051#define OMAP4430_L4WKUP_STATDEP_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001052
1053/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001054 * Used by CM_D2D_DYNAMICDEP, CM_L3_1_DYNAMICDEP, CM_L4CFG_DYNAMICDEP,
1055 * CM_MPU_DYNAMICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001056 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001057#define OMAP4430_MEMIF_DYNDEP_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001058#define OMAP4430_MEMIF_DYNDEP_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001059
1060/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001061 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_DSS_STATICDEP,
1062 * CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001063 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001064 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001065 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001066#define OMAP4430_MEMIF_STATDEP_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001067#define OMAP4430_MEMIF_STATDEP_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001068
1069/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001070 * Used by CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001071 * CM_SSC_MODFREQDIV_DPLL_DDRPHY, CM_SSC_MODFREQDIV_DPLL_IVA,
1072 * CM_SSC_MODFREQDIV_DPLL_MPU, CM_SSC_MODFREQDIV_DPLL_PER,
1073 * CM_SSC_MODFREQDIV_DPLL_UNIPRO, CM_SSC_MODFREQDIV_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001074 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001075#define OMAP4430_MODFREQDIV_EXPONENT_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001076#define OMAP4430_MODFREQDIV_EXPONENT_MASK (0x7 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001077
1078/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001079 * Used by CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001080 * CM_SSC_MODFREQDIV_DPLL_DDRPHY, CM_SSC_MODFREQDIV_DPLL_IVA,
1081 * CM_SSC_MODFREQDIV_DPLL_MPU, CM_SSC_MODFREQDIV_DPLL_PER,
1082 * CM_SSC_MODFREQDIV_DPLL_UNIPRO, CM_SSC_MODFREQDIV_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001083 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001084#define OMAP4430_MODFREQDIV_MANTISSA_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001085#define OMAP4430_MODFREQDIV_MANTISSA_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001086
1087/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001088 * Used by CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL,
1089 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
1090 * CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL,
1091 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
1092 * CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, CM_ALWON_MDMINTC_CLKCTRL,
1093 * CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL,
1094 * CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001095 * CM_CM1_PROFILING_CLKCTRL, CM_CM2_PROFILING_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001096 * CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL,
1097 * CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
1098 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
1099 * CM_IVAHD_SL2_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -07001100 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
1101 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
1102 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
1103 * CM_L3INIT_USBPHYOCP2SCP_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001104 * CM_L3INIT_USB_HOST_FS_CLKCTRL, CM_L3INIT_USB_OTG_CLKCTRL,
1105 * CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_XHPI_CLKCTRL, CM_L3INSTR_L3_3_CLKCTRL,
1106 * CM_L3INSTR_L3_INSTR_CLKCTRL, CM_L3INSTR_OCP_WP1_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001107 * CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, CM_L3_2_L3_2_CLKCTRL,
1108 * CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, CM_L4CFG_L4_CFG_CLKCTRL,
1109 * CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, CM_L4PER_ADC_CLKCTRL,
1110 * CM_L4PER_DMTIMER10_CLKCTRL, CM_L4PER_DMTIMER11_CLKCTRL,
1111 * CM_L4PER_DMTIMER2_CLKCTRL, CM_L4PER_DMTIMER3_CLKCTRL,
1112 * CM_L4PER_DMTIMER4_CLKCTRL, CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001113 * CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL,
1114 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_HDQ1W_CLKCTRL,
1115 * CM_L4PER_HECC1_CLKCTRL, CM_L4PER_HECC2_CLKCTRL, CM_L4PER_I2C1_CLKCTRL,
1116 * CM_L4PER_I2C2_CLKCTRL, CM_L4PER_I2C3_CLKCTRL, CM_L4PER_I2C4_CLKCTRL,
1117 * CM_L4PER_I2C5_CLKCTRL, CM_L4PER_L4PER_CLKCTRL, CM_L4PER_MCASP2_CLKCTRL,
1118 * CM_L4PER_MCASP3_CLKCTRL, CM_L4PER_MCBSP4_CLKCTRL, CM_L4PER_MCSPI1_CLKCTRL,
1119 * CM_L4PER_MCSPI2_CLKCTRL, CM_L4PER_MCSPI3_CLKCTRL, CM_L4PER_MCSPI4_CLKCTRL,
1120 * CM_L4PER_MGATE_CLKCTRL, CM_L4PER_MMCSD3_CLKCTRL, CM_L4PER_MMCSD4_CLKCTRL,
1121 * CM_L4PER_MMCSD5_CLKCTRL, CM_L4PER_MSPROHG_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001122 * CM_L4PER_SLIMBUS2_CLKCTRL, CM_L4PER_UART1_CLKCTRL, CM_L4PER_UART2_CLKCTRL,
1123 * CM_L4PER_UART3_CLKCTRL, CM_L4PER_UART4_CLKCTRL, CM_L4SEC_AES1_CLKCTRL,
1124 * CM_L4SEC_AES2_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L4SEC_DES3DES_CLKCTRL,
1125 * CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL, CM_L4SEC_SHA2MD51_CLKCTRL,
1126 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
1127 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL,
1128 * CM_MEMIF_EMIF_H2_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
1129 * CM_TESLA_TESLA_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL,
1130 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL,
1131 * CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL,
1132 * CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001133 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001134#define OMAP4430_MODULEMODE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001135#define OMAP4430_MODULEMODE_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001136
Rajendra Nayak6b54b492011-07-02 08:00:23 +05301137/* Used by CM_L4CFG_DYNAMICDEP */
1138#define OMAP4460_MPU_DYNDEP_SHIFT 19
1139#define OMAP4460_MPU_DYNDEP_MASK (1 << 19)
1140
Rajendra Nayakdd708412009-12-08 18:24:54 -07001141/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001142#define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001143#define OMAP4430_OPTFCLKEN_48MHZ_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001144
1145/* Used by CM_WKUP_BANDGAP_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001146#define OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001147#define OMAP4430_OPTFCLKEN_BGAP_32K_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001148
Rajendra Nayak568997c2010-09-27 14:02:55 -06001149/* Used by CM_ALWON_USBPHY_CLKCTRL */
1150#define OMAP4430_OPTFCLKEN_CLK32K_SHIFT 8
1151#define OMAP4430_OPTFCLKEN_CLK32K_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001152
1153/* Used by CM_CAM_ISS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001154#define OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001155#define OMAP4430_OPTFCLKEN_CTRLCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001156
1157/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001158 * Used by CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL,
1159 * CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL,
1160 * CM_WKUP_GPIO1_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001161 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001162#define OMAP4430_OPTFCLKEN_DBCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001163#define OMAP4430_OPTFCLKEN_DBCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001164
1165/* Used by CM_MEMIF_DLL_CLKCTRL, CM_MEMIF_DLL_H_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001166#define OMAP4430_OPTFCLKEN_DLL_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001167#define OMAP4430_OPTFCLKEN_DLL_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001168
1169/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001170#define OMAP4430_OPTFCLKEN_DSSCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001171#define OMAP4430_OPTFCLKEN_DSSCLK_MASK (1 << 8)
1172
1173/* Used by CM_WKUP_USIM_CLKCTRL */
1174#define OMAP4430_OPTFCLKEN_FCLK_SHIFT 8
1175#define OMAP4430_OPTFCLKEN_FCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001176
1177/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001178#define OMAP4430_OPTFCLKEN_FCLK0_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001179#define OMAP4430_OPTFCLKEN_FCLK0_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001180
1181/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001182#define OMAP4430_OPTFCLKEN_FCLK1_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001183#define OMAP4430_OPTFCLKEN_FCLK1_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001184
1185/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001186#define OMAP4430_OPTFCLKEN_FCLK2_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001187#define OMAP4430_OPTFCLKEN_FCLK2_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001188
Benoit Cousson7b342a82011-07-09 19:15:05 -06001189/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001190#define OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -06001191#define OMAP4430_OPTFCLKEN_FUNC48MCLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001192
Benoit Cousson7b342a82011-07-09 19:15:05 -06001193/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001194#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -06001195#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001196
Benoit Cousson7b342a82011-07-09 19:15:05 -06001197/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001198#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -06001199#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001200
Benoit Cousson7b342a82011-07-09 19:15:05 -06001201/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001202#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001203#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001204
Benoit Cousson7b342a82011-07-09 19:15:05 -06001205/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001206#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -06001207#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001208
1209/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001210#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001211#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001212
1213/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001214#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001215#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001216
1217/* Used by CM_L3INIT_USBPHYOCP2SCP_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001218#define OMAP4430_OPTFCLKEN_PHY_48M_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001219#define OMAP4430_OPTFCLKEN_PHY_48M_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001220
1221/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001222#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001223#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001224
1225/* Renamed from OPTFCLKEN_SLIMBUS_CLK Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001226#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001227#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001228
1229/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001230#define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001231#define OMAP4430_OPTFCLKEN_SYS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001232
Rajendra Nayak6b54b492011-07-02 08:00:23 +05301233/* Used by CM_WKUP_BANDGAP_CLKCTRL */
1234#define OMAP4460_OPTFCLKEN_TS_FCLK_SHIFT 8
1235#define OMAP4460_OPTFCLKEN_TS_FCLK_MASK (1 << 8)
1236
Rajendra Nayakdd708412009-12-08 18:24:54 -07001237/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001238#define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001239#define OMAP4430_OPTFCLKEN_TV_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001240
1241/* Used by CM_L3INIT_UNIPRO1_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001242#define OMAP4430_OPTFCLKEN_TXPHYCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001243#define OMAP4430_OPTFCLKEN_TXPHYCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001244
Benoit Cousson7b342a82011-07-09 19:15:05 -06001245/* Used by CM_L3INIT_USB_TLL_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001246#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001247#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001248
Benoit Cousson7b342a82011-07-09 19:15:05 -06001249/* Used by CM_L3INIT_USB_TLL_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001250#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001251#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001252
Benoit Cousson7b342a82011-07-09 19:15:05 -06001253/* Used by CM_L3INIT_USB_TLL_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001254#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001255#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001256
Benoit Cousson7b342a82011-07-09 19:15:05 -06001257/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001258#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001259#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001260
Benoit Cousson7b342a82011-07-09 19:15:05 -06001261/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001262#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001263#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001264
Benoit Cousson7b342a82011-07-09 19:15:05 -06001265/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001266#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001267#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001268
1269/* Used by CM_L3INIT_USB_OTG_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001270#define OMAP4430_OPTFCLKEN_XCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001271#define OMAP4430_OPTFCLKEN_XCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001272
Rajendra Nayak568997c2010-09-27 14:02:55 -06001273/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001274#define OMAP4430_OVERRIDE_ENABLE_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -06001275#define OMAP4430_OVERRIDE_ENABLE_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001276
1277/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001278#define OMAP4430_PAD_CLKS_GATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001279#define OMAP4430_PAD_CLKS_GATE_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001280
1281/* Used by CM_CORE_DVFS_CURRENT, CM_IVA_DVFS_CURRENT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001282#define OMAP4430_PERF_CURRENT_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001283#define OMAP4430_PERF_CURRENT_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001284
1285/*
1286 * Used by CM_CORE_DVFS_PERF1, CM_CORE_DVFS_PERF2, CM_CORE_DVFS_PERF3,
1287 * CM_CORE_DVFS_PERF4, CM_IVA_DVFS_PERF_ABE, CM_IVA_DVFS_PERF_IVAHD,
1288 * CM_IVA_DVFS_PERF_TESLA
1289 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001290#define OMAP4430_PERF_REQ_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001291#define OMAP4430_PERF_REQ_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001292
1293/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001294#define OMAP4430_PHASE1_COMPLETED_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001295#define OMAP4430_PHASE1_COMPLETED_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001296
1297/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001298#define OMAP4430_PHASE2A_COMPLETED_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001299#define OMAP4430_PHASE2A_COMPLETED_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001300
1301/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001302#define OMAP4430_PHASE2B_COMPLETED_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001303#define OMAP4430_PHASE2B_COMPLETED_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001304
1305/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001306#define OMAP4430_PMD_STM_MUX_CTRL_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -06001307#define OMAP4430_PMD_STM_MUX_CTRL_MASK (0x3 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001308
1309/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001310#define OMAP4430_PMD_TRACE_MUX_CTRL_SHIFT 22
Rajendra Nayak568997c2010-09-27 14:02:55 -06001311#define OMAP4430_PMD_TRACE_MUX_CTRL_MASK (0x3 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001312
Benoit Cousson7b342a82011-07-09 19:15:05 -06001313/* Used by CM_DYN_DEP_PRESCAL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001314#define OMAP4430_PRESCAL_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001315#define OMAP4430_PRESCAL_MASK (0x3f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001316
Rajendra Nayak568997c2010-09-27 14:02:55 -06001317/* Used by REVISION_CM1, REVISION_CM2 */
1318#define OMAP4430_R_RTL_SHIFT 11
1319#define OMAP4430_R_RTL_MASK (0x1f << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001320
Benoit Cousson7b342a82011-07-09 19:15:05 -06001321/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001322#define OMAP4430_SAR_MODE_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001323#define OMAP4430_SAR_MODE_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001324
1325/* Used by CM_SCALE_FCLK */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001326#define OMAP4430_SCALE_FCLK_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001327#define OMAP4430_SCALE_FCLK_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001328
Rajendra Nayak568997c2010-09-27 14:02:55 -06001329/* Used by REVISION_CM1, REVISION_CM2 */
1330#define OMAP4430_SCHEME_SHIFT 30
1331#define OMAP4430_SCHEME_MASK (0x3 << 30)
1332
Benoit Cousson7b342a82011-07-09 19:15:05 -06001333/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001334#define OMAP4430_SDMA_DYNDEP_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001335#define OMAP4430_SDMA_DYNDEP_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001336
1337/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001338#define OMAP4430_SDMA_STATDEP_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001339#define OMAP4430_SDMA_STATDEP_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001340
1341/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001342#define OMAP4430_SLIMBUS_CLK_GATE_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001343#define OMAP4430_SLIMBUS_CLK_GATE_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001344
1345/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001346 * Used by CM1_ABE_AESS_CLKCTRL, CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL,
1347 * CM_D2D_SAD2D_CLKCTRL, CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL,
1348 * CM_DUCATI_DUCATI_CLKCTRL, CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL,
1349 * CM_IVAHD_IVAHD_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -07001350 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
1351 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
1352 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001353 * CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_FS_CLKCTRL,
1354 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L3INIT_XHPI_CLKCTRL,
1355 * CM_L4SEC_CRYPTODMA_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
1356 * CM_TESLA_TESLA_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001357 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001358#define OMAP4430_STBYST_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -06001359#define OMAP4430_STBYST_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001360
1361/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001362 * Used by CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
1363 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER,
1364 * CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001365 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001366#define OMAP4430_ST_DPLL_CLK_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001367#define OMAP4430_ST_DPLL_CLK_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001368
1369/* Used by CM_CLKDCOLDO_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001370#define OMAP4430_ST_DPLL_CLKDCOLDO_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001371#define OMAP4430_ST_DPLL_CLKDCOLDO_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001372
1373/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001374 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
1375 * CM_DIV_M2_DPLL_MPU, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001376 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001377#define OMAP4430_ST_DPLL_CLKOUT_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001378#define OMAP4430_ST_DPLL_CLKOUT_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001379
Benoit Cousson7b342a82011-07-09 19:15:05 -06001380/* Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE, CM_DIV_M3_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001381#define OMAP4430_ST_DPLL_CLKOUTHIF_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001382#define OMAP4430_ST_DPLL_CLKOUTHIF_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001383
Rajendra Nayak568997c2010-09-27 14:02:55 -06001384/* Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001385#define OMAP4430_ST_DPLL_CLKOUTX2_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001386#define OMAP4430_ST_DPLL_CLKOUTX2_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001387
1388/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001389 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
1390 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001391 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001392#define OMAP4430_ST_HSDIVIDER_CLKOUT1_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001393#define OMAP4430_ST_HSDIVIDER_CLKOUT1_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001394
1395/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001396 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
1397 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001398 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001399#define OMAP4430_ST_HSDIVIDER_CLKOUT2_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001400#define OMAP4430_ST_HSDIVIDER_CLKOUT2_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001401
Benoit Cousson7b342a82011-07-09 19:15:05 -06001402/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001403#define OMAP4430_ST_HSDIVIDER_CLKOUT3_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001404#define OMAP4430_ST_HSDIVIDER_CLKOUT3_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001405
Benoit Cousson7b342a82011-07-09 19:15:05 -06001406/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001407#define OMAP4430_ST_HSDIVIDER_CLKOUT4_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001408#define OMAP4430_ST_HSDIVIDER_CLKOUT4_MASK (1 << 9)
1409
1410/*
1411 * Used by CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
1412 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER,
1413 * CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB
1414 */
1415#define OMAP4430_ST_MN_BYPASS_SHIFT 8
1416#define OMAP4430_ST_MN_BYPASS_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001417
1418/* Used by CM_SYS_CLKSEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001419#define OMAP4430_SYS_CLKSEL_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001420#define OMAP4430_SYS_CLKSEL_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001421
Benoit Cousson7b342a82011-07-09 19:15:05 -06001422/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001423#define OMAP4430_TESLA_DYNDEP_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001424#define OMAP4430_TESLA_DYNDEP_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001425
1426/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001427#define OMAP4430_TESLA_STATDEP_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001428#define OMAP4430_TESLA_STATDEP_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001429
1430/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001431 * Used by CM_D2D_DYNAMICDEP, CM_DUCATI_DYNAMICDEP, CM_EMU_DYNAMICDEP,
1432 * CM_L3_1_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP,
1433 * CM_L4PER_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001434 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001435#define OMAP4430_WINDOWSIZE_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -06001436#define OMAP4430_WINDOWSIZE_MASK (0xf << 24)
1437
1438/* Used by REVISION_CM1, REVISION_CM2 */
1439#define OMAP4430_X_MAJOR_SHIFT 8
1440#define OMAP4430_X_MAJOR_MASK (0x7 << 8)
1441
1442/* Used by REVISION_CM1, REVISION_CM2 */
1443#define OMAP4430_Y_MINOR_SHIFT 0
1444#define OMAP4430_Y_MINOR_MASK (0x3f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001445#endif