blob: 9d47a05b17b45b3496941af9c366324ef2af5dbe [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
Rajendra Nayak568997c2010-09-27 14:02:55 -060025/*
26 * Used by CM_L3_1_DYNAMICDEP, CM_L3_1_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP,
27 * CM_TESLA_DYNAMICDEP
28 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070029#define OMAP4430_ABE_DYNDEP_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -060030#define OMAP4430_ABE_DYNDEP_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -070031
32/*
Rajendra Nayak568997c2010-09-27 14:02:55 -060033 * Used by CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_DUCATI_STATICDEP,
34 * CM_L3INIT_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
35 * CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -070036 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070037#define OMAP4430_ABE_STATDEP_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -060038#define OMAP4430_ABE_STATDEP_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -070039
Rajendra Nayak568997c2010-09-27 14:02:55 -060040/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070041#define OMAP4430_ALWONCORE_DYNDEP_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -060042#define OMAP4430_ALWONCORE_DYNDEP_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -070043
44/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070045#define OMAP4430_ALWONCORE_STATDEP_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -060046#define OMAP4430_ALWONCORE_STATDEP_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -070047
48/*
Rajendra Nayak568997c2010-09-27 14:02:55 -060049 * Used by CM_AUTOIDLE_DPLL_ABE, CM_AUTOIDLE_DPLL_CORE,
50 * CM_AUTOIDLE_DPLL_CORE_RESTORE, CM_AUTOIDLE_DPLL_DDRPHY,
51 * CM_AUTOIDLE_DPLL_IVA, CM_AUTOIDLE_DPLL_MPU, CM_AUTOIDLE_DPLL_PER,
52 * CM_AUTOIDLE_DPLL_UNIPRO, CM_AUTOIDLE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -070053 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070054#define OMAP4430_AUTO_DPLL_MODE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -060055#define OMAP4430_AUTO_DPLL_MODE_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -070056
Rajendra Nayak568997c2010-09-27 14:02:55 -060057/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070058#define OMAP4430_CEFUSE_DYNDEP_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -060059#define OMAP4430_CEFUSE_DYNDEP_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -070060
61/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070062#define OMAP4430_CEFUSE_STATDEP_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -060063#define OMAP4430_CEFUSE_STATDEP_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -070064
65/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070066#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -060067#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -070068
69/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070070#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -060071#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -070072
73/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070074#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -060075#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -070076
77/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070078#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -060079#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -070080
81/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070082#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -060083#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -070084
85/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070086#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -060087#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -070088
89/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070090#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -060091#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -070092
93/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070094#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -060095#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -070096
97/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070098#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -060099#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_MASK (1 << 9)
100
101/* Used by CM_ALWON_CLKSTCTRL */
102#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_SHIFT 12
103#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700104
105/* Used by CM_EMU_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700106#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600107#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700108
109/* Used by CM_CEFUSE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700110#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600111#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700112
113/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700114#define OMAP4430_CLKACTIVITY_DLL_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600115#define OMAP4430_CLKACTIVITY_DLL_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700116
117/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700118#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600119#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700120
121/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700122#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600123#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700124
125/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700126#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600127#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700128
129/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700130#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600131#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700132
133/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700134#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -0600135#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700136
137/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700138#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -0600139#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700140
141/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700142#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600143#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700144
145/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700146#define OMAP4430_CLKACTIVITY_DSS_FCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600147#define OMAP4430_CLKACTIVITY_DSS_FCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700148
149/* Used by CM_DUCATI_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700150#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600151#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700152
153/* Used by CM_EMU_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700154#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600155#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700156
157/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700158#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600159#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700160
161/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700162#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -0600163#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700164
165/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700166#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600167#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700168
169/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700170#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600171#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700172
173/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700174#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600175#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700176
177/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700178#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_SHIFT 26
Rajendra Nayak568997c2010-09-27 14:02:55 -0600179#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_MASK (1 << 26)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700180
181/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700182#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_SHIFT 21
Rajendra Nayak568997c2010-09-27 14:02:55 -0600183#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_MASK (1 << 21)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700184
185/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700186#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_SHIFT 27
Rajendra Nayak568997c2010-09-27 14:02:55 -0600187#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_MASK (1 << 27)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700188
189/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700190#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -0600191#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700192
193/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700194#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600195#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700196
197/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700198#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_SHIFT 28
Rajendra Nayak568997c2010-09-27 14:02:55 -0600199#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_MASK (1 << 28)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700200
201/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700202#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_SHIFT 29
Rajendra Nayak568997c2010-09-27 14:02:55 -0600203#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_MASK (1 << 29)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700204
205/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700206#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600207#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700208
209/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700210#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600211#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700212
213/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700214#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -0600215#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700216
217/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700218#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600219#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700220
221/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700222#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -0600223#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700224
225/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700226#define OMAP4430_CLKACTIVITY_ISS_GCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600227#define OMAP4430_CLKACTIVITY_ISS_GCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700228
229/* Used by CM_IVAHD_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700230#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600231#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700232
Rajendra Nayak568997c2010-09-27 14:02:55 -0600233/* Used by CM_D2D_CLKSTCTRL */
234#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_SHIFT 10
235#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700236
237/* Used by CM_L3_1_CLKSTCTRL, CM_L3_1_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700238#define OMAP4430_CLKACTIVITY_L3_1_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600239#define OMAP4430_CLKACTIVITY_L3_1_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700240
241/* Used by CM_L3_2_CLKSTCTRL, CM_L3_2_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700242#define OMAP4430_CLKACTIVITY_L3_2_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600243#define OMAP4430_CLKACTIVITY_L3_2_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700244
245/* Used by CM_D2D_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700246#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600247#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700248
249/* Used by CM_SDMA_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700250#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600251#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700252
253/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700254#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600255#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700256
257/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700258#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600259#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700260
261/* Used by CM_GFX_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700262#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600263#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700264
265/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700266#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600267#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700268
269/* Used by CM_L3INSTR_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700270#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600271#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700272
273/* Used by CM_L4SEC_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700274#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600275#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700276
277/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700278#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600279#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700280
281/* Used by CM_CEFUSE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700282#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600283#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700284
285/* Used by CM_L4CFG_CLKSTCTRL, CM_L4CFG_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700286#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600287#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700288
289/* Used by CM_D2D_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700290#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600291#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700292
293/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700294#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600295#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700296
297/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700298#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600299#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700300
301/* Used by CM_L4SEC_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700302#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600303#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700304
305/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700306#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600307#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700308
309/* Used by CM_MPU_CLKSTCTRL, CM_MPU_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700310#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600311#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700312
313/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700314#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600315#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700316
317/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700318#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600319#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700320
321/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700322#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_SHIFT 17
Rajendra Nayak568997c2010-09-27 14:02:55 -0600323#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700324
325/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700326#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600327#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700328
329/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700330#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -0600331#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700332
333/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700334#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -0600335#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700336
337/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700338#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600339#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700340
341/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700342#define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_SHIFT 21
Rajendra Nayak568997c2010-09-27 14:02:55 -0600343#define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_MASK (1 << 21)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700344
345/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700346#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_SHIFT 22
Rajendra Nayak568997c2010-09-27 14:02:55 -0600347#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_MASK (1 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700348
349/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700350#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600351#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700352
353/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700354#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600355#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700356
357/* Used by CM_GFX_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700358#define OMAP4430_CLKACTIVITY_SGX_GFCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600359#define OMAP4430_CLKACTIVITY_SGX_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700360
361/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700362#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600363#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700364
365/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700366#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600367#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700368
369/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700370#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600371#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700372
373/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700374#define OMAP4430_CLKACTIVITY_SYS_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600375#define OMAP4430_CLKACTIVITY_SYS_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700376
377/* Used by CM_TESLA_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700378#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600379#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700380
381/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700382#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_SHIFT 22
Rajendra Nayak568997c2010-09-27 14:02:55 -0600383#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_MASK (1 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700384
385/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700386#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_SHIFT 23
Rajendra Nayak568997c2010-09-27 14:02:55 -0600387#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_MASK (1 << 23)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700388
389/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700390#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600391#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_MASK (1 << 24)
392
393/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
394#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_SHIFT 10
395#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_MASK (1 << 10)
396
397/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
398#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_SHIFT 14
399#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700400
401/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700402#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -0600403#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700404
405/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700406#define OMAP4430_CLKACTIVITY_USIM_GFCLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600407#define OMAP4430_CLKACTIVITY_USIM_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700408
409/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700410#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_SHIFT 30
Rajendra Nayak568997c2010-09-27 14:02:55 -0600411#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_MASK (1 << 30)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700412
413/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700414#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -0600415#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700416
417/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700418#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600419#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700420
421/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600422 * Used by CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL,
423 * CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL,
424 * CM_L3INIT_MMC2_CLKCTRL, CM_L3INIT_MMC6_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -0700425 * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL,
426 * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL,
427 * CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600428 * CM_WKUP_TIMER1_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700429 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700430#define OMAP4430_CLKSEL_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600431#define OMAP4430_CLKSEL_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700432
433/*
434 * Renamed from CLKSEL Used by CM_ABE_DSS_SYS_CLKSEL, CM_ABE_PLL_REF_CLKSEL,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600435 * CM_L4_WKUP_CLKSEL, CM_CLKSEL_DUCATI_ISS_ROOT, CM_CLKSEL_USB_60MHZ
Rajendra Nayakdd708412009-12-08 18:24:54 -0700436 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700437#define OMAP4430_CLKSEL_0_0_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600438#define OMAP4430_CLKSEL_0_0_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700439
440/* Renamed from CLKSEL Used by CM_BYPCLK_DPLL_IVA, CM_BYPCLK_DPLL_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700441#define OMAP4430_CLKSEL_0_1_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600442#define OMAP4430_CLKSEL_0_1_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700443
444/* Renamed from CLKSEL Used by CM_L3INIT_HSI_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700445#define OMAP4430_CLKSEL_24_25_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600446#define OMAP4430_CLKSEL_24_25_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700447
448/* Used by CM_L3INIT_USB_OTG_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700449#define OMAP4430_CLKSEL_60M_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600450#define OMAP4430_CLKSEL_60M_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700451
452/* Used by CM1_ABE_AESS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700453#define OMAP4430_CLKSEL_AESS_FCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600454#define OMAP4430_CLKSEL_AESS_FCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700455
Rajendra Nayak568997c2010-09-27 14:02:55 -0600456/* Used by CM_CLKSEL_CORE, CM_CLKSEL_CORE_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700457#define OMAP4430_CLKSEL_CORE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600458#define OMAP4430_CLKSEL_CORE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700459
Rajendra Nayak568997c2010-09-27 14:02:55 -0600460/*
461 * Renamed from CLKSEL_CORE Used by CM_SHADOW_FREQ_CONFIG2_RESTORE,
462 * CM_SHADOW_FREQ_CONFIG2
463 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700464#define OMAP4430_CLKSEL_CORE_1_1_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600465#define OMAP4430_CLKSEL_CORE_1_1_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700466
467/* Used by CM_WKUP_USIM_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700468#define OMAP4430_CLKSEL_DIV_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600469#define OMAP4430_CLKSEL_DIV_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700470
471/* Used by CM_CAM_FDIF_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700472#define OMAP4430_CLKSEL_FCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600473#define OMAP4430_CLKSEL_FCLK_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700474
475/* Used by CM_L4PER_MCBSP4_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700476#define OMAP4430_CLKSEL_INTERNAL_SOURCE_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -0600477#define OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700478
479/*
480 * Renamed from CLKSEL_INTERNAL_SOURCE Used by CM1_ABE_DMIC_CLKCTRL,
481 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
482 * CM1_ABE_MCBSP3_CLKCTRL
483 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700484#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_SHIFT 26
Rajendra Nayak568997c2010-09-27 14:02:55 -0600485#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_MASK (0x3 << 26)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700486
Rajendra Nayak568997c2010-09-27 14:02:55 -0600487/* Used by CM_CLKSEL_CORE, CM_CLKSEL_CORE_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700488#define OMAP4430_CLKSEL_L3_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -0600489#define OMAP4430_CLKSEL_L3_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700490
Rajendra Nayak568997c2010-09-27 14:02:55 -0600491/*
492 * Renamed from CLKSEL_L3 Used by CM_SHADOW_FREQ_CONFIG2_RESTORE,
493 * CM_SHADOW_FREQ_CONFIG2
494 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700495#define OMAP4430_CLKSEL_L3_SHADOW_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600496#define OMAP4430_CLKSEL_L3_SHADOW_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700497
Rajendra Nayak568997c2010-09-27 14:02:55 -0600498/* Used by CM_CLKSEL_CORE, CM_CLKSEL_CORE_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700499#define OMAP4430_CLKSEL_L4_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600500#define OMAP4430_CLKSEL_L4_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700501
502/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700503#define OMAP4430_CLKSEL_OPP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600504#define OMAP4430_CLKSEL_OPP_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700505
506/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700507#define OMAP4430_CLKSEL_PMD_STM_CLK_SHIFT 27
Rajendra Nayak568997c2010-09-27 14:02:55 -0600508#define OMAP4430_CLKSEL_PMD_STM_CLK_MASK (0x7 << 27)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700509
510/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700511#define OMAP4430_CLKSEL_PMD_TRACE_CLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600512#define OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK (0x7 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700513
514/* Used by CM_GFX_GFX_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700515#define OMAP4430_CLKSEL_SGX_FCLK_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600516#define OMAP4430_CLKSEL_SGX_FCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700517
518/*
519 * Used by CM1_ABE_DMIC_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL,
520 * CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL
521 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700522#define OMAP4430_CLKSEL_SOURCE_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600523#define OMAP4430_CLKSEL_SOURCE_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700524
525/* Renamed from CLKSEL_SOURCE Used by CM_L4PER_MCBSP4_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700526#define OMAP4430_CLKSEL_SOURCE_24_24_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600527#define OMAP4430_CLKSEL_SOURCE_24_24_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700528
529/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700530#define OMAP4430_CLKSEL_UTMI_P1_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600531#define OMAP4430_CLKSEL_UTMI_P1_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700532
533/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700534#define OMAP4430_CLKSEL_UTMI_P2_SHIFT 25
Rajendra Nayak568997c2010-09-27 14:02:55 -0600535#define OMAP4430_CLKSEL_UTMI_P2_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700536
537/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600538 * Used by CM1_ABE_CLKSTCTRL, CM_ALWON_CLKSTCTRL, CM_CAM_CLKSTCTRL,
539 * CM_CEFUSE_CLKSTCTRL, CM_D2D_CLKSTCTRL, CM_DSS_CLKSTCTRL,
540 * CM_DUCATI_CLKSTCTRL, CM_EMU_CLKSTCTRL, CM_GFX_CLKSTCTRL, CM_IVAHD_CLKSTCTRL,
541 * CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE, CM_L3INSTR_CLKSTCTRL,
542 * CM_L3_1_CLKSTCTRL, CM_L3_1_CLKSTCTRL_RESTORE, CM_L3_2_CLKSTCTRL,
543 * CM_L3_2_CLKSTCTRL_RESTORE, CM_L4CFG_CLKSTCTRL, CM_L4CFG_CLKSTCTRL_RESTORE,
544 * CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE, CM_L4SEC_CLKSTCTRL,
545 * CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE, CM_MPU_CLKSTCTRL,
546 * CM_MPU_CLKSTCTRL_RESTORE, CM_SDMA_CLKSTCTRL, CM_TESLA_CLKSTCTRL,
547 * CM_WKUP_CLKSTCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700548 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700549#define OMAP4430_CLKTRCTRL_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600550#define OMAP4430_CLKTRCTRL_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700551
552/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700553#define OMAP4430_CORE_DPLL_EMU_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600554#define OMAP4430_CORE_DPLL_EMU_DIV_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700555
556/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700557#define OMAP4430_CORE_DPLL_EMU_MULT_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600558#define OMAP4430_CORE_DPLL_EMU_MULT_MASK (0x7ff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700559
Rajendra Nayak568997c2010-09-27 14:02:55 -0600560/* Used by REVISION_CM1, REVISION_CM2 */
561#define OMAP4430_CUSTOM_SHIFT 6
562#define OMAP4430_CUSTOM_MASK (0x3 << 6)
563
564/*
565 * Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
566 * CM_L4CFG_DYNAMICDEP_RESTORE
567 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700568#define OMAP4430_D2D_DYNDEP_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600569#define OMAP4430_D2D_DYNDEP_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700570
571/* Used by CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700572#define OMAP4430_D2D_STATDEP_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -0600573#define OMAP4430_D2D_STATDEP_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700574
575/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600576 * Used by CM_SSC_DELTAMSTEP_DPLL_ABE, CM_SSC_DELTAMSTEP_DPLL_CORE,
577 * CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE, CM_SSC_DELTAMSTEP_DPLL_DDRPHY,
578 * CM_SSC_DELTAMSTEP_DPLL_IVA, CM_SSC_DELTAMSTEP_DPLL_MPU,
579 * CM_SSC_DELTAMSTEP_DPLL_PER, CM_SSC_DELTAMSTEP_DPLL_UNIPRO,
580 * CM_SSC_DELTAMSTEP_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700581 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700582#define OMAP4430_DELTAMSTEP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600583#define OMAP4430_DELTAMSTEP_MASK (0xfffff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700584
Rajendra Nayak568997c2010-09-27 14:02:55 -0600585/* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700586#define OMAP4430_DLL_OVERRIDE_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600587#define OMAP4430_DLL_OVERRIDE_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700588
589/* Renamed from DLL_OVERRIDE Used by CM_DLL_CTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700590#define OMAP4430_DLL_OVERRIDE_0_0_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600591#define OMAP4430_DLL_OVERRIDE_0_0_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700592
Rajendra Nayak568997c2010-09-27 14:02:55 -0600593/* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700594#define OMAP4430_DLL_RESET_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600595#define OMAP4430_DLL_RESET_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700596
597/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600598 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
599 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA,
600 * CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO,
601 * CM_CLKSEL_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700602 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700603#define OMAP4430_DPLL_BYP_CLKSEL_SHIFT 23
Rajendra Nayak568997c2010-09-27 14:02:55 -0600604#define OMAP4430_DPLL_BYP_CLKSEL_MASK (1 << 23)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700605
606/* Used by CM_CLKDCOLDO_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700607#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600608#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700609
Rajendra Nayak568997c2010-09-27 14:02:55 -0600610/* Used by CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_CORE_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700611#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -0600612#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700613
614/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600615 * Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE,
616 * CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700617 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700618#define OMAP4430_DPLL_CLKOUTHIF_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600619#define OMAP4430_DPLL_CLKOUTHIF_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700620
621/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600622 * Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE,
623 * CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700624 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700625#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600626#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700627
628/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600629 * Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE,
630 * CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700631 */
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/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600640 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
641 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU,
642 * CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700643 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700644#define OMAP4430_DPLL_CLKOUT_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600645#define OMAP4430_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700646
647/* Renamed from DPLL_CLKOUT_DIV Used by CM_DIV_M2_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700648#define OMAP4430_DPLL_CLKOUT_DIV_0_6_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600649#define OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700650
651/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600652 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
653 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU,
654 * CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700655 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700656#define OMAP4430_DPLL_CLKOUT_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600657#define OMAP4430_DPLL_CLKOUT_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700658
659/* Renamed from DPLL_CLKOUT_DIVCHACK Used by CM_DIV_M2_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700660#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -0600661#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700662
663/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600664 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
665 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU,
666 * CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700667 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700668#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600669#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700670
Rajendra Nayak568997c2010-09-27 14:02:55 -0600671/* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700672#define OMAP4430_DPLL_CORE_DPLL_EN_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600673#define OMAP4430_DPLL_CORE_DPLL_EN_MASK (0x7 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700674
Rajendra Nayak568997c2010-09-27 14:02:55 -0600675/* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700676#define OMAP4430_DPLL_CORE_M2_DIV_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600677#define OMAP4430_DPLL_CORE_M2_DIV_MASK (0x1f << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700678
Rajendra Nayak568997c2010-09-27 14:02:55 -0600679/* Used by CM_SHADOW_FREQ_CONFIG2, CM_SHADOW_FREQ_CONFIG2_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700680#define OMAP4430_DPLL_CORE_M5_DIV_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600681#define OMAP4430_DPLL_CORE_M5_DIV_MASK (0x1f << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700682
683/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600684 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
685 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA,
686 * CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700687 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700688#define OMAP4430_DPLL_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600689#define OMAP4430_DPLL_DIV_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700690
691/* Renamed from DPLL_DIV Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700692#define OMAP4430_DPLL_DIV_0_7_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600693#define OMAP4430_DPLL_DIV_0_7_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700694
695/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600696 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
697 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
698 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700699 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700700#define OMAP4430_DPLL_DRIFTGUARD_EN_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600701#define OMAP4430_DPLL_DRIFTGUARD_EN_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700702
703/* Renamed from DPLL_DRIFTGUARD_EN Used by CM_CLKMODE_DPLL_UNIPRO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700704#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600705#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700706
707/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600708 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
709 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
710 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
711 * CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700712 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700713#define OMAP4430_DPLL_EN_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600714#define OMAP4430_DPLL_EN_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700715
716/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600717 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
718 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
719 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700720 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700721#define OMAP4430_DPLL_LPMODE_EN_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600722#define OMAP4430_DPLL_LPMODE_EN_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700723
724/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600725 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
726 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA,
727 * CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700728 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700729#define OMAP4430_DPLL_MULT_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600730#define OMAP4430_DPLL_MULT_MASK (0x7ff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700731
732/* Renamed from DPLL_MULT Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700733#define OMAP4430_DPLL_MULT_USB_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600734#define OMAP4430_DPLL_MULT_USB_MASK (0xfff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700735
736/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600737 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
738 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
739 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700740 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700741#define OMAP4430_DPLL_REGM4XEN_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -0600742#define OMAP4430_DPLL_REGM4XEN_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700743
744/* Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700745#define OMAP4430_DPLL_SD_DIV_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -0600746#define OMAP4430_DPLL_SD_DIV_MASK (0xff << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700747
748/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600749 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
750 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
751 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
752 * CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700753 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700754#define OMAP4430_DPLL_SSC_ACK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -0600755#define OMAP4430_DPLL_SSC_ACK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700756
757/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600758 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
759 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
760 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
761 * CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700762 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700763#define OMAP4430_DPLL_SSC_DOWNSPREAD_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -0600764#define OMAP4430_DPLL_SSC_DOWNSPREAD_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700765
766/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600767 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
768 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
769 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
770 * CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700771 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700772#define OMAP4430_DPLL_SSC_EN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600773#define OMAP4430_DPLL_SSC_EN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700774
775/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600776 * Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
777 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_L4PER_DYNAMICDEP, CM_L4PER_DYNAMICDEP_RESTORE
778 */
779#define OMAP4430_DSS_DYNDEP_SHIFT 8
780#define OMAP4430_DSS_DYNDEP_MASK (1 << 8)
781
782/*
783 * Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
784 * CM_SDMA_STATICDEP_RESTORE
Rajendra Nayakdd708412009-12-08 18:24:54 -0700785 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700786#define OMAP4430_DSS_STATDEP_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600787#define OMAP4430_DSS_STATDEP_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700788
Rajendra Nayak568997c2010-09-27 14:02:55 -0600789/* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700790#define OMAP4430_DUCATI_DYNDEP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600791#define OMAP4430_DUCATI_DYNDEP_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700792
Rajendra Nayak568997c2010-09-27 14:02:55 -0600793/* Used by CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700794#define OMAP4430_DUCATI_STATDEP_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600795#define OMAP4430_DUCATI_STATDEP_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700796
Rajendra Nayak568997c2010-09-27 14:02:55 -0600797/* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700798#define OMAP4430_FREQ_UPDATE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600799#define OMAP4430_FREQ_UPDATE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700800
Rajendra Nayak568997c2010-09-27 14:02:55 -0600801/* Used by REVISION_CM1, REVISION_CM2 */
802#define OMAP4430_FUNC_SHIFT 16
803#define OMAP4430_FUNC_MASK (0xfff << 16)
804
805/* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700806#define OMAP4430_GFX_DYNDEP_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600807#define OMAP4430_GFX_DYNDEP_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700808
809/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700810#define OMAP4430_GFX_STATDEP_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -0600811#define OMAP4430_GFX_STATDEP_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700812
Rajendra Nayak568997c2010-09-27 14:02:55 -0600813/* Used by CM_SHADOW_FREQ_CONFIG2, CM_SHADOW_FREQ_CONFIG2_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700814#define OMAP4430_GPMC_FREQ_UPDATE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600815#define OMAP4430_GPMC_FREQ_UPDATE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700816
817/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600818 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
819 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, 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_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600822#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700823
824/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600825 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
826 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, 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_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600829#define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700830
831/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600832 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
833 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700834 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700835#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600836#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700837
838/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600839 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
840 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700841 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700842#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600843#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700844
845/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600846 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
847 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, 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_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600850#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700851
852/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600853 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
854 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, 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_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600857#define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700858
859/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600860 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
861 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700862 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700863#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600864#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700865
866/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600867 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
868 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700869 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700870#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600871#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700872
873/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600874 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
875 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700876 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700877#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600878#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700879
880/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600881 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
882 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700883 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700884#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600885#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700886
887/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600888 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
889 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700890 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700891#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600892#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700893
894/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600895 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
896 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700897 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700898#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600899#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700900
901/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600902 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
903 * CM_DIV_M7_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700904 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700905#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -0600906#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700907
908/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600909 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
910 * CM_DIV_M7_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700911 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700912#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600913#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700914
915/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600916 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
917 * CM_DIV_M7_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700918 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700919#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600920#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700921
922/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600923 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
924 * CM_DIV_M7_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700925 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700926#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -0600927#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700928
929/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600930 * Used by CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL,
931 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
932 * CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL,
933 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
934 * CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, CM_ALWON_MDMINTC_CLKCTRL,
935 * CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL,
936 * CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL,
937 * CM_CM1_PROFILING_CLKCTRL, CM_CM1_PROFILING_CLKCTRL_RESTORE,
938 * CM_CM2_PROFILING_CLKCTRL, CM_CM2_PROFILING_CLKCTRL_RESTORE,
939 * CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL,
940 * CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
941 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
942 * CM_IVAHD_SL2_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -0700943 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
944 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
945 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
946 * CM_L3INIT_USBPHYOCP2SCP_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -0600947 * CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_HOST_FS_CLKCTRL,
948 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL,
949 * CM_L3INIT_USB_TLL_CLKCTRL_RESTORE, CM_L3INIT_XHPI_CLKCTRL,
950 * CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_3_CLKCTRL_RESTORE,
951 * CM_L3INSTR_L3_INSTR_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE,
952 * CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE,
953 * CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, CM_L3_2_L3_2_CLKCTRL,
954 * CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, CM_L4CFG_L4_CFG_CLKCTRL,
955 * CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, CM_L4PER_ADC_CLKCTRL,
956 * CM_L4PER_DMTIMER10_CLKCTRL, CM_L4PER_DMTIMER11_CLKCTRL,
957 * CM_L4PER_DMTIMER2_CLKCTRL, CM_L4PER_DMTIMER3_CLKCTRL,
958 * CM_L4PER_DMTIMER4_CLKCTRL, CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL,
959 * CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
960 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL_RESTORE,
961 * CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
962 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL_RESTORE,
963 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL_RESTORE,
964 * CM_L4PER_HDQ1W_CLKCTRL, CM_L4PER_HECC1_CLKCTRL, CM_L4PER_HECC2_CLKCTRL,
965 * CM_L4PER_I2C1_CLKCTRL, CM_L4PER_I2C2_CLKCTRL, CM_L4PER_I2C3_CLKCTRL,
966 * CM_L4PER_I2C4_CLKCTRL, CM_L4PER_I2C5_CLKCTRL, CM_L4PER_L4PER_CLKCTRL,
967 * CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL, CM_L4PER_MCBSP4_CLKCTRL,
968 * CM_L4PER_MCSPI1_CLKCTRL, CM_L4PER_MCSPI2_CLKCTRL, CM_L4PER_MCSPI3_CLKCTRL,
969 * CM_L4PER_MCSPI4_CLKCTRL, CM_L4PER_MGATE_CLKCTRL, CM_L4PER_MMCSD3_CLKCTRL,
970 * CM_L4PER_MMCSD4_CLKCTRL, CM_L4PER_MMCSD5_CLKCTRL, CM_L4PER_MSPROHG_CLKCTRL,
971 * CM_L4PER_SLIMBUS2_CLKCTRL, CM_L4PER_UART1_CLKCTRL, CM_L4PER_UART2_CLKCTRL,
972 * CM_L4PER_UART3_CLKCTRL, CM_L4PER_UART4_CLKCTRL, CM_L4SEC_AES1_CLKCTRL,
973 * CM_L4SEC_AES2_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L4SEC_DES3DES_CLKCTRL,
974 * CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL, CM_L4SEC_SHA2MD51_CLKCTRL,
975 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
976 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL,
977 * CM_MEMIF_EMIF_H2_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
978 * CM_TESLA_TESLA_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL,
979 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL,
980 * CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL,
981 * CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700982 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700983#define OMAP4430_IDLEST_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -0600984#define OMAP4430_IDLEST_MASK (0x3 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700985
986/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600987 * Used by CM_DUCATI_DYNAMICDEP, CM_L3_2_DYNAMICDEP,
988 * CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE
989 */
990#define OMAP4430_ISS_DYNDEP_SHIFT 9
991#define OMAP4430_ISS_DYNDEP_MASK (1 << 9)
992
993/*
994 * Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
995 * CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -0700996 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700997#define OMAP4430_ISS_STATDEP_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600998#define OMAP4430_ISS_STATDEP_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700999
Rajendra Nayak568997c2010-09-27 14:02:55 -06001000/* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_TESLA_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001001#define OMAP4430_IVAHD_DYNDEP_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001002#define OMAP4430_IVAHD_DYNDEP_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001003
1004/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001005 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE,
1006 * CM_DSS_STATICDEP, CM_DUCATI_STATICDEP, CM_GFX_STATICDEP,
1007 * CM_L3INIT_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
1008 * CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001009 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001010#define OMAP4430_IVAHD_STATDEP_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001011#define OMAP4430_IVAHD_STATDEP_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001012
Rajendra Nayak568997c2010-09-27 14:02:55 -06001013/*
1014 * Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1015 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_L4PER_DYNAMICDEP, CM_L4PER_DYNAMICDEP_RESTORE
1016 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001017#define OMAP4430_L3INIT_DYNDEP_SHIFT 7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001018#define OMAP4430_L3INIT_DYNDEP_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001019
1020/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001021 * Used by CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_DUCATI_STATICDEP,
1022 * CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE,
Rajendra Nayakdd708412009-12-08 18:24:54 -07001023 * CM_TESLA_STATICDEP
1024 */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001025#define OMAP4430_L3INIT_STATDEP_SHIFT 7
1026#define OMAP4430_L3INIT_STATDEP_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001027
1028/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001029 * Used by CM_DSS_DYNAMICDEP, CM_L3INIT_DYNAMICDEP, CM_L3_2_DYNAMICDEP,
1030 * CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1031 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
1032 */
1033#define OMAP4430_L3_1_DYNDEP_SHIFT 5
1034#define OMAP4430_L3_1_DYNDEP_MASK (1 << 5)
1035
1036/*
1037 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE,
1038 * CM_DSS_STATICDEP, CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
1039 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
1040 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1041 */
1042#define OMAP4430_L3_1_STATDEP_SHIFT 5
1043#define OMAP4430_L3_1_STATDEP_MASK (1 << 5)
1044
1045/*
1046 * Used by CM_CAM_DYNAMICDEP, CM_D2D_DYNAMICDEP, CM_D2D_DYNAMICDEP_RESTORE,
1047 * CM_DUCATI_DYNAMICDEP, CM_EMU_DYNAMICDEP, CM_GFX_DYNAMICDEP,
1048 * CM_IVAHD_DYNAMICDEP, CM_L3INIT_DYNAMICDEP, CM_L3_1_DYNAMICDEP,
1049 * CM_L3_1_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1050 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_L4SEC_DYNAMICDEP, CM_SDMA_DYNAMICDEP
1051 */
1052#define OMAP4430_L3_2_DYNDEP_SHIFT 6
1053#define OMAP4430_L3_2_DYNDEP_MASK (1 << 6)
1054
1055/*
1056 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE,
1057 * CM_DSS_STATICDEP, CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
1058 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
1059 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1060 */
1061#define OMAP4430_L3_2_STATDEP_SHIFT 6
1062#define OMAP4430_L3_2_STATDEP_MASK (1 << 6)
1063
1064/* Used by CM_L3_1_DYNAMICDEP, CM_L3_1_DYNAMICDEP_RESTORE */
1065#define OMAP4430_L4CFG_DYNDEP_SHIFT 12
1066#define OMAP4430_L4CFG_DYNDEP_MASK (1 << 12)
1067
1068/*
1069 * Used by CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_DUCATI_STATICDEP,
1070 * CM_L3INIT_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
1071 * CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1072 */
1073#define OMAP4430_L4CFG_STATDEP_SHIFT 12
1074#define OMAP4430_L4CFG_STATDEP_MASK (1 << 12)
1075
1076/* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */
1077#define OMAP4430_L4PER_DYNDEP_SHIFT 13
1078#define OMAP4430_L4PER_DYNDEP_MASK (1 << 13)
1079
1080/*
1081 * Used by CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_DUCATI_STATICDEP,
1082 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
1083 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001084 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001085#define OMAP4430_L4PER_STATDEP_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -06001086#define OMAP4430_L4PER_STATDEP_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001087
1088/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001089 * Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4PER_DYNAMICDEP,
1090 * CM_L4PER_DYNAMICDEP_RESTORE
1091 */
1092#define OMAP4430_L4SEC_DYNDEP_SHIFT 14
1093#define OMAP4430_L4SEC_DYNDEP_MASK (1 << 14)
1094
1095/*
1096 * Used by CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP, CM_MPU_STATICDEP,
1097 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE
Rajendra Nayakdd708412009-12-08 18:24:54 -07001098 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001099#define OMAP4430_L4SEC_STATDEP_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -06001100#define OMAP4430_L4SEC_STATDEP_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001101
Rajendra Nayak568997c2010-09-27 14:02:55 -06001102/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001103#define OMAP4430_L4WKUP_DYNDEP_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -06001104#define OMAP4430_L4WKUP_DYNDEP_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001105
1106/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001107 * Used by CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP, CM_MPU_STATICDEP,
1108 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001109 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001110#define OMAP4430_L4WKUP_STATDEP_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -06001111#define OMAP4430_L4WKUP_STATDEP_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001112
1113/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001114 * Used by CM_D2D_DYNAMICDEP, CM_D2D_DYNAMICDEP_RESTORE, CM_L3_1_DYNAMICDEP,
1115 * CM_L3_1_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1116 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001117 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001118#define OMAP4430_MEMIF_DYNDEP_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001119#define OMAP4430_MEMIF_DYNDEP_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001120
1121/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001122 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE,
1123 * CM_DSS_STATICDEP, CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
1124 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
1125 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001126 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001127#define OMAP4430_MEMIF_STATDEP_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001128#define OMAP4430_MEMIF_STATDEP_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001129
1130/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001131 * Used by CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
1132 * CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE, CM_SSC_MODFREQDIV_DPLL_DDRPHY,
1133 * CM_SSC_MODFREQDIV_DPLL_IVA, CM_SSC_MODFREQDIV_DPLL_MPU,
1134 * CM_SSC_MODFREQDIV_DPLL_PER, CM_SSC_MODFREQDIV_DPLL_UNIPRO,
1135 * CM_SSC_MODFREQDIV_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001136 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001137#define OMAP4430_MODFREQDIV_EXPONENT_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001138#define OMAP4430_MODFREQDIV_EXPONENT_MASK (0x7 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001139
1140/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001141 * Used by CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
1142 * CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE, CM_SSC_MODFREQDIV_DPLL_DDRPHY,
1143 * CM_SSC_MODFREQDIV_DPLL_IVA, CM_SSC_MODFREQDIV_DPLL_MPU,
1144 * CM_SSC_MODFREQDIV_DPLL_PER, CM_SSC_MODFREQDIV_DPLL_UNIPRO,
1145 * CM_SSC_MODFREQDIV_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001146 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001147#define OMAP4430_MODFREQDIV_MANTISSA_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001148#define OMAP4430_MODFREQDIV_MANTISSA_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001149
1150/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001151 * Used by CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL,
1152 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
1153 * CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL,
1154 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
1155 * CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, CM_ALWON_MDMINTC_CLKCTRL,
1156 * CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL,
1157 * CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL,
1158 * CM_CM1_PROFILING_CLKCTRL, CM_CM1_PROFILING_CLKCTRL_RESTORE,
1159 * CM_CM2_PROFILING_CLKCTRL, CM_CM2_PROFILING_CLKCTRL_RESTORE,
1160 * CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL,
1161 * CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
1162 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
1163 * CM_IVAHD_SL2_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -07001164 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
1165 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
1166 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
1167 * CM_L3INIT_USBPHYOCP2SCP_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001168 * CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_HOST_FS_CLKCTRL,
1169 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL,
1170 * CM_L3INIT_USB_TLL_CLKCTRL_RESTORE, CM_L3INIT_XHPI_CLKCTRL,
1171 * CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_3_CLKCTRL_RESTORE,
1172 * CM_L3INSTR_L3_INSTR_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE,
1173 * CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE,
1174 * CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, CM_L3_2_L3_2_CLKCTRL,
1175 * CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, CM_L4CFG_L4_CFG_CLKCTRL,
1176 * CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, CM_L4PER_ADC_CLKCTRL,
1177 * CM_L4PER_DMTIMER10_CLKCTRL, CM_L4PER_DMTIMER11_CLKCTRL,
1178 * CM_L4PER_DMTIMER2_CLKCTRL, CM_L4PER_DMTIMER3_CLKCTRL,
1179 * CM_L4PER_DMTIMER4_CLKCTRL, CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL,
1180 * CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
1181 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL_RESTORE,
1182 * CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
1183 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL_RESTORE,
1184 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL_RESTORE,
1185 * CM_L4PER_HDQ1W_CLKCTRL, CM_L4PER_HECC1_CLKCTRL, CM_L4PER_HECC2_CLKCTRL,
1186 * CM_L4PER_I2C1_CLKCTRL, CM_L4PER_I2C2_CLKCTRL, CM_L4PER_I2C3_CLKCTRL,
1187 * CM_L4PER_I2C4_CLKCTRL, CM_L4PER_I2C5_CLKCTRL, CM_L4PER_L4PER_CLKCTRL,
1188 * CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL, CM_L4PER_MCBSP4_CLKCTRL,
1189 * CM_L4PER_MCSPI1_CLKCTRL, CM_L4PER_MCSPI2_CLKCTRL, CM_L4PER_MCSPI3_CLKCTRL,
1190 * CM_L4PER_MCSPI4_CLKCTRL, CM_L4PER_MGATE_CLKCTRL, CM_L4PER_MMCSD3_CLKCTRL,
1191 * CM_L4PER_MMCSD4_CLKCTRL, CM_L4PER_MMCSD5_CLKCTRL, CM_L4PER_MSPROHG_CLKCTRL,
1192 * CM_L4PER_SLIMBUS2_CLKCTRL, CM_L4PER_UART1_CLKCTRL, CM_L4PER_UART2_CLKCTRL,
1193 * CM_L4PER_UART3_CLKCTRL, CM_L4PER_UART4_CLKCTRL, CM_L4SEC_AES1_CLKCTRL,
1194 * CM_L4SEC_AES2_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L4SEC_DES3DES_CLKCTRL,
1195 * CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL, CM_L4SEC_SHA2MD51_CLKCTRL,
1196 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
1197 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL,
1198 * CM_MEMIF_EMIF_H2_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
1199 * CM_TESLA_TESLA_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL,
1200 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL,
1201 * CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL,
1202 * CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001203 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001204#define OMAP4430_MODULEMODE_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001205#define OMAP4430_MODULEMODE_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001206
1207/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001208#define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001209#define OMAP4430_OPTFCLKEN_48MHZ_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001210
1211/* Used by CM_WKUP_BANDGAP_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001212#define OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001213#define OMAP4430_OPTFCLKEN_BGAP_32K_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001214
Rajendra Nayak568997c2010-09-27 14:02:55 -06001215/* Used by CM_ALWON_USBPHY_CLKCTRL */
1216#define OMAP4430_OPTFCLKEN_CLK32K_SHIFT 8
1217#define OMAP4430_OPTFCLKEN_CLK32K_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001218
1219/* Used by CM_CAM_ISS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001220#define OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001221#define OMAP4430_OPTFCLKEN_CTRLCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001222
1223/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001224 * Used by CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
1225 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL_RESTORE,
1226 * CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
1227 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL_RESTORE,
1228 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL_RESTORE, CM_WKUP_GPIO1_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001229 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001230#define OMAP4430_OPTFCLKEN_DBCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001231#define OMAP4430_OPTFCLKEN_DBCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001232
1233/* Used by CM_MEMIF_DLL_CLKCTRL, CM_MEMIF_DLL_H_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001234#define OMAP4430_OPTFCLKEN_DLL_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001235#define OMAP4430_OPTFCLKEN_DLL_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001236
1237/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001238#define OMAP4430_OPTFCLKEN_DSSCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001239#define OMAP4430_OPTFCLKEN_DSSCLK_MASK (1 << 8)
1240
1241/* Used by CM_WKUP_USIM_CLKCTRL */
1242#define OMAP4430_OPTFCLKEN_FCLK_SHIFT 8
1243#define OMAP4430_OPTFCLKEN_FCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001244
1245/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001246#define OMAP4430_OPTFCLKEN_FCLK0_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001247#define OMAP4430_OPTFCLKEN_FCLK0_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001248
1249/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001250#define OMAP4430_OPTFCLKEN_FCLK1_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001251#define OMAP4430_OPTFCLKEN_FCLK1_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001252
1253/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001254#define OMAP4430_OPTFCLKEN_FCLK2_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001255#define OMAP4430_OPTFCLKEN_FCLK2_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001256
1257/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001258#define OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT 15
Rajendra Nayak568997c2010-09-27 14:02:55 -06001259#define OMAP4430_OPTFCLKEN_FUNC48MCLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001260
1261/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001262#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT 13
Rajendra Nayak568997c2010-09-27 14:02:55 -06001263#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001264
1265/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001266#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT 14
Rajendra Nayak568997c2010-09-27 14:02:55 -06001267#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001268
1269/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001270#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001271#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001272
1273/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001274#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT 12
Rajendra Nayak568997c2010-09-27 14:02:55 -06001275#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001276
1277/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001278#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001279#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001280
1281/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001282#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001283#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001284
1285/* Used by CM_L3INIT_USBPHYOCP2SCP_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001286#define OMAP4430_OPTFCLKEN_PHY_48M_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001287#define OMAP4430_OPTFCLKEN_PHY_48M_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001288
1289/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001290#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001291#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001292
1293/* Renamed from OPTFCLKEN_SLIMBUS_CLK Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001294#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001295#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001296
1297/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001298#define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001299#define OMAP4430_OPTFCLKEN_SYS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001300
1301/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001302#define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001303#define OMAP4430_OPTFCLKEN_TV_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001304
1305/* Used by CM_L3INIT_UNIPRO1_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001306#define OMAP4430_OPTFCLKEN_TXPHYCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001307#define OMAP4430_OPTFCLKEN_TXPHYCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001308
1309/* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001310#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001311#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001312
1313/* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001314#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001315#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001316
1317/* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001318#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001319#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001320
1321/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001322#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001323#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001324
1325/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001326#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001327#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001328
1329/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001330#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001331#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001332
1333/* Used by CM_L3INIT_USB_OTG_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001334#define OMAP4430_OPTFCLKEN_XCLK_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001335#define OMAP4430_OPTFCLKEN_XCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001336
Rajendra Nayak568997c2010-09-27 14:02:55 -06001337/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001338#define OMAP4430_OVERRIDE_ENABLE_SHIFT 19
Rajendra Nayak568997c2010-09-27 14:02:55 -06001339#define OMAP4430_OVERRIDE_ENABLE_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001340
1341/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001342#define OMAP4430_PAD_CLKS_GATE_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001343#define OMAP4430_PAD_CLKS_GATE_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001344
1345/* Used by CM_CORE_DVFS_CURRENT, CM_IVA_DVFS_CURRENT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001346#define OMAP4430_PERF_CURRENT_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001347#define OMAP4430_PERF_CURRENT_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001348
1349/*
1350 * Used by CM_CORE_DVFS_PERF1, CM_CORE_DVFS_PERF2, CM_CORE_DVFS_PERF3,
1351 * CM_CORE_DVFS_PERF4, CM_IVA_DVFS_PERF_ABE, CM_IVA_DVFS_PERF_IVAHD,
1352 * CM_IVA_DVFS_PERF_TESLA
1353 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001354#define OMAP4430_PERF_REQ_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001355#define OMAP4430_PERF_REQ_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001356
1357/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001358#define OMAP4430_PHASE1_COMPLETED_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001359#define OMAP4430_PHASE1_COMPLETED_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001360
1361/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001362#define OMAP4430_PHASE2A_COMPLETED_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001363#define OMAP4430_PHASE2A_COMPLETED_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001364
1365/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001366#define OMAP4430_PHASE2B_COMPLETED_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001367#define OMAP4430_PHASE2B_COMPLETED_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001368
1369/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001370#define OMAP4430_PMD_STM_MUX_CTRL_SHIFT 20
Rajendra Nayak568997c2010-09-27 14:02:55 -06001371#define OMAP4430_PMD_STM_MUX_CTRL_MASK (0x3 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001372
1373/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001374#define OMAP4430_PMD_TRACE_MUX_CTRL_SHIFT 22
Rajendra Nayak568997c2010-09-27 14:02:55 -06001375#define OMAP4430_PMD_TRACE_MUX_CTRL_MASK (0x3 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001376
Rajendra Nayak568997c2010-09-27 14:02:55 -06001377/* Used by CM_DYN_DEP_PRESCAL, CM_DYN_DEP_PRESCAL_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001378#define OMAP4430_PRESCAL_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001379#define OMAP4430_PRESCAL_MASK (0x3f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001380
Rajendra Nayak568997c2010-09-27 14:02:55 -06001381/* Used by REVISION_CM1, REVISION_CM2 */
1382#define OMAP4430_R_RTL_SHIFT 11
1383#define OMAP4430_R_RTL_MASK (0x1f << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001384
1385/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001386 * Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE,
1387 * CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE
Rajendra Nayakdd708412009-12-08 18:24:54 -07001388 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001389#define OMAP4430_SAR_MODE_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001390#define OMAP4430_SAR_MODE_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001391
1392/* Used by CM_SCALE_FCLK */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001393#define OMAP4430_SCALE_FCLK_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001394#define OMAP4430_SCALE_FCLK_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001395
Rajendra Nayak568997c2010-09-27 14:02:55 -06001396/* Used by REVISION_CM1, REVISION_CM2 */
1397#define OMAP4430_SCHEME_SHIFT 30
1398#define OMAP4430_SCHEME_MASK (0x3 << 30)
1399
1400/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001401#define OMAP4430_SDMA_DYNDEP_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001402#define OMAP4430_SDMA_DYNDEP_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001403
1404/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001405#define OMAP4430_SDMA_STATDEP_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001406#define OMAP4430_SDMA_STATDEP_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001407
1408/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001409#define OMAP4430_SLIMBUS_CLK_GATE_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -06001410#define OMAP4430_SLIMBUS_CLK_GATE_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001411
1412/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001413 * Used by CM1_ABE_AESS_CLKCTRL, CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL,
1414 * CM_D2D_SAD2D_CLKCTRL, CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL,
1415 * CM_DUCATI_DUCATI_CLKCTRL, CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL,
1416 * CM_IVAHD_IVAHD_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -07001417 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
1418 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
1419 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001420 * CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE,
1421 * CM_L3INIT_USB_HOST_FS_CLKCTRL, CM_L3INIT_USB_OTG_CLKCTRL,
1422 * CM_L3INIT_XHPI_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_MPU_MPU_CLKCTRL,
1423 * CM_SDMA_SDMA_CLKCTRL, CM_TESLA_TESLA_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001424 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001425#define OMAP4430_STBYST_SHIFT 18
Rajendra Nayak568997c2010-09-27 14:02:55 -06001426#define OMAP4430_STBYST_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001427
1428/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001429 * Used by CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
1430 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER,
1431 * CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001432 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001433#define OMAP4430_ST_DPLL_CLK_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001434#define OMAP4430_ST_DPLL_CLK_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001435
1436/* Used by CM_CLKDCOLDO_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001437#define OMAP4430_ST_DPLL_CLKDCOLDO_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001438#define OMAP4430_ST_DPLL_CLKDCOLDO_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001439
1440/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001441 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
1442 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU,
1443 * CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001444 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001445#define OMAP4430_ST_DPLL_CLKOUT_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001446#define OMAP4430_ST_DPLL_CLKOUT_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001447
1448/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001449 * Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE,
1450 * CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001451 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001452#define OMAP4430_ST_DPLL_CLKOUTHIF_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001453#define OMAP4430_ST_DPLL_CLKOUTHIF_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001454
Rajendra Nayak568997c2010-09-27 14:02:55 -06001455/* Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001456#define OMAP4430_ST_DPLL_CLKOUTX2_SHIFT 11
Rajendra Nayak568997c2010-09-27 14:02:55 -06001457#define OMAP4430_ST_DPLL_CLKOUTX2_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001458
1459/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001460 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
1461 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001462 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001463#define OMAP4430_ST_HSDIVIDER_CLKOUT1_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001464#define OMAP4430_ST_HSDIVIDER_CLKOUT1_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001465
1466/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001467 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
1468 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001469 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001470#define OMAP4430_ST_HSDIVIDER_CLKOUT2_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001471#define OMAP4430_ST_HSDIVIDER_CLKOUT2_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001472
1473/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001474 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
1475 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001476 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001477#define OMAP4430_ST_HSDIVIDER_CLKOUT3_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001478#define OMAP4430_ST_HSDIVIDER_CLKOUT3_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001479
1480/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001481 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
1482 * CM_DIV_M7_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001483 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001484#define OMAP4430_ST_HSDIVIDER_CLKOUT4_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -06001485#define OMAP4430_ST_HSDIVIDER_CLKOUT4_MASK (1 << 9)
1486
1487/*
1488 * Used by CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
1489 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER,
1490 * CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB
1491 */
1492#define OMAP4430_ST_MN_BYPASS_SHIFT 8
1493#define OMAP4430_ST_MN_BYPASS_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001494
1495/* Used by CM_SYS_CLKSEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001496#define OMAP4430_SYS_CLKSEL_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -06001497#define OMAP4430_SYS_CLKSEL_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001498
Rajendra Nayak568997c2010-09-27 14:02:55 -06001499/* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001500#define OMAP4430_TESLA_DYNDEP_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001501#define OMAP4430_TESLA_DYNDEP_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001502
1503/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001504#define OMAP4430_TESLA_STATDEP_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001505#define OMAP4430_TESLA_STATDEP_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001506
1507/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001508 * Used by CM_D2D_DYNAMICDEP, CM_D2D_DYNAMICDEP_RESTORE, CM_DUCATI_DYNAMICDEP,
1509 * CM_EMU_DYNAMICDEP, CM_L3_1_DYNAMICDEP, CM_L3_1_DYNAMICDEP_RESTORE,
1510 * CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1511 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_L4PER_DYNAMICDEP,
1512 * CM_L4PER_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001513 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001514#define OMAP4430_WINDOWSIZE_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -06001515#define OMAP4430_WINDOWSIZE_MASK (0xf << 24)
1516
1517/* Used by REVISION_CM1, REVISION_CM2 */
1518#define OMAP4430_X_MAJOR_SHIFT 8
1519#define OMAP4430_X_MAJOR_MASK (0x7 << 8)
1520
1521/* Used by REVISION_CM1, REVISION_CM2 */
1522#define OMAP4430_Y_MINOR_SHIFT 0
1523#define OMAP4430_Y_MINOR_MASK (0x3f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001524#endif