blob: 4c6c2f7de65bc6a66062079e1dd702f18ea06599 [file] [log] [blame]
Rajendra Nayakdd708412009-12-08 18:24:54 -07001/*
2 * OMAP44xx Clock Management register bits
3 *
Mike Turquettef19a3022012-09-19 18:04:14 -06004 * Copyright (C) 2009-2012 Texas Instruments, Inc.
Rajendra Nayak568997c2010-09-27 14:02:55 -06005 * Copyright (C) 2009-2010 Nokia Corporation
Rajendra Nayakdd708412009-12-08 18:24:54 -07006 *
7 * Paul Walmsley (paul@pwsan.com)
8 * Rajendra Nayak (rnayak@ti.com)
9 * Benoit Cousson (b-cousson@ti.com)
10 *
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License version 2 as
19 * published by the Free Software Foundation.
20 */
21
22#ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
23#define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
24
Benoit Cousson7b342a82011-07-09 19:15:05 -060025/* Used by CM_L3_1_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070026#define OMAP4430_ABE_DYNDEP_SHIFT 3
Mike Turquettef19a3022012-09-19 18:04:14 -060027#define OMAP4430_ABE_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060028#define OMAP4430_ABE_DYNDEP_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -070029
30/*
Benoit Cousson7b342a82011-07-09 19:15:05 -060031 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP,
32 * CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -070033 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070034#define OMAP4430_ABE_STATDEP_SHIFT 3
Mike Turquettef19a3022012-09-19 18:04:14 -060035#define OMAP4430_ABE_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060036#define OMAP4430_ABE_STATDEP_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -070037
Benoit Cousson7b342a82011-07-09 19:15:05 -060038/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070039#define OMAP4430_ALWONCORE_DYNDEP_SHIFT 16
Mike Turquettef19a3022012-09-19 18:04:14 -060040#define OMAP4430_ALWONCORE_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060041#define OMAP4430_ALWONCORE_DYNDEP_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -070042
43/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070044#define OMAP4430_ALWONCORE_STATDEP_SHIFT 16
Mike Turquettef19a3022012-09-19 18:04:14 -060045#define OMAP4430_ALWONCORE_STATDEP_WIDTH 0x1
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,
Benoit Cousson7b342a82011-07-09 19:15:05 -060050 * CM_AUTOIDLE_DPLL_DDRPHY, CM_AUTOIDLE_DPLL_IVA, CM_AUTOIDLE_DPLL_MPU,
51 * CM_AUTOIDLE_DPLL_PER, CM_AUTOIDLE_DPLL_UNIPRO, CM_AUTOIDLE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -070052 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070053#define OMAP4430_AUTO_DPLL_MODE_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -060054#define OMAP4430_AUTO_DPLL_MODE_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -060055#define OMAP4430_AUTO_DPLL_MODE_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -070056
Benoit Cousson7b342a82011-07-09 19:15:05 -060057/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070058#define OMAP4430_CEFUSE_DYNDEP_SHIFT 17
Mike Turquettef19a3022012-09-19 18:04:14 -060059#define OMAP4430_CEFUSE_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060060#define OMAP4430_CEFUSE_DYNDEP_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -070061
62/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070063#define OMAP4430_CEFUSE_STATDEP_SHIFT 17
Mike Turquettef19a3022012-09-19 18:04:14 -060064#define OMAP4430_CEFUSE_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060065#define OMAP4430_CEFUSE_STATDEP_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -070066
67/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070068#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -060069#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060070#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -070071
72/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070073#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -060074#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060075#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -070076
77/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070078#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -060079#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060080#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -070081
82/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070083#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -060084#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060085#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -070086
87/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070088#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -060089#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060090#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -070091
Benoit Cousson7b342a82011-07-09 19:15:05 -060092/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070093#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -060094#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -060095#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -070096
Benoit Cousson7b342a82011-07-09 19:15:05 -060097/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070098#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -060099#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600100#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700101
Benoit Cousson7b342a82011-07-09 19:15:05 -0600102/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700103#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -0600104#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600105#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700106
107/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700108#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600109#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600110#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_MASK (1 << 9)
111
112/* Used by CM_ALWON_CLKSTCTRL */
113#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -0600114#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600115#define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700116
117/* Used by CM_EMU_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700118#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600119#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600120#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700121
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530122/* Used by CM_L4CFG_CLKSTCTRL */
123#define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600124#define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_WIDTH 0x1
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530125#define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_MASK (1 << 9)
126
Rajendra Nayakdd708412009-12-08 18:24:54 -0700127/* Used by CM_CEFUSE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700128#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600129#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600130#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700131
Benoit Cousson7b342a82011-07-09 19:15:05 -0600132/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700133#define OMAP4430_CLKACTIVITY_DLL_CLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600134#define OMAP4430_CLKACTIVITY_DLL_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600135#define OMAP4430_CLKACTIVITY_DLL_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700136
Benoit Cousson7b342a82011-07-09 19:15:05 -0600137/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700138#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600139#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600140#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700141
Benoit Cousson7b342a82011-07-09 19:15:05 -0600142/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700143#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600144#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600145#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700146
Benoit Cousson7b342a82011-07-09 19:15:05 -0600147/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700148#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -0600149#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600150#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700151
Benoit Cousson7b342a82011-07-09 19:15:05 -0600152/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700153#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -0600154#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600155#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700156
Benoit Cousson7b342a82011-07-09 19:15:05 -0600157/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700158#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -0600159#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600160#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700161
Benoit Cousson7b342a82011-07-09 19:15:05 -0600162/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700163#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_SHIFT 14
Mike Turquettef19a3022012-09-19 18:04:14 -0600164#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600165#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700166
167/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700168#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600169#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600170#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700171
172/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700173#define OMAP4430_CLKACTIVITY_DSS_FCLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600174#define OMAP4430_CLKACTIVITY_DSS_FCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600175#define OMAP4430_CLKACTIVITY_DSS_FCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700176
177/* Used by CM_DUCATI_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700178#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600179#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600180#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700181
182/* Used by CM_EMU_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700183#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600184#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600185#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700186
187/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700188#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600189#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600190#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700191
Benoit Cousson7b342a82011-07-09 19:15:05 -0600192/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700193#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_SHIFT 15
Mike Turquettef19a3022012-09-19 18:04:14 -0600194#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600195#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700196
197/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700198#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600199#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600200#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700201
202/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700203#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -0600204#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600205#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700206
Benoit Cousson7b342a82011-07-09 19:15:05 -0600207/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700208#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_SHIFT 20
Mike Turquettef19a3022012-09-19 18:04:14 -0600209#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600210#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700211
Benoit Cousson7b342a82011-07-09 19:15:05 -0600212/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700213#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_SHIFT 26
Mike Turquettef19a3022012-09-19 18:04:14 -0600214#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600215#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_MASK (1 << 26)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700216
Benoit Cousson7b342a82011-07-09 19:15:05 -0600217/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700218#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_SHIFT 21
Mike Turquettef19a3022012-09-19 18:04:14 -0600219#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600220#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_MASK (1 << 21)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700221
Benoit Cousson7b342a82011-07-09 19:15:05 -0600222/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700223#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_SHIFT 27
Mike Turquettef19a3022012-09-19 18:04:14 -0600224#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600225#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_MASK (1 << 27)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700226
Benoit Cousson7b342a82011-07-09 19:15:05 -0600227/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700228#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -0600229#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600230#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700231
Benoit Cousson7b342a82011-07-09 19:15:05 -0600232/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700233#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -0600234#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600235#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700236
Benoit Cousson7b342a82011-07-09 19:15:05 -0600237/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700238#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_SHIFT 28
Mike Turquettef19a3022012-09-19 18:04:14 -0600239#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600240#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_MASK (1 << 28)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700241
Benoit Cousson7b342a82011-07-09 19:15:05 -0600242/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700243#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_SHIFT 29
Mike Turquettef19a3022012-09-19 18:04:14 -0600244#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600245#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_MASK (1 << 29)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700246
Benoit Cousson7b342a82011-07-09 19:15:05 -0600247/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700248#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -0600249#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600250#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700251
Benoit Cousson7b342a82011-07-09 19:15:05 -0600252/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700253#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_SHIFT 16
Mike Turquettef19a3022012-09-19 18:04:14 -0600254#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600255#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700256
Benoit Cousson7b342a82011-07-09 19:15:05 -0600257/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700258#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_SHIFT 17
Mike Turquettef19a3022012-09-19 18:04:14 -0600259#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600260#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700261
Benoit Cousson7b342a82011-07-09 19:15:05 -0600262/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700263#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_SHIFT 18
Mike Turquettef19a3022012-09-19 18:04:14 -0600264#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600265#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700266
Benoit Cousson7b342a82011-07-09 19:15:05 -0600267/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700268#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_SHIFT 19
Mike Turquettef19a3022012-09-19 18:04:14 -0600269#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600270#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700271
272/* Used by CM_CAM_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700273#define OMAP4430_CLKACTIVITY_ISS_GCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600274#define OMAP4430_CLKACTIVITY_ISS_GCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600275#define OMAP4430_CLKACTIVITY_ISS_GCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700276
277/* Used by CM_IVAHD_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700278#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600279#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600280#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700281
Rajendra Nayak568997c2010-09-27 14:02:55 -0600282/* Used by CM_D2D_CLKSTCTRL */
283#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600284#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600285#define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700286
Benoit Cousson7b342a82011-07-09 19:15:05 -0600287/* Used by CM_L3_1_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700288#define OMAP4430_CLKACTIVITY_L3_1_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600289#define OMAP4430_CLKACTIVITY_L3_1_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600290#define OMAP4430_CLKACTIVITY_L3_1_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700291
Benoit Cousson7b342a82011-07-09 19:15:05 -0600292/* Used by CM_L3_2_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700293#define OMAP4430_CLKACTIVITY_L3_2_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600294#define OMAP4430_CLKACTIVITY_L3_2_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600295#define OMAP4430_CLKACTIVITY_L3_2_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700296
297/* Used by CM_D2D_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700298#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600299#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600300#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700301
302/* Used by CM_SDMA_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700303#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600304#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600305#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700306
307/* Used by CM_DSS_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700308#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600309#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600310#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700311
Benoit Cousson7b342a82011-07-09 19:15:05 -0600312/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700313#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600314#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600315#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700316
317/* Used by CM_GFX_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700318#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600319#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600320#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700321
Benoit Cousson7b342a82011-07-09 19:15:05 -0600322/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700323#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600324#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600325#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700326
327/* Used by CM_L3INSTR_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700328#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600329#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600330#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700331
332/* Used by CM_L4SEC_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700333#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600334#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600335#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700336
337/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700338#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600339#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600340#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700341
342/* Used by CM_CEFUSE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700343#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600344#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600345#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700346
Benoit Cousson7b342a82011-07-09 19:15:05 -0600347/* Used by CM_L4CFG_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700348#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600349#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600350#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700351
352/* Used by CM_D2D_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700353#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600354#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600355#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700356
Benoit Cousson7b342a82011-07-09 19:15:05 -0600357/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700358#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600359#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600360#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700361
Benoit Cousson7b342a82011-07-09 19:15:05 -0600362/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700363#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600364#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600365#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700366
367/* Used by CM_L4SEC_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700368#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600369#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600370#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700371
372/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700373#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -0600374#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600375#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700376
Benoit Cousson7b342a82011-07-09 19:15:05 -0600377/* Used by CM_MPU_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700378#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600379#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600380#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700381
382/* Used by CM1_ABE_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700383#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600384#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600385#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700386
Benoit Cousson7b342a82011-07-09 19:15:05 -0600387/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700388#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_SHIFT 16
Mike Turquettef19a3022012-09-19 18:04:14 -0600389#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600390#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_MASK (1 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700391
Benoit Cousson7b342a82011-07-09 19:15:05 -0600392/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700393#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_SHIFT 17
Mike Turquettef19a3022012-09-19 18:04:14 -0600394#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600395#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_MASK (1 << 17)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700396
Benoit Cousson7b342a82011-07-09 19:15:05 -0600397/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700398#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_SHIFT 18
Mike Turquettef19a3022012-09-19 18:04:14 -0600399#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600400#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700401
Benoit Cousson7b342a82011-07-09 19:15:05 -0600402/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700403#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_SHIFT 19
Mike Turquettef19a3022012-09-19 18:04:14 -0600404#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600405#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700406
Benoit Cousson7b342a82011-07-09 19:15:05 -0600407/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700408#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_SHIFT 25
Mike Turquettef19a3022012-09-19 18:04:14 -0600409#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600410#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700411
Benoit Cousson7b342a82011-07-09 19:15:05 -0600412/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700413#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_SHIFT 20
Mike Turquettef19a3022012-09-19 18:04:14 -0600414#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600415#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700416
Benoit Cousson7b342a82011-07-09 19:15:05 -0600417/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700418#define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_SHIFT 21
Rajendra Nayak568997c2010-09-27 14:02:55 -0600419#define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_MASK (1 << 21)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700420
Benoit Cousson7b342a82011-07-09 19:15:05 -0600421/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700422#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_SHIFT 22
Mike Turquettef19a3022012-09-19 18:04:14 -0600423#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600424#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_MASK (1 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700425
Benoit Cousson7b342a82011-07-09 19:15:05 -0600426/* Used by CM_L4PER_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700427#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600428#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600429#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700430
Benoit Cousson7b342a82011-07-09 19:15:05 -0600431/* Used by CM_MEMIF_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700432#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600433#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600434#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700435
436/* Used by CM_GFX_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700437#define OMAP4430_CLKACTIVITY_SGX_GFCLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600438#define OMAP4430_CLKACTIVITY_SGX_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600439#define OMAP4430_CLKACTIVITY_SGX_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700440
441/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700442#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -0600443#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600444#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700445
446/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700447#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600448#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600449#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700450
451/* Used by CM_ALWON_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700452#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -0600453#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600454#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700455
456/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700457#define OMAP4430_CLKACTIVITY_SYS_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600458#define OMAP4430_CLKACTIVITY_SYS_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600459#define OMAP4430_CLKACTIVITY_SYS_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700460
461/* Used by CM_TESLA_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700462#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600463#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600464#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700465
Benoit Cousson7b342a82011-07-09 19:15:05 -0600466/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700467#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_SHIFT 22
Mike Turquettef19a3022012-09-19 18:04:14 -0600468#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600469#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_MASK (1 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700470
Benoit Cousson7b342a82011-07-09 19:15:05 -0600471/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700472#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_SHIFT 23
Mike Turquettef19a3022012-09-19 18:04:14 -0600473#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600474#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_MASK (1 << 23)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700475
Benoit Cousson7b342a82011-07-09 19:15:05 -0600476/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700477#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600478#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600479#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_MASK (1 << 24)
480
Benoit Cousson7b342a82011-07-09 19:15:05 -0600481/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600482#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600483#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600484#define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_MASK (1 << 10)
485
Benoit Cousson7b342a82011-07-09 19:15:05 -0600486/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600487#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_SHIFT 14
Mike Turquettef19a3022012-09-19 18:04:14 -0600488#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600489#define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700490
Benoit Cousson7b342a82011-07-09 19:15:05 -0600491/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700492#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_SHIFT 15
Mike Turquettef19a3022012-09-19 18:04:14 -0600493#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600494#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700495
496/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700497#define OMAP4430_CLKACTIVITY_USIM_GFCLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600498#define OMAP4430_CLKACTIVITY_USIM_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600499#define OMAP4430_CLKACTIVITY_USIM_GFCLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700500
Benoit Cousson7b342a82011-07-09 19:15:05 -0600501/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700502#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_SHIFT 30
Mike Turquettef19a3022012-09-19 18:04:14 -0600503#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600504#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_MASK (1 << 30)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700505
Benoit Cousson7b342a82011-07-09 19:15:05 -0600506/* Used by CM_L3INIT_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700507#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_SHIFT 25
Mike Turquettef19a3022012-09-19 18:04:14 -0600508#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600509#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700510
511/* Used by CM_WKUP_CLKSTCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700512#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -0600513#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600514#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700515
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530516/* Used by CM_WKUP_CLKSTCTRL */
517#define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -0600518#define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_WIDTH 0x1
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530519#define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_MASK (1 << 13)
520
Rajendra Nayakdd708412009-12-08 18:24:54 -0700521/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600522 * Used by CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL,
523 * CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -0600524 * CM_L3INIT_MMC2_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -0700525 * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL,
526 * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -0600527 * CM_L4PER_DMTIMER9_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700528 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700529#define OMAP4430_CLKSEL_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600530#define OMAP4430_CLKSEL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600531#define OMAP4430_CLKSEL_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700532
533/*
534 * Renamed from CLKSEL Used by CM_ABE_DSS_SYS_CLKSEL, CM_ABE_PLL_REF_CLKSEL,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600535 * CM_CLKSEL_DUCATI_ISS_ROOT, CM_CLKSEL_USB_60MHZ, CM_L4_WKUP_CLKSEL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700536 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700537#define OMAP4430_CLKSEL_0_0_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600538#define OMAP4430_CLKSEL_0_0_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600539#define OMAP4430_CLKSEL_0_0_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700540
541/* Renamed from CLKSEL Used by CM_BYPCLK_DPLL_IVA, CM_BYPCLK_DPLL_MPU */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700542#define OMAP4430_CLKSEL_0_1_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600543#define OMAP4430_CLKSEL_0_1_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600544#define OMAP4430_CLKSEL_0_1_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700545
546/* Renamed from CLKSEL Used by CM_L3INIT_HSI_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700547#define OMAP4430_CLKSEL_24_25_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600548#define OMAP4430_CLKSEL_24_25_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600549#define OMAP4430_CLKSEL_24_25_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700550
551/* Used by CM_L3INIT_USB_OTG_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700552#define OMAP4430_CLKSEL_60M_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600553#define OMAP4430_CLKSEL_60M_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600554#define OMAP4430_CLKSEL_60M_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700555
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530556/* Used by CM_MPU_MPU_CLKCTRL */
557#define OMAP4460_CLKSEL_ABE_DIV_MODE_SHIFT 25
Mike Turquettef19a3022012-09-19 18:04:14 -0600558#define OMAP4460_CLKSEL_ABE_DIV_MODE_WIDTH 0x1
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530559#define OMAP4460_CLKSEL_ABE_DIV_MODE_MASK (1 << 25)
560
Rajendra Nayakdd708412009-12-08 18:24:54 -0700561/* Used by CM1_ABE_AESS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700562#define OMAP4430_CLKSEL_AESS_FCLK_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600563#define OMAP4430_CLKSEL_AESS_FCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600564#define OMAP4430_CLKSEL_AESS_FCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700565
Benoit Cousson7b342a82011-07-09 19:15:05 -0600566/* Used by CM_CLKSEL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700567#define OMAP4430_CLKSEL_CORE_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600568#define OMAP4430_CLKSEL_CORE_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600569#define OMAP4430_CLKSEL_CORE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700570
Benoit Cousson7b342a82011-07-09 19:15:05 -0600571/* Renamed from CLKSEL_CORE Used by CM_SHADOW_FREQ_CONFIG2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700572#define OMAP4430_CLKSEL_CORE_1_1_SHIFT 1
Mike Turquettef19a3022012-09-19 18:04:14 -0600573#define OMAP4430_CLKSEL_CORE_1_1_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600574#define OMAP4430_CLKSEL_CORE_1_1_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700575
576/* Used by CM_WKUP_USIM_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700577#define OMAP4430_CLKSEL_DIV_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600578#define OMAP4430_CLKSEL_DIV_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600579#define OMAP4430_CLKSEL_DIV_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700580
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530581/* Used by CM_MPU_MPU_CLKCTRL */
582#define OMAP4460_CLKSEL_EMIF_DIV_MODE_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600583#define OMAP4460_CLKSEL_EMIF_DIV_MODE_WIDTH 0x1
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530584#define OMAP4460_CLKSEL_EMIF_DIV_MODE_MASK (1 << 24)
585
Rajendra Nayakdd708412009-12-08 18:24:54 -0700586/* Used by CM_CAM_FDIF_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700587#define OMAP4430_CLKSEL_FCLK_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600588#define OMAP4430_CLKSEL_FCLK_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600589#define OMAP4430_CLKSEL_FCLK_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700590
591/* Used by CM_L4PER_MCBSP4_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700592#define OMAP4430_CLKSEL_INTERNAL_SOURCE_SHIFT 25
Mike Turquettef19a3022012-09-19 18:04:14 -0600593#define OMAP4430_CLKSEL_INTERNAL_SOURCE_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600594#define OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700595
596/*
597 * Renamed from CLKSEL_INTERNAL_SOURCE Used by CM1_ABE_DMIC_CLKCTRL,
598 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
599 * CM1_ABE_MCBSP3_CLKCTRL
600 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700601#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_SHIFT 26
Mike Turquettef19a3022012-09-19 18:04:14 -0600602#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600603#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_MASK (0x3 << 26)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700604
Benoit Cousson7b342a82011-07-09 19:15:05 -0600605/* Used by CM_CLKSEL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700606#define OMAP4430_CLKSEL_L3_SHIFT 4
Mike Turquettef19a3022012-09-19 18:04:14 -0600607#define OMAP4430_CLKSEL_L3_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600608#define OMAP4430_CLKSEL_L3_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700609
Benoit Cousson7b342a82011-07-09 19:15:05 -0600610/* Renamed from CLKSEL_L3 Used by CM_SHADOW_FREQ_CONFIG2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700611#define OMAP4430_CLKSEL_L3_SHADOW_SHIFT 2
Mike Turquettef19a3022012-09-19 18:04:14 -0600612#define OMAP4430_CLKSEL_L3_SHADOW_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600613#define OMAP4430_CLKSEL_L3_SHADOW_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700614
Benoit Cousson7b342a82011-07-09 19:15:05 -0600615/* Used by CM_CLKSEL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700616#define OMAP4430_CLKSEL_L4_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600617#define OMAP4430_CLKSEL_L4_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600618#define OMAP4430_CLKSEL_L4_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700619
620/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700621#define OMAP4430_CLKSEL_OPP_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600622#define OMAP4430_CLKSEL_OPP_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600623#define OMAP4430_CLKSEL_OPP_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700624
625/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700626#define OMAP4430_CLKSEL_PMD_STM_CLK_SHIFT 27
Mike Turquettef19a3022012-09-19 18:04:14 -0600627#define OMAP4430_CLKSEL_PMD_STM_CLK_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600628#define OMAP4430_CLKSEL_PMD_STM_CLK_MASK (0x7 << 27)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700629
630/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700631#define OMAP4430_CLKSEL_PMD_TRACE_CLK_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600632#define OMAP4430_CLKSEL_PMD_TRACE_CLK_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600633#define OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK (0x7 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700634
635/* Used by CM_GFX_GFX_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700636#define OMAP4430_CLKSEL_SGX_FCLK_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600637#define OMAP4430_CLKSEL_SGX_FCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600638#define OMAP4430_CLKSEL_SGX_FCLK_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700639
640/*
641 * Used by CM1_ABE_DMIC_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL,
642 * CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL
643 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700644#define OMAP4430_CLKSEL_SOURCE_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600645#define OMAP4430_CLKSEL_SOURCE_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600646#define OMAP4430_CLKSEL_SOURCE_MASK (0x3 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700647
648/* Renamed from CLKSEL_SOURCE Used by CM_L4PER_MCBSP4_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700649#define OMAP4430_CLKSEL_SOURCE_24_24_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600650#define OMAP4430_CLKSEL_SOURCE_24_24_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600651#define OMAP4430_CLKSEL_SOURCE_24_24_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700652
Benoit Cousson7b342a82011-07-09 19:15:05 -0600653/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700654#define OMAP4430_CLKSEL_UTMI_P1_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600655#define OMAP4430_CLKSEL_UTMI_P1_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600656#define OMAP4430_CLKSEL_UTMI_P1_MASK (1 << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700657
Benoit Cousson7b342a82011-07-09 19:15:05 -0600658/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700659#define OMAP4430_CLKSEL_UTMI_P2_SHIFT 25
Mike Turquettef19a3022012-09-19 18:04:14 -0600660#define OMAP4430_CLKSEL_UTMI_P2_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600661#define OMAP4430_CLKSEL_UTMI_P2_MASK (1 << 25)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700662
663/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600664 * Used by CM1_ABE_CLKSTCTRL, CM_ALWON_CLKSTCTRL, CM_CAM_CLKSTCTRL,
665 * CM_CEFUSE_CLKSTCTRL, CM_D2D_CLKSTCTRL, CM_DSS_CLKSTCTRL,
666 * CM_DUCATI_CLKSTCTRL, CM_EMU_CLKSTCTRL, CM_GFX_CLKSTCTRL, CM_IVAHD_CLKSTCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600667 * CM_L3INIT_CLKSTCTRL, CM_L3INSTR_CLKSTCTRL, CM_L3_1_CLKSTCTRL,
668 * CM_L3_2_CLKSTCTRL, CM_L4CFG_CLKSTCTRL, CM_L4PER_CLKSTCTRL,
669 * CM_L4SEC_CLKSTCTRL, CM_MEMIF_CLKSTCTRL, CM_MPU_CLKSTCTRL, CM_SDMA_CLKSTCTRL,
670 * CM_TESLA_CLKSTCTRL, CM_WKUP_CLKSTCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -0700671 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700672#define OMAP4430_CLKTRCTRL_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600673#define OMAP4430_CLKTRCTRL_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600674#define OMAP4430_CLKTRCTRL_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700675
676/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700677#define OMAP4430_CORE_DPLL_EMU_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600678#define OMAP4430_CORE_DPLL_EMU_DIV_WIDTH 0x7
Rajendra Nayak568997c2010-09-27 14:02:55 -0600679#define OMAP4430_CORE_DPLL_EMU_DIV_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700680
681/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700682#define OMAP4430_CORE_DPLL_EMU_MULT_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600683#define OMAP4430_CORE_DPLL_EMU_MULT_WIDTH 0xb
Rajendra Nayak568997c2010-09-27 14:02:55 -0600684#define OMAP4430_CORE_DPLL_EMU_MULT_MASK (0x7ff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700685
Rajendra Nayak568997c2010-09-27 14:02:55 -0600686/* Used by REVISION_CM1, REVISION_CM2 */
687#define OMAP4430_CUSTOM_SHIFT 6
Mike Turquettef19a3022012-09-19 18:04:14 -0600688#define OMAP4430_CUSTOM_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -0600689#define OMAP4430_CUSTOM_MASK (0x3 << 6)
690
Benoit Cousson7b342a82011-07-09 19:15:05 -0600691/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700692#define OMAP4430_D2D_DYNDEP_SHIFT 18
Mike Turquettef19a3022012-09-19 18:04:14 -0600693#define OMAP4430_D2D_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600694#define OMAP4430_D2D_DYNDEP_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700695
696/* Used by CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700697#define OMAP4430_D2D_STATDEP_SHIFT 18
Mike Turquettef19a3022012-09-19 18:04:14 -0600698#define OMAP4430_D2D_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600699#define OMAP4430_D2D_STATDEP_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700700
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530701/* Used by CM_CLKSEL_DPLL_MPU */
702#define OMAP4460_DCC_COUNT_MAX_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600703#define OMAP4460_DCC_COUNT_MAX_WIDTH 0x8
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530704#define OMAP4460_DCC_COUNT_MAX_MASK (0xff << 24)
705
706/* Used by CM_CLKSEL_DPLL_MPU */
707#define OMAP4460_DCC_EN_SHIFT 22
708#define OMAP4460_DCC_EN_MASK (1 << 22)
709
Rajendra Nayakdd708412009-12-08 18:24:54 -0700710/*
Rajendra Nayak568997c2010-09-27 14:02:55 -0600711 * Used by CM_SSC_DELTAMSTEP_DPLL_ABE, CM_SSC_DELTAMSTEP_DPLL_CORE,
Benoit Cousson7b342a82011-07-09 19:15:05 -0600712 * CM_SSC_DELTAMSTEP_DPLL_DDRPHY, CM_SSC_DELTAMSTEP_DPLL_IVA,
713 * CM_SSC_DELTAMSTEP_DPLL_MPU, CM_SSC_DELTAMSTEP_DPLL_PER,
714 * CM_SSC_DELTAMSTEP_DPLL_UNIPRO, CM_SSC_DELTAMSTEP_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700715 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700716#define OMAP4430_DELTAMSTEP_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600717#define OMAP4430_DELTAMSTEP_WIDTH 0x14
Rajendra Nayak568997c2010-09-27 14:02:55 -0600718#define OMAP4430_DELTAMSTEP_MASK (0xfffff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700719
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530720/* Renamed from DELTAMSTEP Used by CM_SSC_DELTAMSTEP_DPLL_USB */
721#define OMAP4460_DELTAMSTEP_0_20_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600722#define OMAP4460_DELTAMSTEP_0_20_WIDTH 0x15
Rajendra Nayak6b54b492011-07-02 08:00:23 +0530723#define OMAP4460_DELTAMSTEP_0_20_MASK (0x1fffff << 0)
724
Benoit Cousson7b342a82011-07-09 19:15:05 -0600725/* Used by CM_DLL_CTRL */
726#define OMAP4430_DLL_OVERRIDE_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600727#define OMAP4430_DLL_OVERRIDE_WIDTH 0x1
Benoit Cousson7b342a82011-07-09 19:15:05 -0600728#define OMAP4430_DLL_OVERRIDE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700729
Benoit Cousson7b342a82011-07-09 19:15:05 -0600730/* Renamed from DLL_OVERRIDE Used by CM_SHADOW_FREQ_CONFIG1 */
731#define OMAP4430_DLL_OVERRIDE_2_2_SHIFT 2
Mike Turquettef19a3022012-09-19 18:04:14 -0600732#define OMAP4430_DLL_OVERRIDE_2_2_WIDTH 0x1
Benoit Cousson7b342a82011-07-09 19:15:05 -0600733#define OMAP4430_DLL_OVERRIDE_2_2_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700734
Benoit Cousson7b342a82011-07-09 19:15:05 -0600735/* Used by CM_SHADOW_FREQ_CONFIG1 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700736#define OMAP4430_DLL_RESET_SHIFT 3
Mike Turquettef19a3022012-09-19 18:04:14 -0600737#define OMAP4430_DLL_RESET_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600738#define OMAP4430_DLL_RESET_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700739
740/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600741 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_DDRPHY,
742 * CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER,
743 * CM_CLKSEL_DPLL_UNIPRO, CM_CLKSEL_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700744 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700745#define OMAP4430_DPLL_BYP_CLKSEL_SHIFT 23
Mike Turquettef19a3022012-09-19 18:04:14 -0600746#define OMAP4430_DPLL_BYP_CLKSEL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600747#define OMAP4430_DPLL_BYP_CLKSEL_MASK (1 << 23)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700748
749/* Used by CM_CLKDCOLDO_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700750#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600751#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600752#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700753
Benoit Cousson7b342a82011-07-09 19:15:05 -0600754/* Used by CM_CLKSEL_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700755#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_SHIFT 20
Mike Turquettef19a3022012-09-19 18:04:14 -0600756#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600757#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_MASK (1 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700758
Benoit Cousson7b342a82011-07-09 19:15:05 -0600759/* Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE, CM_DIV_M3_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700760#define OMAP4430_DPLL_CLKOUTHIF_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600761#define OMAP4430_DPLL_CLKOUTHIF_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600762#define OMAP4430_DPLL_CLKOUTHIF_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700763
Benoit Cousson7b342a82011-07-09 19:15:05 -0600764/* Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE, CM_DIV_M3_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700765#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_SHIFT 5
Mike Turquettef19a3022012-09-19 18:04:14 -0600766#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600767#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700768
Benoit Cousson7b342a82011-07-09 19:15:05 -0600769/* Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE, CM_DIV_M3_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700770#define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600771#define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600772#define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700773
Rajendra Nayak568997c2010-09-27 14:02:55 -0600774/* Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700775#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600776#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600777#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700778
779/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600780 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
781 * CM_DIV_M2_DPLL_MPU, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700782 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700783#define OMAP4430_DPLL_CLKOUT_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600784#define OMAP4430_DPLL_CLKOUT_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600785#define OMAP4430_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700786
787/* Renamed from DPLL_CLKOUT_DIV Used by CM_DIV_M2_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700788#define OMAP4430_DPLL_CLKOUT_DIV_0_6_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600789#define OMAP4430_DPLL_CLKOUT_DIV_0_6_WIDTH 0x7
Rajendra Nayak568997c2010-09-27 14:02:55 -0600790#define OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700791
792/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600793 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
794 * CM_DIV_M2_DPLL_MPU, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700795 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700796#define OMAP4430_DPLL_CLKOUT_DIVCHACK_SHIFT 5
Mike Turquettef19a3022012-09-19 18:04:14 -0600797#define OMAP4430_DPLL_CLKOUT_DIVCHACK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600798#define OMAP4430_DPLL_CLKOUT_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700799
800/* Renamed from DPLL_CLKOUT_DIVCHACK Used by CM_DIV_M2_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700801#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_SHIFT 7
Mike Turquettef19a3022012-09-19 18:04:14 -0600802#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600803#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700804
805/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600806 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
807 * CM_DIV_M2_DPLL_MPU, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700808 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700809#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600810#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600811#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700812
Benoit Cousson7b342a82011-07-09 19:15:05 -0600813/* Used by CM_SHADOW_FREQ_CONFIG1 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700814#define OMAP4430_DPLL_CORE_DPLL_EN_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600815#define OMAP4430_DPLL_CORE_DPLL_EN_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600816#define OMAP4430_DPLL_CORE_DPLL_EN_MASK (0x7 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700817
Benoit Cousson7b342a82011-07-09 19:15:05 -0600818/* Used by CM_SHADOW_FREQ_CONFIG1 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700819#define OMAP4430_DPLL_CORE_M2_DIV_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -0600820#define OMAP4430_DPLL_CORE_M2_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600821#define OMAP4430_DPLL_CORE_M2_DIV_MASK (0x1f << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700822
Benoit Cousson7b342a82011-07-09 19:15:05 -0600823/* Used by CM_SHADOW_FREQ_CONFIG2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700824#define OMAP4430_DPLL_CORE_M5_DIV_SHIFT 3
Mike Turquettef19a3022012-09-19 18:04:14 -0600825#define OMAP4430_DPLL_CORE_M5_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600826#define OMAP4430_DPLL_CORE_M5_DIV_MASK (0x1f << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700827
828/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600829 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_DDRPHY,
830 * CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER,
831 * CM_CLKSEL_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700832 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700833#define OMAP4430_DPLL_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600834#define OMAP4430_DPLL_DIV_WIDTH 0x7
Rajendra Nayak568997c2010-09-27 14:02:55 -0600835#define OMAP4430_DPLL_DIV_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700836
837/* Renamed from DPLL_DIV Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700838#define OMAP4430_DPLL_DIV_0_7_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600839#define OMAP4430_DPLL_DIV_0_7_WIDTH 0x8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600840#define OMAP4430_DPLL_DIV_0_7_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700841
842/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600843 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
844 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700845 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700846#define OMAP4430_DPLL_DRIFTGUARD_EN_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600847#define OMAP4430_DPLL_DRIFTGUARD_EN_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600848#define OMAP4430_DPLL_DRIFTGUARD_EN_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700849
850/* Renamed from DPLL_DRIFTGUARD_EN Used by CM_CLKMODE_DPLL_UNIPRO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700851#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_SHIFT 3
Mike Turquettef19a3022012-09-19 18:04:14 -0600852#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600853#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_MASK (1 << 3)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700854
855/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600856 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
857 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
858 * CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700859 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700860#define OMAP4430_DPLL_EN_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600861#define OMAP4430_DPLL_EN_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -0600862#define OMAP4430_DPLL_EN_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700863
864/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600865 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
866 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
867 * CM_CLKMODE_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700868 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700869#define OMAP4430_DPLL_LPMODE_EN_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600870#define OMAP4430_DPLL_LPMODE_EN_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600871#define OMAP4430_DPLL_LPMODE_EN_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700872
873/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600874 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_DDRPHY,
875 * CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER,
876 * CM_CLKSEL_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700877 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700878#define OMAP4430_DPLL_MULT_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600879#define OMAP4430_DPLL_MULT_WIDTH 0xb
Rajendra Nayak568997c2010-09-27 14:02:55 -0600880#define OMAP4430_DPLL_MULT_MASK (0x7ff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700881
882/* Renamed from DPLL_MULT Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700883#define OMAP4430_DPLL_MULT_USB_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600884#define OMAP4430_DPLL_MULT_USB_WIDTH 0xc
Rajendra Nayak568997c2010-09-27 14:02:55 -0600885#define OMAP4430_DPLL_MULT_USB_MASK (0xfff << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700886
887/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600888 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
889 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
890 * CM_CLKMODE_DPLL_UNIPRO
Rajendra Nayakdd708412009-12-08 18:24:54 -0700891 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700892#define OMAP4430_DPLL_REGM4XEN_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -0600893#define OMAP4430_DPLL_REGM4XEN_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600894#define OMAP4430_DPLL_REGM4XEN_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700895
896/* Used by CM_CLKSEL_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700897#define OMAP4430_DPLL_SD_DIV_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -0600898#define OMAP4430_DPLL_SD_DIV_WIDTH 0x8
Rajendra Nayak568997c2010-09-27 14:02:55 -0600899#define OMAP4430_DPLL_SD_DIV_MASK (0xff << 24)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700900
901/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600902 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
903 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
904 * CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700905 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700906#define OMAP4430_DPLL_SSC_ACK_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -0600907#define OMAP4430_DPLL_SSC_ACK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600908#define OMAP4430_DPLL_SSC_ACK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700909
910/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600911 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
912 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
913 * CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700914 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700915#define OMAP4430_DPLL_SSC_DOWNSPREAD_SHIFT 14
Mike Turquettef19a3022012-09-19 18:04:14 -0600916#define OMAP4430_DPLL_SSC_DOWNSPREAD_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600917#define OMAP4430_DPLL_SSC_DOWNSPREAD_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700918
919/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600920 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDRPHY,
921 * CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER,
922 * CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -0700923 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700924#define OMAP4430_DPLL_SSC_EN_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -0600925#define OMAP4430_DPLL_SSC_EN_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600926#define OMAP4430_DPLL_SSC_EN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700927
Benoit Cousson7b342a82011-07-09 19:15:05 -0600928/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -0600929#define OMAP4430_DSS_DYNDEP_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600930#define OMAP4430_DSS_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600931#define OMAP4430_DSS_DYNDEP_MASK (1 << 8)
932
Benoit Cousson7b342a82011-07-09 19:15:05 -0600933/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700934#define OMAP4430_DSS_STATDEP_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600935#define OMAP4430_DSS_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600936#define OMAP4430_DSS_STATDEP_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700937
Benoit Cousson7b342a82011-07-09 19:15:05 -0600938/* Used by CM_L3_2_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700939#define OMAP4430_DUCATI_DYNDEP_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600940#define OMAP4430_DUCATI_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600941#define OMAP4430_DUCATI_DYNDEP_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700942
Benoit Cousson7b342a82011-07-09 19:15:05 -0600943/* Used by CM_MPU_STATICDEP, CM_SDMA_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700944#define OMAP4430_DUCATI_STATDEP_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600945#define OMAP4430_DUCATI_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600946#define OMAP4430_DUCATI_STATDEP_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700947
Benoit Cousson7b342a82011-07-09 19:15:05 -0600948/* Used by CM_SHADOW_FREQ_CONFIG1 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700949#define OMAP4430_FREQ_UPDATE_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600950#define OMAP4430_FREQ_UPDATE_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600951#define OMAP4430_FREQ_UPDATE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700952
Rajendra Nayak568997c2010-09-27 14:02:55 -0600953/* Used by REVISION_CM1, REVISION_CM2 */
954#define OMAP4430_FUNC_SHIFT 16
Mike Turquettef19a3022012-09-19 18:04:14 -0600955#define OMAP4430_FUNC_WIDTH 0xc
Rajendra Nayak568997c2010-09-27 14:02:55 -0600956#define OMAP4430_FUNC_MASK (0xfff << 16)
957
Benoit Cousson7b342a82011-07-09 19:15:05 -0600958/* Used by CM_L3_2_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700959#define OMAP4430_GFX_DYNDEP_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600960#define OMAP4430_GFX_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600961#define OMAP4430_GFX_DYNDEP_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700962
963/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700964#define OMAP4430_GFX_STATDEP_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -0600965#define OMAP4430_GFX_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600966#define OMAP4430_GFX_STATDEP_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700967
Benoit Cousson7b342a82011-07-09 19:15:05 -0600968/* Used by CM_SHADOW_FREQ_CONFIG2 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700969#define OMAP4430_GPMC_FREQ_UPDATE_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600970#define OMAP4430_GPMC_FREQ_UPDATE_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600971#define OMAP4430_GPMC_FREQ_UPDATE_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700972
973/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600974 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
975 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700976 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700977#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -0600978#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -0600979#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700980
981/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600982 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
983 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700984 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700985#define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_SHIFT 5
Mike Turquettef19a3022012-09-19 18:04:14 -0600986#define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600987#define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700988
989/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600990 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
991 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -0700992 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700993#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -0600994#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -0600995#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -0700996
997/*
Benoit Cousson7b342a82011-07-09 19:15:05 -0600998 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
999 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001000 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001001#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -06001002#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001003#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001004
1005/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001006 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
1007 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001008 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001009#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001010#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -06001011#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001012
1013/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001014 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
1015 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001016 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001017#define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_SHIFT 5
Mike Turquettef19a3022012-09-19 18:04:14 -06001018#define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001019#define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001020
1021/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001022 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
1023 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001024 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001025#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001026#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001027#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001028
1029/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001030 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
1031 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001032 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001033#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -06001034#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001035#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001036
Benoit Cousson7b342a82011-07-09 19:15:05 -06001037/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001038#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001039#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -06001040#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001041
Benoit Cousson7b342a82011-07-09 19:15:05 -06001042/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001043#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_SHIFT 5
Mike Turquettef19a3022012-09-19 18:04:14 -06001044#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001045#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001046
Benoit Cousson7b342a82011-07-09 19:15:05 -06001047/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001048#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001049#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001050#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001051
Benoit Cousson7b342a82011-07-09 19:15:05 -06001052/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001053#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -06001054#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001055#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001056
Benoit Cousson7b342a82011-07-09 19:15:05 -06001057/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001058#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001059#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -06001060#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK (0x1f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001061
Benoit Cousson7b342a82011-07-09 19:15:05 -06001062/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001063#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_SHIFT 5
Mike Turquettef19a3022012-09-19 18:04:14 -06001064#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001065#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_MASK (1 << 5)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001066
Benoit Cousson7b342a82011-07-09 19:15:05 -06001067/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001068#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001069#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001070#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001071
Benoit Cousson7b342a82011-07-09 19:15:05 -06001072/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001073#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -06001074#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001075#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001076
1077/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001078 * Used by CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL,
1079 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
1080 * CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL,
1081 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001082 * CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, CM_ALWON_SR_CORE_CLKCTRL,
1083 * CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL, CM_CAM_FDIF_CLKCTRL,
1084 * CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL, CM_CM1_PROFILING_CLKCTRL,
1085 * CM_CM2_PROFILING_CLKCTRL, CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL,
1086 * CM_D2D_SAD2D_FW_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001087 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001088 * CM_IVAHD_SL2_CLKCTRL, CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL,
1089 * CM_L3INIT_MMC2_CLKCTRL, CM_L3INIT_USBPHYOCP2SCP_CLKCTRL,
1090 * CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_FS_CLKCTRL,
1091 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL,
1092 * CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL,
1093 * CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL,
1094 * CM_L3_2_L3_2_CLKCTRL, CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL,
1095 * CM_L4CFG_L4_CFG_CLKCTRL, CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001096 * CM_L4PER_DMTIMER10_CLKCTRL, CM_L4PER_DMTIMER11_CLKCTRL,
1097 * CM_L4PER_DMTIMER2_CLKCTRL, CM_L4PER_DMTIMER3_CLKCTRL,
1098 * CM_L4PER_DMTIMER4_CLKCTRL, CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001099 * CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL,
1100 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_HDQ1W_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001101 * CM_L4PER_I2C1_CLKCTRL, CM_L4PER_I2C2_CLKCTRL, CM_L4PER_I2C3_CLKCTRL,
1102 * CM_L4PER_I2C4_CLKCTRL, CM_L4PER_I2C5_CLKCTRL, CM_L4PER_L4PER_CLKCTRL,
1103 * CM_L4PER_MCBSP4_CLKCTRL, CM_L4PER_MCSPI1_CLKCTRL, CM_L4PER_MCSPI2_CLKCTRL,
1104 * CM_L4PER_MCSPI3_CLKCTRL, CM_L4PER_MCSPI4_CLKCTRL, CM_L4PER_MMCSD3_CLKCTRL,
1105 * CM_L4PER_MMCSD4_CLKCTRL, CM_L4PER_MMCSD5_CLKCTRL, CM_L4PER_SLIMBUS2_CLKCTRL,
1106 * CM_L4PER_UART1_CLKCTRL, CM_L4PER_UART2_CLKCTRL, CM_L4PER_UART3_CLKCTRL,
1107 * CM_L4PER_UART4_CLKCTRL, CM_L4SEC_AES1_CLKCTRL, CM_L4SEC_AES2_CLKCTRL,
1108 * CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L4SEC_DES3DES_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001109 * CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL, CM_L4SEC_SHA2MD51_CLKCTRL,
1110 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001111 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001112 * CM_TESLA_TESLA_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001113 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL, CM_WKUP_SYNCTIMER_CLKCTRL,
1114 * CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL, CM_WKUP_USIM_CLKCTRL,
1115 * CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001116 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001117#define OMAP4430_IDLEST_SHIFT 16
Mike Turquettef19a3022012-09-19 18:04:14 -06001118#define OMAP4430_IDLEST_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001119#define OMAP4430_IDLEST_MASK (0x3 << 16)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001120
Benoit Cousson7b342a82011-07-09 19:15:05 -06001121/* Used by CM_DUCATI_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001122#define OMAP4430_ISS_DYNDEP_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001123#define OMAP4430_ISS_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001124#define OMAP4430_ISS_DYNDEP_MASK (1 << 9)
1125
1126/*
1127 * Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001128 * CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001129 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001130#define OMAP4430_ISS_STATDEP_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001131#define OMAP4430_ISS_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001132#define OMAP4430_ISS_STATDEP_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001133
Benoit Cousson7b342a82011-07-09 19:15:05 -06001134/* Used by CM_L3_2_DYNAMICDEP, CM_TESLA_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001135#define OMAP4430_IVAHD_DYNDEP_SHIFT 2
Mike Turquettef19a3022012-09-19 18:04:14 -06001136#define OMAP4430_IVAHD_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001137#define OMAP4430_IVAHD_DYNDEP_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001138
1139/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001140 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_DSS_STATICDEP,
1141 * CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_L3INIT_STATICDEP,
1142 * CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001143 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001144#define OMAP4430_IVAHD_STATDEP_SHIFT 2
Mike Turquettef19a3022012-09-19 18:04:14 -06001145#define OMAP4430_IVAHD_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001146#define OMAP4430_IVAHD_STATDEP_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001147
Benoit Cousson7b342a82011-07-09 19:15:05 -06001148/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001149#define OMAP4430_L3INIT_DYNDEP_SHIFT 7
Mike Turquettef19a3022012-09-19 18:04:14 -06001150#define OMAP4430_L3INIT_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001151#define OMAP4430_L3INIT_DYNDEP_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001152
1153/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001154 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_MPU_STATICDEP,
1155 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001156 */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001157#define OMAP4430_L3INIT_STATDEP_SHIFT 7
Mike Turquettef19a3022012-09-19 18:04:14 -06001158#define OMAP4430_L3INIT_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001159#define OMAP4430_L3INIT_STATDEP_MASK (1 << 7)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001160
1161/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001162 * Used by CM_DSS_DYNAMICDEP, CM_L3INIT_DYNAMICDEP, CM_L3_2_DYNAMICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001163 * CM_L4CFG_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -06001164 */
1165#define OMAP4430_L3_1_DYNDEP_SHIFT 5
Mike Turquettef19a3022012-09-19 18:04:14 -06001166#define OMAP4430_L3_1_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001167#define OMAP4430_L3_1_DYNDEP_MASK (1 << 5)
1168
1169/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001170 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_DSS_STATICDEP,
1171 * CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001172 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001173 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -06001174 */
1175#define OMAP4430_L3_1_STATDEP_SHIFT 5
Mike Turquettef19a3022012-09-19 18:04:14 -06001176#define OMAP4430_L3_1_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001177#define OMAP4430_L3_1_STATDEP_MASK (1 << 5)
1178
1179/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001180 * Used by CM_CAM_DYNAMICDEP, CM_D2D_DYNAMICDEP, CM_DUCATI_DYNAMICDEP,
1181 * CM_EMU_DYNAMICDEP, CM_GFX_DYNAMICDEP, CM_IVAHD_DYNAMICDEP,
1182 * CM_L3INIT_DYNAMICDEP, CM_L3_1_DYNAMICDEP, CM_L4CFG_DYNAMICDEP,
1183 * CM_L4SEC_DYNAMICDEP, CM_SDMA_DYNAMICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -06001184 */
1185#define OMAP4430_L3_2_DYNDEP_SHIFT 6
Mike Turquettef19a3022012-09-19 18:04:14 -06001186#define OMAP4430_L3_2_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001187#define OMAP4430_L3_2_DYNDEP_MASK (1 << 6)
1188
1189/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001190 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_DSS_STATICDEP,
1191 * CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001192 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001193 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -06001194 */
1195#define OMAP4430_L3_2_STATDEP_SHIFT 6
Mike Turquettef19a3022012-09-19 18:04:14 -06001196#define OMAP4430_L3_2_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001197#define OMAP4430_L3_2_STATDEP_MASK (1 << 6)
1198
Benoit Cousson7b342a82011-07-09 19:15:05 -06001199/* Used by CM_L3_1_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001200#define OMAP4430_L4CFG_DYNDEP_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -06001201#define OMAP4430_L4CFG_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001202#define OMAP4430_L4CFG_DYNDEP_MASK (1 << 12)
1203
1204/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001205 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP,
1206 * CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayak568997c2010-09-27 14:02:55 -06001207 */
1208#define OMAP4430_L4CFG_STATDEP_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -06001209#define OMAP4430_L4CFG_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001210#define OMAP4430_L4CFG_STATDEP_MASK (1 << 12)
1211
Benoit Cousson7b342a82011-07-09 19:15:05 -06001212/* Used by CM_L3_2_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001213#define OMAP4430_L4PER_DYNDEP_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -06001214#define OMAP4430_L4PER_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001215#define OMAP4430_L4PER_DYNDEP_MASK (1 << 13)
1216
1217/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001218 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP,
1219 * CM_L4SEC_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001220 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001221#define OMAP4430_L4PER_STATDEP_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -06001222#define OMAP4430_L4PER_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001223#define OMAP4430_L4PER_STATDEP_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001224
Benoit Cousson7b342a82011-07-09 19:15:05 -06001225/* Used by CM_L3_2_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
Rajendra Nayak568997c2010-09-27 14:02:55 -06001226#define OMAP4430_L4SEC_DYNDEP_SHIFT 14
Mike Turquettef19a3022012-09-19 18:04:14 -06001227#define OMAP4430_L4SEC_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001228#define OMAP4430_L4SEC_DYNDEP_MASK (1 << 14)
1229
1230/*
1231 * Used by CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001232 * CM_SDMA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001233 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001234#define OMAP4430_L4SEC_STATDEP_SHIFT 14
Mike Turquettef19a3022012-09-19 18:04:14 -06001235#define OMAP4430_L4SEC_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001236#define OMAP4430_L4SEC_STATDEP_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001237
Benoit Cousson7b342a82011-07-09 19:15:05 -06001238/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001239#define OMAP4430_L4WKUP_DYNDEP_SHIFT 15
Mike Turquettef19a3022012-09-19 18:04:14 -06001240#define OMAP4430_L4WKUP_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001241#define OMAP4430_L4WKUP_DYNDEP_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001242
1243/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001244 * Used by CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001245 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001246 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001247#define OMAP4430_L4WKUP_STATDEP_SHIFT 15
Mike Turquettef19a3022012-09-19 18:04:14 -06001248#define OMAP4430_L4WKUP_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001249#define OMAP4430_L4WKUP_STATDEP_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001250
1251/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001252 * Used by CM_D2D_DYNAMICDEP, CM_L3_1_DYNAMICDEP, CM_L4CFG_DYNAMICDEP,
1253 * CM_MPU_DYNAMICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001254 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001255#define OMAP4430_MEMIF_DYNDEP_SHIFT 4
Mike Turquettef19a3022012-09-19 18:04:14 -06001256#define OMAP4430_MEMIF_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001257#define OMAP4430_MEMIF_DYNDEP_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001258
1259/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001260 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_DSS_STATICDEP,
1261 * CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001262 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001263 * CM_SDMA_STATICDEP, CM_TESLA_STATICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001264 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001265#define OMAP4430_MEMIF_STATDEP_SHIFT 4
Mike Turquettef19a3022012-09-19 18:04:14 -06001266#define OMAP4430_MEMIF_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001267#define OMAP4430_MEMIF_STATDEP_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001268
1269/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001270 * Used by CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001271 * CM_SSC_MODFREQDIV_DPLL_DDRPHY, CM_SSC_MODFREQDIV_DPLL_IVA,
1272 * CM_SSC_MODFREQDIV_DPLL_MPU, CM_SSC_MODFREQDIV_DPLL_PER,
1273 * CM_SSC_MODFREQDIV_DPLL_UNIPRO, CM_SSC_MODFREQDIV_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001274 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001275#define OMAP4430_MODFREQDIV_EXPONENT_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001276#define OMAP4430_MODFREQDIV_EXPONENT_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001277#define OMAP4430_MODFREQDIV_EXPONENT_MASK (0x7 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001278
1279/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001280 * Used by CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001281 * CM_SSC_MODFREQDIV_DPLL_DDRPHY, CM_SSC_MODFREQDIV_DPLL_IVA,
1282 * CM_SSC_MODFREQDIV_DPLL_MPU, CM_SSC_MODFREQDIV_DPLL_PER,
1283 * CM_SSC_MODFREQDIV_DPLL_UNIPRO, CM_SSC_MODFREQDIV_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001284 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001285#define OMAP4430_MODFREQDIV_MANTISSA_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001286#define OMAP4430_MODFREQDIV_MANTISSA_WIDTH 0x7
Rajendra Nayak568997c2010-09-27 14:02:55 -06001287#define OMAP4430_MODFREQDIV_MANTISSA_MASK (0x7f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001288
1289/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001290 * Used by CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL,
1291 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
1292 * CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL,
1293 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001294 * CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, CM_ALWON_SR_CORE_CLKCTRL,
1295 * CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL, CM_CAM_FDIF_CLKCTRL,
1296 * CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL, CM_CM1_PROFILING_CLKCTRL,
1297 * CM_CM2_PROFILING_CLKCTRL, CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL,
1298 * CM_D2D_SAD2D_FW_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001299 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001300 * CM_IVAHD_SL2_CLKCTRL, CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL,
1301 * CM_L3INIT_MMC2_CLKCTRL, CM_L3INIT_USBPHYOCP2SCP_CLKCTRL,
1302 * CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_FS_CLKCTRL,
1303 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL,
1304 * CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL,
1305 * CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL,
1306 * CM_L3_2_L3_2_CLKCTRL, CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL,
1307 * CM_L4CFG_L4_CFG_CLKCTRL, CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001308 * CM_L4PER_DMTIMER10_CLKCTRL, CM_L4PER_DMTIMER11_CLKCTRL,
1309 * CM_L4PER_DMTIMER2_CLKCTRL, CM_L4PER_DMTIMER3_CLKCTRL,
1310 * CM_L4PER_DMTIMER4_CLKCTRL, CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001311 * CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL,
1312 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_HDQ1W_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001313 * CM_L4PER_I2C1_CLKCTRL, CM_L4PER_I2C2_CLKCTRL, CM_L4PER_I2C3_CLKCTRL,
1314 * CM_L4PER_I2C4_CLKCTRL, CM_L4PER_I2C5_CLKCTRL, CM_L4PER_L4PER_CLKCTRL,
1315 * CM_L4PER_MCBSP4_CLKCTRL, CM_L4PER_MCSPI1_CLKCTRL, CM_L4PER_MCSPI2_CLKCTRL,
1316 * CM_L4PER_MCSPI3_CLKCTRL, CM_L4PER_MCSPI4_CLKCTRL, CM_L4PER_MMCSD3_CLKCTRL,
1317 * CM_L4PER_MMCSD4_CLKCTRL, CM_L4PER_MMCSD5_CLKCTRL, CM_L4PER_SLIMBUS2_CLKCTRL,
1318 * CM_L4PER_UART1_CLKCTRL, CM_L4PER_UART2_CLKCTRL, CM_L4PER_UART3_CLKCTRL,
1319 * CM_L4PER_UART4_CLKCTRL, CM_L4SEC_AES1_CLKCTRL, CM_L4SEC_AES2_CLKCTRL,
1320 * CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L4SEC_DES3DES_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001321 * CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL, CM_L4SEC_SHA2MD51_CLKCTRL,
1322 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001323 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
Rajendra Nayak568997c2010-09-27 14:02:55 -06001324 * CM_TESLA_TESLA_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001325 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL, CM_WKUP_SYNCTIMER_CLKCTRL,
1326 * CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL, CM_WKUP_USIM_CLKCTRL,
1327 * CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001328 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001329#define OMAP4430_MODULEMODE_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001330#define OMAP4430_MODULEMODE_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001331#define OMAP4430_MODULEMODE_MASK (0x3 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001332
Rajendra Nayak6b54b492011-07-02 08:00:23 +05301333/* Used by CM_L4CFG_DYNAMICDEP */
1334#define OMAP4460_MPU_DYNDEP_SHIFT 19
Mike Turquettef19a3022012-09-19 18:04:14 -06001335#define OMAP4460_MPU_DYNDEP_WIDTH 0x1
Rajendra Nayak6b54b492011-07-02 08:00:23 +05301336#define OMAP4460_MPU_DYNDEP_MASK (1 << 19)
1337
Rajendra Nayakdd708412009-12-08 18:24:54 -07001338/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001339#define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001340#define OMAP4430_OPTFCLKEN_48MHZ_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001341#define OMAP4430_OPTFCLKEN_48MHZ_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001342
1343/* Used by CM_WKUP_BANDGAP_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001344#define OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001345#define OMAP4430_OPTFCLKEN_BGAP_32K_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001346#define OMAP4430_OPTFCLKEN_BGAP_32K_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001347
Rajendra Nayak568997c2010-09-27 14:02:55 -06001348/* Used by CM_ALWON_USBPHY_CLKCTRL */
1349#define OMAP4430_OPTFCLKEN_CLK32K_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001350#define OMAP4430_OPTFCLKEN_CLK32K_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001351#define OMAP4430_OPTFCLKEN_CLK32K_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001352
1353/* Used by CM_CAM_ISS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001354#define OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001355#define OMAP4430_OPTFCLKEN_CTRLCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001356#define OMAP4430_OPTFCLKEN_CTRLCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001357
1358/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001359 * Used by CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL,
1360 * CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL,
1361 * CM_WKUP_GPIO1_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001362 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001363#define OMAP4430_OPTFCLKEN_DBCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001364#define OMAP4430_OPTFCLKEN_DBCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001365#define OMAP4430_OPTFCLKEN_DBCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001366
1367/* Used by CM_MEMIF_DLL_CLKCTRL, CM_MEMIF_DLL_H_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001368#define OMAP4430_OPTFCLKEN_DLL_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001369#define OMAP4430_OPTFCLKEN_DLL_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001370#define OMAP4430_OPTFCLKEN_DLL_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001371
1372/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001373#define OMAP4430_OPTFCLKEN_DSSCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001374#define OMAP4430_OPTFCLKEN_DSSCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001375#define OMAP4430_OPTFCLKEN_DSSCLK_MASK (1 << 8)
1376
1377/* Used by CM_WKUP_USIM_CLKCTRL */
1378#define OMAP4430_OPTFCLKEN_FCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001379#define OMAP4430_OPTFCLKEN_FCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001380#define OMAP4430_OPTFCLKEN_FCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001381
1382/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001383#define OMAP4430_OPTFCLKEN_FCLK0_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001384#define OMAP4430_OPTFCLKEN_FCLK0_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001385#define OMAP4430_OPTFCLKEN_FCLK0_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001386
1387/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001388#define OMAP4430_OPTFCLKEN_FCLK1_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001389#define OMAP4430_OPTFCLKEN_FCLK1_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001390#define OMAP4430_OPTFCLKEN_FCLK1_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001391
1392/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001393#define OMAP4430_OPTFCLKEN_FCLK2_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -06001394#define OMAP4430_OPTFCLKEN_FCLK2_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001395#define OMAP4430_OPTFCLKEN_FCLK2_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001396
Benoit Cousson7b342a82011-07-09 19:15:05 -06001397/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001398#define OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT 15
Mike Turquettef19a3022012-09-19 18:04:14 -06001399#define OMAP4430_OPTFCLKEN_FUNC48MCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001400#define OMAP4430_OPTFCLKEN_FUNC48MCLK_MASK (1 << 15)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001401
Benoit Cousson7b342a82011-07-09 19:15:05 -06001402/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001403#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT 13
Mike Turquettef19a3022012-09-19 18:04:14 -06001404#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001405#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_MASK (1 << 13)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001406
Benoit Cousson7b342a82011-07-09 19:15:05 -06001407/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001408#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT 14
Mike Turquettef19a3022012-09-19 18:04:14 -06001409#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001410#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_MASK (1 << 14)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001411
Benoit Cousson7b342a82011-07-09 19:15:05 -06001412/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001413#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -06001414#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001415#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001416
Benoit Cousson7b342a82011-07-09 19:15:05 -06001417/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001418#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT 12
Mike Turquettef19a3022012-09-19 18:04:14 -06001419#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001420#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_MASK (1 << 12)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001421
1422/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001423#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001424#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001425#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001426
1427/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001428#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001429#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001430#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001431
1432/* Used by CM_L3INIT_USBPHYOCP2SCP_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001433#define OMAP4430_OPTFCLKEN_PHY_48M_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001434#define OMAP4430_OPTFCLKEN_PHY_48M_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001435#define OMAP4430_OPTFCLKEN_PHY_48M_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001436
1437/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001438#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -06001439#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001440#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001441
1442/* Renamed from OPTFCLKEN_SLIMBUS_CLK Used by CM1_ABE_SLIMBUS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001443#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -06001444#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001445#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001446
1447/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001448#define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -06001449#define OMAP4430_OPTFCLKEN_SYS_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001450#define OMAP4430_OPTFCLKEN_SYS_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001451
Rajendra Nayak6b54b492011-07-02 08:00:23 +05301452/* Used by CM_WKUP_BANDGAP_CLKCTRL */
1453#define OMAP4460_OPTFCLKEN_TS_FCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001454#define OMAP4460_OPTFCLKEN_TS_FCLK_WIDTH 0x1
Rajendra Nayak6b54b492011-07-02 08:00:23 +05301455#define OMAP4460_OPTFCLKEN_TS_FCLK_MASK (1 << 8)
1456
Rajendra Nayakdd708412009-12-08 18:24:54 -07001457/* Used by CM_DSS_DSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001458#define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -06001459#define OMAP4430_OPTFCLKEN_TV_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001460#define OMAP4430_OPTFCLKEN_TV_CLK_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001461
1462/* Used by CM_L3INIT_UNIPRO1_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001463#define OMAP4430_OPTFCLKEN_TXPHYCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001464#define OMAP4430_OPTFCLKEN_TXPHYCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001465#define OMAP4430_OPTFCLKEN_TXPHYCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001466
Benoit Cousson7b342a82011-07-09 19:15:05 -06001467/* Used by CM_L3INIT_USB_TLL_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001468#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001469#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001470#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001471
Benoit Cousson7b342a82011-07-09 19:15:05 -06001472/* Used by CM_L3INIT_USB_TLL_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001473#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001474#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001475#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001476
Benoit Cousson7b342a82011-07-09 19:15:05 -06001477/* Used by CM_L3INIT_USB_TLL_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001478#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -06001479#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001480#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001481
Benoit Cousson7b342a82011-07-09 19:15:05 -06001482/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001483#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001484#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001485#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001486
Benoit Cousson7b342a82011-07-09 19:15:05 -06001487/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001488#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001489#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001490#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001491
Benoit Cousson7b342a82011-07-09 19:15:05 -06001492/* Used by CM_L3INIT_USB_HOST_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001493#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -06001494#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001495#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001496
1497/* Used by CM_L3INIT_USB_OTG_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001498#define OMAP4430_OPTFCLKEN_XCLK_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001499#define OMAP4430_OPTFCLKEN_XCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001500#define OMAP4430_OPTFCLKEN_XCLK_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001501
Rajendra Nayak568997c2010-09-27 14:02:55 -06001502/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001503#define OMAP4430_OVERRIDE_ENABLE_SHIFT 19
Mike Turquettef19a3022012-09-19 18:04:14 -06001504#define OMAP4430_OVERRIDE_ENABLE_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001505#define OMAP4430_OVERRIDE_ENABLE_MASK (1 << 19)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001506
1507/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001508#define OMAP4430_PAD_CLKS_GATE_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001509#define OMAP4430_PAD_CLKS_GATE_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001510#define OMAP4430_PAD_CLKS_GATE_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001511
1512/* Used by CM_CORE_DVFS_CURRENT, CM_IVA_DVFS_CURRENT */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001513#define OMAP4430_PERF_CURRENT_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001514#define OMAP4430_PERF_CURRENT_WIDTH 0x8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001515#define OMAP4430_PERF_CURRENT_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001516
1517/*
1518 * Used by CM_CORE_DVFS_PERF1, CM_CORE_DVFS_PERF2, CM_CORE_DVFS_PERF3,
1519 * CM_CORE_DVFS_PERF4, CM_IVA_DVFS_PERF_ABE, CM_IVA_DVFS_PERF_IVAHD,
1520 * CM_IVA_DVFS_PERF_TESLA
1521 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001522#define OMAP4430_PERF_REQ_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001523#define OMAP4430_PERF_REQ_WIDTH 0x8
Rajendra Nayak568997c2010-09-27 14:02:55 -06001524#define OMAP4430_PERF_REQ_MASK (0xff << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001525
1526/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001527#define OMAP4430_PHASE1_COMPLETED_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001528#define OMAP4430_PHASE1_COMPLETED_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001529#define OMAP4430_PHASE1_COMPLETED_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001530
1531/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001532#define OMAP4430_PHASE2A_COMPLETED_SHIFT 1
Mike Turquettef19a3022012-09-19 18:04:14 -06001533#define OMAP4430_PHASE2A_COMPLETED_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001534#define OMAP4430_PHASE2A_COMPLETED_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001535
1536/* Used by CM_RESTORE_ST */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001537#define OMAP4430_PHASE2B_COMPLETED_SHIFT 2
Mike Turquettef19a3022012-09-19 18:04:14 -06001538#define OMAP4430_PHASE2B_COMPLETED_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001539#define OMAP4430_PHASE2B_COMPLETED_MASK (1 << 2)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001540
1541/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001542#define OMAP4430_PMD_STM_MUX_CTRL_SHIFT 20
Mike Turquettef19a3022012-09-19 18:04:14 -06001543#define OMAP4430_PMD_STM_MUX_CTRL_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001544#define OMAP4430_PMD_STM_MUX_CTRL_MASK (0x3 << 20)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001545
1546/* Used by CM_EMU_DEBUGSS_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001547#define OMAP4430_PMD_TRACE_MUX_CTRL_SHIFT 22
Mike Turquettef19a3022012-09-19 18:04:14 -06001548#define OMAP4430_PMD_TRACE_MUX_CTRL_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001549#define OMAP4430_PMD_TRACE_MUX_CTRL_MASK (0x3 << 22)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001550
Benoit Cousson7b342a82011-07-09 19:15:05 -06001551/* Used by CM_DYN_DEP_PRESCAL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001552#define OMAP4430_PRESCAL_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001553#define OMAP4430_PRESCAL_WIDTH 0x6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001554#define OMAP4430_PRESCAL_MASK (0x3f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001555
Rajendra Nayak568997c2010-09-27 14:02:55 -06001556/* Used by REVISION_CM1, REVISION_CM2 */
1557#define OMAP4430_R_RTL_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -06001558#define OMAP4430_R_RTL_WIDTH 0x5
Rajendra Nayak568997c2010-09-27 14:02:55 -06001559#define OMAP4430_R_RTL_MASK (0x1f << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001560
Benoit Cousson7b342a82011-07-09 19:15:05 -06001561/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001562#define OMAP4430_SAR_MODE_SHIFT 4
Mike Turquettef19a3022012-09-19 18:04:14 -06001563#define OMAP4430_SAR_MODE_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001564#define OMAP4430_SAR_MODE_MASK (1 << 4)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001565
1566/* Used by CM_SCALE_FCLK */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001567#define OMAP4430_SCALE_FCLK_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001568#define OMAP4430_SCALE_FCLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001569#define OMAP4430_SCALE_FCLK_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001570
Rajendra Nayak568997c2010-09-27 14:02:55 -06001571/* Used by REVISION_CM1, REVISION_CM2 */
1572#define OMAP4430_SCHEME_SHIFT 30
Mike Turquettef19a3022012-09-19 18:04:14 -06001573#define OMAP4430_SCHEME_WIDTH 0x2
Rajendra Nayak568997c2010-09-27 14:02:55 -06001574#define OMAP4430_SCHEME_MASK (0x3 << 30)
1575
Benoit Cousson7b342a82011-07-09 19:15:05 -06001576/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001577#define OMAP4430_SDMA_DYNDEP_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -06001578#define OMAP4430_SDMA_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001579#define OMAP4430_SDMA_DYNDEP_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001580
1581/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001582#define OMAP4430_SDMA_STATDEP_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -06001583#define OMAP4430_SDMA_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001584#define OMAP4430_SDMA_STATDEP_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001585
1586/* Used by CM_CLKSEL_ABE */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001587#define OMAP4430_SLIMBUS_CLK_GATE_SHIFT 10
Mike Turquettef19a3022012-09-19 18:04:14 -06001588#define OMAP4430_SLIMBUS_CLK_GATE_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001589#define OMAP4430_SLIMBUS_CLK_GATE_MASK (1 << 10)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001590
1591/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001592 * Used by CM1_ABE_AESS_CLKCTRL, CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001593 * CM_D2D_SAD2D_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
1594 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
Rajendra Nayakdd708412009-12-08 18:24:54 -07001595 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
Benoit Cousson7b342a82011-07-09 19:15:05 -06001596 * CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_FS_CLKCTRL,
Mike Turquettef19a3022012-09-19 18:04:14 -06001597 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_MPU_MPU_CLKCTRL,
1598 * CM_SDMA_SDMA_CLKCTRL, CM_TESLA_TESLA_CLKCTRL
Rajendra Nayakdd708412009-12-08 18:24:54 -07001599 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001600#define OMAP4430_STBYST_SHIFT 18
Mike Turquettef19a3022012-09-19 18:04:14 -06001601#define OMAP4430_STBYST_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001602#define OMAP4430_STBYST_MASK (1 << 18)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001603
1604/*
Rajendra Nayak568997c2010-09-27 14:02:55 -06001605 * Used by CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
1606 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER,
1607 * CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001608 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001609#define OMAP4430_ST_DPLL_CLK_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001610#define OMAP4430_ST_DPLL_CLK_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001611#define OMAP4430_ST_DPLL_CLK_MASK (1 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001612
1613/* Used by CM_CLKDCOLDO_DPLL_USB */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001614#define OMAP4430_ST_DPLL_CLKDCOLDO_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001615#define OMAP4430_ST_DPLL_CLKDCOLDO_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001616#define OMAP4430_ST_DPLL_CLKDCOLDO_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001617
1618/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001619 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
1620 * CM_DIV_M2_DPLL_MPU, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB
Rajendra Nayakdd708412009-12-08 18:24:54 -07001621 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001622#define OMAP4430_ST_DPLL_CLKOUT_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001623#define OMAP4430_ST_DPLL_CLKOUT_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001624#define OMAP4430_ST_DPLL_CLKOUT_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001625
Benoit Cousson7b342a82011-07-09 19:15:05 -06001626/* Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE, CM_DIV_M3_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001627#define OMAP4430_ST_DPLL_CLKOUTHIF_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001628#define OMAP4430_ST_DPLL_CLKOUTHIF_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001629#define OMAP4430_ST_DPLL_CLKOUTHIF_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001630
Rajendra Nayak568997c2010-09-27 14:02:55 -06001631/* Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001632#define OMAP4430_ST_DPLL_CLKOUTX2_SHIFT 11
Mike Turquettef19a3022012-09-19 18:04:14 -06001633#define OMAP4430_ST_DPLL_CLKOUTX2_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001634#define OMAP4430_ST_DPLL_CLKOUTX2_MASK (1 << 11)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001635
1636/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001637 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA,
1638 * CM_DIV_M4_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001639 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001640#define OMAP4430_ST_HSDIVIDER_CLKOUT1_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001641#define OMAP4430_ST_HSDIVIDER_CLKOUT1_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001642#define OMAP4430_ST_HSDIVIDER_CLKOUT1_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001643
1644/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001645 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA,
1646 * CM_DIV_M5_DPLL_PER
Rajendra Nayakdd708412009-12-08 18:24:54 -07001647 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001648#define OMAP4430_ST_HSDIVIDER_CLKOUT2_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001649#define OMAP4430_ST_HSDIVIDER_CLKOUT2_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001650#define OMAP4430_ST_HSDIVIDER_CLKOUT2_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001651
Benoit Cousson7b342a82011-07-09 19:15:05 -06001652/* Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001653#define OMAP4430_ST_HSDIVIDER_CLKOUT3_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001654#define OMAP4430_ST_HSDIVIDER_CLKOUT3_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001655#define OMAP4430_ST_HSDIVIDER_CLKOUT3_MASK (1 << 9)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001656
Benoit Cousson7b342a82011-07-09 19:15:05 -06001657/* Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_PER */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001658#define OMAP4430_ST_HSDIVIDER_CLKOUT4_SHIFT 9
Mike Turquettef19a3022012-09-19 18:04:14 -06001659#define OMAP4430_ST_HSDIVIDER_CLKOUT4_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001660#define OMAP4430_ST_HSDIVIDER_CLKOUT4_MASK (1 << 9)
1661
1662/*
1663 * Used by CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
1664 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER,
1665 * CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB
1666 */
1667#define OMAP4430_ST_MN_BYPASS_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001668#define OMAP4430_ST_MN_BYPASS_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001669#define OMAP4430_ST_MN_BYPASS_MASK (1 << 8)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001670
1671/* Used by CM_SYS_CLKSEL */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001672#define OMAP4430_SYS_CLKSEL_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001673#define OMAP4430_SYS_CLKSEL_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001674#define OMAP4430_SYS_CLKSEL_MASK (0x7 << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001675
Benoit Cousson7b342a82011-07-09 19:15:05 -06001676/* Used by CM_L4CFG_DYNAMICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001677#define OMAP4430_TESLA_DYNDEP_SHIFT 1
Mike Turquettef19a3022012-09-19 18:04:14 -06001678#define OMAP4430_TESLA_DYNDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001679#define OMAP4430_TESLA_DYNDEP_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001680
1681/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001682#define OMAP4430_TESLA_STATDEP_SHIFT 1
Mike Turquettef19a3022012-09-19 18:04:14 -06001683#define OMAP4430_TESLA_STATDEP_WIDTH 0x1
Rajendra Nayak568997c2010-09-27 14:02:55 -06001684#define OMAP4430_TESLA_STATDEP_MASK (1 << 1)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001685
1686/*
Benoit Cousson7b342a82011-07-09 19:15:05 -06001687 * Used by CM_D2D_DYNAMICDEP, CM_DUCATI_DYNAMICDEP, CM_EMU_DYNAMICDEP,
1688 * CM_L3_1_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP,
1689 * CM_L4PER_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
Rajendra Nayakdd708412009-12-08 18:24:54 -07001690 */
Rajendra Nayak56ef28a2010-01-26 20:13:12 -07001691#define OMAP4430_WINDOWSIZE_SHIFT 24
Mike Turquettef19a3022012-09-19 18:04:14 -06001692#define OMAP4430_WINDOWSIZE_WIDTH 0x4
Rajendra Nayak568997c2010-09-27 14:02:55 -06001693#define OMAP4430_WINDOWSIZE_MASK (0xf << 24)
1694
1695/* Used by REVISION_CM1, REVISION_CM2 */
1696#define OMAP4430_X_MAJOR_SHIFT 8
Mike Turquettef19a3022012-09-19 18:04:14 -06001697#define OMAP4430_X_MAJOR_WIDTH 0x3
Rajendra Nayak568997c2010-09-27 14:02:55 -06001698#define OMAP4430_X_MAJOR_MASK (0x7 << 8)
1699
1700/* Used by REVISION_CM1, REVISION_CM2 */
1701#define OMAP4430_Y_MINOR_SHIFT 0
Mike Turquettef19a3022012-09-19 18:04:14 -06001702#define OMAP4430_Y_MINOR_WIDTH 0x6
Rajendra Nayak568997c2010-09-27 14:02:55 -06001703#define OMAP4430_Y_MINOR_MASK (0x3f << 0)
Rajendra Nayakdd708412009-12-08 18:24:54 -07001704#endif