xref: /openbmc/linux/arch/arm/mach-omap2/cm2_44xx.h (revision ad98a18b)
1d198b514SPaul Walmsley /*
2d198b514SPaul Walmsley  * OMAP44xx CM2 instance offset macros
3d198b514SPaul Walmsley  *
4ad98a18bSBenoit Cousson  * Copyright (C) 2009-2011 Texas Instruments, Inc.
5d198b514SPaul Walmsley  * Copyright (C) 2009-2010 Nokia Corporation
6d198b514SPaul Walmsley  *
7d198b514SPaul Walmsley  * Paul Walmsley (paul@pwsan.com)
8d198b514SPaul Walmsley  * Rajendra Nayak (rnayak@ti.com)
9d198b514SPaul Walmsley  * Benoit Cousson (b-cousson@ti.com)
10d198b514SPaul Walmsley  *
11d198b514SPaul Walmsley  * This file is automatically generated from the OMAP hardware databases.
12d198b514SPaul Walmsley  * We respectfully ask that any modifications to this file be coordinated
13d198b514SPaul Walmsley  * with the public linux-omap@vger.kernel.org mailing list and the
14d198b514SPaul Walmsley  * authors above to ensure that the autogeneration scripts are kept
15d198b514SPaul Walmsley  * up-to-date with the file contents.
16d198b514SPaul Walmsley  *
17d198b514SPaul Walmsley  * This program is free software; you can redistribute it and/or modify
18d198b514SPaul Walmsley  * it under the terms of the GNU General Public License version 2 as
19d198b514SPaul Walmsley  * published by the Free Software Foundation.
20d198b514SPaul Walmsley  *
21d198b514SPaul Walmsley  * XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX",
22d198b514SPaul Walmsley  *     or "OMAP4430".
23d198b514SPaul Walmsley  */
24d198b514SPaul Walmsley 
25d198b514SPaul Walmsley #ifndef __ARCH_ARM_MACH_OMAP2_CM2_44XX_H
26d198b514SPaul Walmsley #define __ARCH_ARM_MACH_OMAP2_CM2_44XX_H
27d198b514SPaul Walmsley 
28d198b514SPaul Walmsley /* CM2 base address */
29d198b514SPaul Walmsley #define OMAP4430_CM2_BASE		0x4a008000
30d198b514SPaul Walmsley 
31cdb54c44SPaul Walmsley #define OMAP44XX_CM2_REGADDR(inst, reg)				\
32cdb54c44SPaul Walmsley 	OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE + (inst) + (reg))
33d198b514SPaul Walmsley 
34d198b514SPaul Walmsley /* CM2 instances */
35cdb54c44SPaul Walmsley #define OMAP4430_CM2_OCP_SOCKET_INST	0x0000
36cdb54c44SPaul Walmsley #define OMAP4430_CM2_CKGEN_INST		0x0100
37cdb54c44SPaul Walmsley #define OMAP4430_CM2_ALWAYS_ON_INST	0x0600
38cdb54c44SPaul Walmsley #define OMAP4430_CM2_CORE_INST		0x0700
39cdb54c44SPaul Walmsley #define OMAP4430_CM2_IVAHD_INST		0x0f00
40cdb54c44SPaul Walmsley #define OMAP4430_CM2_CAM_INST		0x1000
41cdb54c44SPaul Walmsley #define OMAP4430_CM2_DSS_INST		0x1100
42cdb54c44SPaul Walmsley #define OMAP4430_CM2_GFX_INST		0x1200
43cdb54c44SPaul Walmsley #define OMAP4430_CM2_L3INIT_INST	0x1300
44cdb54c44SPaul Walmsley #define OMAP4430_CM2_L4PER_INST		0x1400
45cdb54c44SPaul Walmsley #define OMAP4430_CM2_CEFUSE_INST	0x1600
46cdb54c44SPaul Walmsley #define OMAP4430_CM2_RESTORE_INST	0x1e00
47cdb54c44SPaul Walmsley #define OMAP4430_CM2_INSTR_INST		0x1f00
48d198b514SPaul Walmsley 
49e4156ee5SPaul Walmsley /* CM2 clockdomain register offsets (from instance start) */
50e4156ee5SPaul Walmsley #define OMAP4430_CM2_ALWAYS_ON_ALWON_CDOFFS	0x0000
51e4156ee5SPaul Walmsley #define OMAP4430_CM2_CORE_L3_1_CDOFFS		0x0000
52e4156ee5SPaul Walmsley #define OMAP4430_CM2_CORE_L3_2_CDOFFS		0x0100
53e4156ee5SPaul Walmsley #define OMAP4430_CM2_CORE_DUCATI_CDOFFS		0x0200
54e4156ee5SPaul Walmsley #define OMAP4430_CM2_CORE_SDMA_CDOFFS		0x0300
55e4156ee5SPaul Walmsley #define OMAP4430_CM2_CORE_MEMIF_CDOFFS		0x0400
56e4156ee5SPaul Walmsley #define OMAP4430_CM2_CORE_D2D_CDOFFS		0x0500
57e4156ee5SPaul Walmsley #define OMAP4430_CM2_CORE_L4CFG_CDOFFS		0x0600
58e4156ee5SPaul Walmsley #define OMAP4430_CM2_CORE_L3INSTR_CDOFFS	0x0700
59e4156ee5SPaul Walmsley #define OMAP4430_CM2_IVAHD_IVAHD_CDOFFS		0x0000
60e4156ee5SPaul Walmsley #define OMAP4430_CM2_CAM_CAM_CDOFFS		0x0000
61e4156ee5SPaul Walmsley #define OMAP4430_CM2_DSS_DSS_CDOFFS		0x0000
62e4156ee5SPaul Walmsley #define OMAP4430_CM2_GFX_GFX_CDOFFS		0x0000
63e4156ee5SPaul Walmsley #define OMAP4430_CM2_L3INIT_L3INIT_CDOFFS	0x0000
64e4156ee5SPaul Walmsley #define OMAP4430_CM2_L4PER_L4PER_CDOFFS		0x0000
65e4156ee5SPaul Walmsley #define OMAP4430_CM2_L4PER_L4SEC_CDOFFS		0x0180
66e4156ee5SPaul Walmsley #define OMAP4430_CM2_CEFUSE_CEFUSE_CDOFFS	0x0000
67e4156ee5SPaul Walmsley 
68d198b514SPaul Walmsley /* CM2 */
69d198b514SPaul Walmsley 
70d198b514SPaul Walmsley /* CM2.OCP_SOCKET_CM2 register offsets */
71d198b514SPaul Walmsley #define OMAP4_REVISION_CM2_OFFSET			0x0000
72cdb54c44SPaul Walmsley #define OMAP4430_REVISION_CM2				OMAP44XX_CM2_REGADDR(OMAP4430_CM2_OCP_SOCKET_INST, 0x0000)
73d198b514SPaul Walmsley #define OMAP4_CM_CM2_PROFILING_CLKCTRL_OFFSET		0x0040
74cdb54c44SPaul Walmsley #define OMAP4430_CM_CM2_PROFILING_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_OCP_SOCKET_INST, 0x0040)
75d198b514SPaul Walmsley 
76d198b514SPaul Walmsley /* CM2.CKGEN_CM2 register offsets */
77d198b514SPaul Walmsley #define OMAP4_CM_CLKSEL_DUCATI_ISS_ROOT_OFFSET		0x0000
78cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKSEL_DUCATI_ISS_ROOT		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0000)
79d198b514SPaul Walmsley #define OMAP4_CM_CLKSEL_USB_60MHZ_OFFSET		0x0004
80cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKSEL_USB_60MHZ			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0004)
81d198b514SPaul Walmsley #define OMAP4_CM_SCALE_FCLK_OFFSET			0x0008
82cdb54c44SPaul Walmsley #define OMAP4430_CM_SCALE_FCLK				OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0008)
83d198b514SPaul Walmsley #define OMAP4_CM_CORE_DVFS_PERF1_OFFSET			0x0010
84cdb54c44SPaul Walmsley #define OMAP4430_CM_CORE_DVFS_PERF1			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0010)
85d198b514SPaul Walmsley #define OMAP4_CM_CORE_DVFS_PERF2_OFFSET			0x0014
86cdb54c44SPaul Walmsley #define OMAP4430_CM_CORE_DVFS_PERF2			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0014)
87d198b514SPaul Walmsley #define OMAP4_CM_CORE_DVFS_PERF3_OFFSET			0x0018
88cdb54c44SPaul Walmsley #define OMAP4430_CM_CORE_DVFS_PERF3			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0018)
89d198b514SPaul Walmsley #define OMAP4_CM_CORE_DVFS_PERF4_OFFSET			0x001c
90cdb54c44SPaul Walmsley #define OMAP4430_CM_CORE_DVFS_PERF4			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x001c)
91d198b514SPaul Walmsley #define OMAP4_CM_CORE_DVFS_CURRENT_OFFSET		0x0024
92cdb54c44SPaul Walmsley #define OMAP4430_CM_CORE_DVFS_CURRENT			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0024)
93d198b514SPaul Walmsley #define OMAP4_CM_IVA_DVFS_PERF_TESLA_OFFSET		0x0028
94cdb54c44SPaul Walmsley #define OMAP4430_CM_IVA_DVFS_PERF_TESLA			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0028)
95d198b514SPaul Walmsley #define OMAP4_CM_IVA_DVFS_PERF_IVAHD_OFFSET		0x002c
96cdb54c44SPaul Walmsley #define OMAP4430_CM_IVA_DVFS_PERF_IVAHD			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x002c)
97d198b514SPaul Walmsley #define OMAP4_CM_IVA_DVFS_PERF_ABE_OFFSET		0x0030
98cdb54c44SPaul Walmsley #define OMAP4430_CM_IVA_DVFS_PERF_ABE			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0030)
99d198b514SPaul Walmsley #define OMAP4_CM_IVA_DVFS_CURRENT_OFFSET		0x0038
100cdb54c44SPaul Walmsley #define OMAP4430_CM_IVA_DVFS_CURRENT			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0038)
101d198b514SPaul Walmsley #define OMAP4_CM_CLKMODE_DPLL_PER_OFFSET		0x0040
102cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKMODE_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0040)
103d198b514SPaul Walmsley #define OMAP4_CM_IDLEST_DPLL_PER_OFFSET			0x0044
104cdb54c44SPaul Walmsley #define OMAP4430_CM_IDLEST_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0044)
105d198b514SPaul Walmsley #define OMAP4_CM_AUTOIDLE_DPLL_PER_OFFSET		0x0048
106cdb54c44SPaul Walmsley #define OMAP4430_CM_AUTOIDLE_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0048)
107d198b514SPaul Walmsley #define OMAP4_CM_CLKSEL_DPLL_PER_OFFSET			0x004c
108cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKSEL_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x004c)
109d198b514SPaul Walmsley #define OMAP4_CM_DIV_M2_DPLL_PER_OFFSET			0x0050
110cdb54c44SPaul Walmsley #define OMAP4430_CM_DIV_M2_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0050)
111d198b514SPaul Walmsley #define OMAP4_CM_DIV_M3_DPLL_PER_OFFSET			0x0054
112cdb54c44SPaul Walmsley #define OMAP4430_CM_DIV_M3_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0054)
113d198b514SPaul Walmsley #define OMAP4_CM_DIV_M4_DPLL_PER_OFFSET			0x0058
114cdb54c44SPaul Walmsley #define OMAP4430_CM_DIV_M4_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0058)
115d198b514SPaul Walmsley #define OMAP4_CM_DIV_M5_DPLL_PER_OFFSET			0x005c
116cdb54c44SPaul Walmsley #define OMAP4430_CM_DIV_M5_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x005c)
117d198b514SPaul Walmsley #define OMAP4_CM_DIV_M6_DPLL_PER_OFFSET			0x0060
118cdb54c44SPaul Walmsley #define OMAP4430_CM_DIV_M6_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0060)
119d198b514SPaul Walmsley #define OMAP4_CM_DIV_M7_DPLL_PER_OFFSET			0x0064
120cdb54c44SPaul Walmsley #define OMAP4430_CM_DIV_M7_DPLL_PER			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0064)
121d198b514SPaul Walmsley #define OMAP4_CM_SSC_DELTAMSTEP_DPLL_PER_OFFSET		0x0068
122cdb54c44SPaul Walmsley #define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_PER		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0068)
123ad98a18bSBenoit Cousson #define OMAP4_CM_SSC_MODFREQDIV_DPLL_PER_OFFSET		0x006c
124ad98a18bSBenoit Cousson #define OMAP4430_CM_SSC_MODFREQDIV_DPLL_PER		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x006c)
125d198b514SPaul Walmsley #define OMAP4_CM_CLKMODE_DPLL_USB_OFFSET		0x0080
126cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKMODE_DPLL_USB			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0080)
127d198b514SPaul Walmsley #define OMAP4_CM_IDLEST_DPLL_USB_OFFSET			0x0084
128cdb54c44SPaul Walmsley #define OMAP4430_CM_IDLEST_DPLL_USB			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0084)
129d198b514SPaul Walmsley #define OMAP4_CM_AUTOIDLE_DPLL_USB_OFFSET		0x0088
130cdb54c44SPaul Walmsley #define OMAP4430_CM_AUTOIDLE_DPLL_USB			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0088)
131d198b514SPaul Walmsley #define OMAP4_CM_CLKSEL_DPLL_USB_OFFSET			0x008c
132cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKSEL_DPLL_USB			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x008c)
133d198b514SPaul Walmsley #define OMAP4_CM_DIV_M2_DPLL_USB_OFFSET			0x0090
134cdb54c44SPaul Walmsley #define OMAP4430_CM_DIV_M2_DPLL_USB			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x0090)
135d198b514SPaul Walmsley #define OMAP4_CM_SSC_DELTAMSTEP_DPLL_USB_OFFSET		0x00a8
136cdb54c44SPaul Walmsley #define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_USB		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00a8)
137ad98a18bSBenoit Cousson #define OMAP4_CM_SSC_MODFREQDIV_DPLL_USB_OFFSET		0x00ac
138ad98a18bSBenoit Cousson #define OMAP4430_CM_SSC_MODFREQDIV_DPLL_USB		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00ac)
139d198b514SPaul Walmsley #define OMAP4_CM_CLKDCOLDO_DPLL_USB_OFFSET		0x00b4
140cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKDCOLDO_DPLL_USB			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00b4)
141d198b514SPaul Walmsley #define OMAP4_CM_CLKMODE_DPLL_UNIPRO_OFFSET		0x00c0
142cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKMODE_DPLL_UNIPRO			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00c0)
143d198b514SPaul Walmsley #define OMAP4_CM_IDLEST_DPLL_UNIPRO_OFFSET		0x00c4
144cdb54c44SPaul Walmsley #define OMAP4430_CM_IDLEST_DPLL_UNIPRO			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00c4)
145d198b514SPaul Walmsley #define OMAP4_CM_AUTOIDLE_DPLL_UNIPRO_OFFSET		0x00c8
146cdb54c44SPaul Walmsley #define OMAP4430_CM_AUTOIDLE_DPLL_UNIPRO		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00c8)
147d198b514SPaul Walmsley #define OMAP4_CM_CLKSEL_DPLL_UNIPRO_OFFSET		0x00cc
148cdb54c44SPaul Walmsley #define OMAP4430_CM_CLKSEL_DPLL_UNIPRO			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00cc)
149d198b514SPaul Walmsley #define OMAP4_CM_DIV_M2_DPLL_UNIPRO_OFFSET		0x00d0
150cdb54c44SPaul Walmsley #define OMAP4430_CM_DIV_M2_DPLL_UNIPRO			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00d0)
151d198b514SPaul Walmsley #define OMAP4_CM_SSC_DELTAMSTEP_DPLL_UNIPRO_OFFSET	0x00e8
152cdb54c44SPaul Walmsley #define OMAP4430_CM_SSC_DELTAMSTEP_DPLL_UNIPRO		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00e8)
153ad98a18bSBenoit Cousson #define OMAP4_CM_SSC_MODFREQDIV_DPLL_UNIPRO_OFFSET	0x00ec
154ad98a18bSBenoit Cousson #define OMAP4430_CM_SSC_MODFREQDIV_DPLL_UNIPRO		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CKGEN_INST, 0x00ec)
155d198b514SPaul Walmsley 
156d198b514SPaul Walmsley /* CM2.ALWAYS_ON_CM2 register offsets */
157d198b514SPaul Walmsley #define OMAP4_CM_ALWON_CLKSTCTRL_OFFSET			0x0000
158cdb54c44SPaul Walmsley #define OMAP4430_CM_ALWON_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_INST, 0x0000)
159d198b514SPaul Walmsley #define OMAP4_CM_ALWON_MDMINTC_CLKCTRL_OFFSET		0x0020
160cdb54c44SPaul Walmsley #define OMAP4430_CM_ALWON_MDMINTC_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_INST, 0x0020)
161d198b514SPaul Walmsley #define OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET		0x0028
162cdb54c44SPaul Walmsley #define OMAP4430_CM_ALWON_SR_MPU_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_INST, 0x0028)
163d198b514SPaul Walmsley #define OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET		0x0030
164cdb54c44SPaul Walmsley #define OMAP4430_CM_ALWON_SR_IVA_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_INST, 0x0030)
165d198b514SPaul Walmsley #define OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET		0x0038
166cdb54c44SPaul Walmsley #define OMAP4430_CM_ALWON_SR_CORE_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_INST, 0x0038)
167d198b514SPaul Walmsley #define OMAP4_CM_ALWON_USBPHY_CLKCTRL_OFFSET		0x0040
168cdb54c44SPaul Walmsley #define OMAP4430_CM_ALWON_USBPHY_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_ALWAYS_ON_INST, 0x0040)
169d198b514SPaul Walmsley 
170d198b514SPaul Walmsley /* CM2.CORE_CM2 register offsets */
171d198b514SPaul Walmsley #define OMAP4_CM_L3_1_CLKSTCTRL_OFFSET			0x0000
172cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_1_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0000)
173d198b514SPaul Walmsley #define OMAP4_CM_L3_1_DYNAMICDEP_OFFSET			0x0008
174cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_1_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0008)
175d198b514SPaul Walmsley #define OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET		0x0020
176cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_1_L3_1_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0020)
177d198b514SPaul Walmsley #define OMAP4_CM_L3_2_CLKSTCTRL_OFFSET			0x0100
178cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_2_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0100)
179d198b514SPaul Walmsley #define OMAP4_CM_L3_2_DYNAMICDEP_OFFSET			0x0108
180cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_2_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0108)
181d198b514SPaul Walmsley #define OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET		0x0120
182cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_2_L3_2_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0120)
183d198b514SPaul Walmsley #define OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET		0x0128
184cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_2_GPMC_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0128)
185d198b514SPaul Walmsley #define OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET		0x0130
186cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_2_OCMC_RAM_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0130)
187d198b514SPaul Walmsley #define OMAP4_CM_DUCATI_CLKSTCTRL_OFFSET		0x0200
188cdb54c44SPaul Walmsley #define OMAP4430_CM_DUCATI_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0200)
189d198b514SPaul Walmsley #define OMAP4_CM_DUCATI_STATICDEP_OFFSET		0x0204
190cdb54c44SPaul Walmsley #define OMAP4430_CM_DUCATI_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0204)
191d198b514SPaul Walmsley #define OMAP4_CM_DUCATI_DYNAMICDEP_OFFSET		0x0208
192cdb54c44SPaul Walmsley #define OMAP4430_CM_DUCATI_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0208)
193d198b514SPaul Walmsley #define OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET		0x0220
194cdb54c44SPaul Walmsley #define OMAP4430_CM_DUCATI_DUCATI_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0220)
195d198b514SPaul Walmsley #define OMAP4_CM_SDMA_CLKSTCTRL_OFFSET			0x0300
196cdb54c44SPaul Walmsley #define OMAP4430_CM_SDMA_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0300)
197d198b514SPaul Walmsley #define OMAP4_CM_SDMA_STATICDEP_OFFSET			0x0304
198cdb54c44SPaul Walmsley #define OMAP4430_CM_SDMA_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0304)
199d198b514SPaul Walmsley #define OMAP4_CM_SDMA_DYNAMICDEP_OFFSET			0x0308
200cdb54c44SPaul Walmsley #define OMAP4430_CM_SDMA_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0308)
201d198b514SPaul Walmsley #define OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET		0x0320
202cdb54c44SPaul Walmsley #define OMAP4430_CM_SDMA_SDMA_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0320)
203d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_CLKSTCTRL_OFFSET			0x0400
204cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0400)
205d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET		0x0420
206cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_DMM_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0420)
207d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_EMIF_FW_CLKCTRL_OFFSET		0x0428
208cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_EMIF_FW_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0428)
209d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET		0x0430
210cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_EMIF_1_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0430)
211d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET		0x0438
212cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_EMIF_2_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0438)
213d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_DLL_CLKCTRL_OFFSET		0x0440
214cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_DLL_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0440)
215d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_EMIF_H1_CLKCTRL_OFFSET		0x0450
216cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_EMIF_H1_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0450)
217d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_EMIF_H2_CLKCTRL_OFFSET		0x0458
218cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_EMIF_H2_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0458)
219d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_DLL_H_CLKCTRL_OFFSET		0x0460
220cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_DLL_H_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0460)
221d198b514SPaul Walmsley #define OMAP4_CM_D2D_CLKSTCTRL_OFFSET			0x0500
222cdb54c44SPaul Walmsley #define OMAP4430_CM_D2D_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0500)
223d198b514SPaul Walmsley #define OMAP4_CM_D2D_STATICDEP_OFFSET			0x0504
224cdb54c44SPaul Walmsley #define OMAP4430_CM_D2D_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0504)
225d198b514SPaul Walmsley #define OMAP4_CM_D2D_DYNAMICDEP_OFFSET			0x0508
226cdb54c44SPaul Walmsley #define OMAP4430_CM_D2D_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0508)
227d198b514SPaul Walmsley #define OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET		0x0520
228cdb54c44SPaul Walmsley #define OMAP4430_CM_D2D_SAD2D_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0520)
229ad98a18bSBenoit Cousson #define OMAP4_CM_D2D_MODEM_ICR_CLKCTRL_OFFSET		0x0528
230ad98a18bSBenoit Cousson #define OMAP4430_CM_D2D_MODEM_ICR_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0528)
231d198b514SPaul Walmsley #define OMAP4_CM_D2D_SAD2D_FW_CLKCTRL_OFFSET		0x0530
232cdb54c44SPaul Walmsley #define OMAP4430_CM_D2D_SAD2D_FW_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0530)
233d198b514SPaul Walmsley #define OMAP4_CM_L4CFG_CLKSTCTRL_OFFSET			0x0600
234cdb54c44SPaul Walmsley #define OMAP4430_CM_L4CFG_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0600)
235d198b514SPaul Walmsley #define OMAP4_CM_L4CFG_DYNAMICDEP_OFFSET		0x0608
236cdb54c44SPaul Walmsley #define OMAP4430_CM_L4CFG_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0608)
237d198b514SPaul Walmsley #define OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET		0x0620
238cdb54c44SPaul Walmsley #define OMAP4430_CM_L4CFG_L4_CFG_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0620)
239d198b514SPaul Walmsley #define OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET		0x0628
240cdb54c44SPaul Walmsley #define OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0628)
241d198b514SPaul Walmsley #define OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET		0x0630
242cdb54c44SPaul Walmsley #define OMAP4430_CM_L4CFG_MAILBOX_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0630)
243d198b514SPaul Walmsley #define OMAP4_CM_L4CFG_SAR_ROM_CLKCTRL_OFFSET		0x0638
244cdb54c44SPaul Walmsley #define OMAP4430_CM_L4CFG_SAR_ROM_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0638)
245d198b514SPaul Walmsley #define OMAP4_CM_L3INSTR_CLKSTCTRL_OFFSET		0x0700
246cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INSTR_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0700)
247d198b514SPaul Walmsley #define OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET		0x0720
248cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INSTR_L3_3_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0720)
249d198b514SPaul Walmsley #define OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET	0x0728
250cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0728)
251d198b514SPaul Walmsley #define OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET		0x0740
252cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CORE_INST, 0x0740)
253d198b514SPaul Walmsley 
254d198b514SPaul Walmsley /* CM2.IVAHD_CM2 register offsets */
255d198b514SPaul Walmsley #define OMAP4_CM_IVAHD_CLKSTCTRL_OFFSET			0x0000
256cdb54c44SPaul Walmsley #define OMAP4430_CM_IVAHD_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_IVAHD_INST, 0x0000)
257d198b514SPaul Walmsley #define OMAP4_CM_IVAHD_STATICDEP_OFFSET			0x0004
258cdb54c44SPaul Walmsley #define OMAP4430_CM_IVAHD_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_IVAHD_INST, 0x0004)
259d198b514SPaul Walmsley #define OMAP4_CM_IVAHD_DYNAMICDEP_OFFSET		0x0008
260cdb54c44SPaul Walmsley #define OMAP4430_CM_IVAHD_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_IVAHD_INST, 0x0008)
261d198b514SPaul Walmsley #define OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET		0x0020
262cdb54c44SPaul Walmsley #define OMAP4430_CM_IVAHD_IVAHD_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_IVAHD_INST, 0x0020)
263d198b514SPaul Walmsley #define OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET		0x0028
264cdb54c44SPaul Walmsley #define OMAP4430_CM_IVAHD_SL2_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_IVAHD_INST, 0x0028)
265d198b514SPaul Walmsley 
266d198b514SPaul Walmsley /* CM2.CAM_CM2 register offsets */
267d198b514SPaul Walmsley #define OMAP4_CM_CAM_CLKSTCTRL_OFFSET			0x0000
268cdb54c44SPaul Walmsley #define OMAP4430_CM_CAM_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CAM_INST, 0x0000)
269d198b514SPaul Walmsley #define OMAP4_CM_CAM_STATICDEP_OFFSET			0x0004
270cdb54c44SPaul Walmsley #define OMAP4430_CM_CAM_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CAM_INST, 0x0004)
271d198b514SPaul Walmsley #define OMAP4_CM_CAM_DYNAMICDEP_OFFSET			0x0008
272cdb54c44SPaul Walmsley #define OMAP4430_CM_CAM_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CAM_INST, 0x0008)
273d198b514SPaul Walmsley #define OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET			0x0020
274cdb54c44SPaul Walmsley #define OMAP4430_CM_CAM_ISS_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CAM_INST, 0x0020)
275d198b514SPaul Walmsley #define OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET		0x0028
276cdb54c44SPaul Walmsley #define OMAP4430_CM_CAM_FDIF_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CAM_INST, 0x0028)
277d198b514SPaul Walmsley 
278d198b514SPaul Walmsley /* CM2.DSS_CM2 register offsets */
279d198b514SPaul Walmsley #define OMAP4_CM_DSS_CLKSTCTRL_OFFSET			0x0000
280cdb54c44SPaul Walmsley #define OMAP4430_CM_DSS_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_DSS_INST, 0x0000)
281d198b514SPaul Walmsley #define OMAP4_CM_DSS_STATICDEP_OFFSET			0x0004
282cdb54c44SPaul Walmsley #define OMAP4430_CM_DSS_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_DSS_INST, 0x0004)
283d198b514SPaul Walmsley #define OMAP4_CM_DSS_DYNAMICDEP_OFFSET			0x0008
284cdb54c44SPaul Walmsley #define OMAP4430_CM_DSS_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_DSS_INST, 0x0008)
285d198b514SPaul Walmsley #define OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET			0x0020
286cdb54c44SPaul Walmsley #define OMAP4430_CM_DSS_DSS_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_DSS_INST, 0x0020)
287d198b514SPaul Walmsley #define OMAP4_CM_DSS_DEISS_CLKCTRL_OFFSET		0x0028
288cdb54c44SPaul Walmsley #define OMAP4430_CM_DSS_DEISS_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_DSS_INST, 0x0028)
289d198b514SPaul Walmsley 
290d198b514SPaul Walmsley /* CM2.GFX_CM2 register offsets */
291d198b514SPaul Walmsley #define OMAP4_CM_GFX_CLKSTCTRL_OFFSET			0x0000
292cdb54c44SPaul Walmsley #define OMAP4430_CM_GFX_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_GFX_INST, 0x0000)
293d198b514SPaul Walmsley #define OMAP4_CM_GFX_STATICDEP_OFFSET			0x0004
294cdb54c44SPaul Walmsley #define OMAP4430_CM_GFX_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_GFX_INST, 0x0004)
295d198b514SPaul Walmsley #define OMAP4_CM_GFX_DYNAMICDEP_OFFSET			0x0008
296cdb54c44SPaul Walmsley #define OMAP4430_CM_GFX_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_GFX_INST, 0x0008)
297d198b514SPaul Walmsley #define OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET			0x0020
298cdb54c44SPaul Walmsley #define OMAP4430_CM_GFX_GFX_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_GFX_INST, 0x0020)
299d198b514SPaul Walmsley 
300d198b514SPaul Walmsley /* CM2.L3INIT_CM2 register offsets */
301d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_CLKSTCTRL_OFFSET		0x0000
302cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0000)
303d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_STATICDEP_OFFSET		0x0004
304cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0004)
305d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_DYNAMICDEP_OFFSET		0x0008
306cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0008)
307d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET		0x0028
308cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_MMC1_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0028)
309d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET		0x0030
310cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_MMC2_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0030)
311d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET		0x0038
312cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_HSI_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0038)
313d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_UNIPRO1_CLKCTRL_OFFSET		0x0040
314cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_UNIPRO1_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0040)
315d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET		0x0058
316cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0058)
317d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET		0x0060
318cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0060)
319d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET		0x0068
320cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0068)
321d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_P1500_CLKCTRL_OFFSET		0x0078
322cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_P1500_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0078)
323d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_EMAC_CLKCTRL_OFFSET		0x0080
324cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_EMAC_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0080)
325d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_SATA_CLKCTRL_OFFSET		0x0088
326cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_SATA_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0088)
327d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_TPPSS_CLKCTRL_OFFSET		0x0090
328cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_TPPSS_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0090)
329d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_PCIESS_CLKCTRL_OFFSET		0x0098
330cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_PCIESS_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x0098)
331d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_CCPTX_CLKCTRL_OFFSET		0x00a8
332cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_CCPTX_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x00a8)
333d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_XHPI_CLKCTRL_OFFSET		0x00c0
334cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_XHPI_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x00c0)
335d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_MMC6_CLKCTRL_OFFSET		0x00c8
336cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_MMC6_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x00c8)
337d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET	0x00d0
338cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_USB_HOST_FS_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x00d0)
339d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET	0x00e0
340cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL	OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L3INIT_INST, 0x00e0)
341d198b514SPaul Walmsley 
342d198b514SPaul Walmsley /* CM2.L4PER_CM2 register offsets */
343d198b514SPaul Walmsley #define OMAP4_CM_L4PER_CLKSTCTRL_OFFSET			0x0000
344cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0000)
345d198b514SPaul Walmsley #define OMAP4_CM_L4PER_DYNAMICDEP_OFFSET		0x0008
346cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0008)
347d198b514SPaul Walmsley #define OMAP4_CM_L4PER_ADC_CLKCTRL_OFFSET		0x0020
348cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_ADC_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0020)
349d198b514SPaul Walmsley #define OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET		0x0028
350cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0028)
351d198b514SPaul Walmsley #define OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET		0x0030
352cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0030)
353d198b514SPaul Walmsley #define OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET		0x0038
354cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0038)
355d198b514SPaul Walmsley #define OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET		0x0040
356cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0040)
357d198b514SPaul Walmsley #define OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET		0x0048
358cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0048)
359d198b514SPaul Walmsley #define OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET		0x0050
360cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0050)
361d198b514SPaul Walmsley #define OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET		0x0058
362cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_ELM_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0058)
363d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET		0x0060
364cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO2_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0060)
365d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET		0x0068
366cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO3_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0068)
367d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET		0x0070
368cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO4_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0070)
369d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET		0x0078
370cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO5_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0078)
371d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET		0x0080
372cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO6_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0080)
373d198b514SPaul Walmsley #define OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET		0x0088
374cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_HDQ1W_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0088)
375d198b514SPaul Walmsley #define OMAP4_CM_L4PER_HECC1_CLKCTRL_OFFSET		0x0090
376cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_HECC1_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0090)
377d198b514SPaul Walmsley #define OMAP4_CM_L4PER_HECC2_CLKCTRL_OFFSET		0x0098
378cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_HECC2_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0098)
379d198b514SPaul Walmsley #define OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET		0x00a0
380cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_I2C1_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00a0)
381d198b514SPaul Walmsley #define OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET		0x00a8
382cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_I2C2_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00a8)
383d198b514SPaul Walmsley #define OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET		0x00b0
384cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_I2C3_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00b0)
385d198b514SPaul Walmsley #define OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET		0x00b8
386cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_I2C4_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00b8)
387d198b514SPaul Walmsley #define OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET		0x00c0
388cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_L4PER_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00c0)
389d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MCASP2_CLKCTRL_OFFSET		0x00d0
390cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MCASP2_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00d0)
391d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MCASP3_CLKCTRL_OFFSET		0x00d8
392cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MCASP3_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00d8)
393d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET		0x00e0
394cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MCBSP4_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00e0)
395d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MGATE_CLKCTRL_OFFSET		0x00e8
396cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MGATE_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00e8)
397d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET		0x00f0
398cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MCSPI1_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00f0)
399d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET		0x00f8
400cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MCSPI2_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x00f8)
401d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET		0x0100
402cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MCSPI3_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0100)
403d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET		0x0108
404cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MCSPI4_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0108)
405d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET		0x0120
406cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MMCSD3_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0120)
407d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET		0x0128
408cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MMCSD4_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0128)
409d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MSPROHG_CLKCTRL_OFFSET		0x0130
410cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MSPROHG_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0130)
411d198b514SPaul Walmsley #define OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET		0x0138
412cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_SLIMBUS2_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0138)
413d198b514SPaul Walmsley #define OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET		0x0140
414cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_UART1_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0140)
415d198b514SPaul Walmsley #define OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET		0x0148
416cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_UART2_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0148)
417d198b514SPaul Walmsley #define OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET		0x0150
418cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_UART3_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0150)
419d198b514SPaul Walmsley #define OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET		0x0158
420cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_UART4_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0158)
421d198b514SPaul Walmsley #define OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET		0x0160
422cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_MMCSD5_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0160)
423d198b514SPaul Walmsley #define OMAP4_CM_L4PER_I2C5_CLKCTRL_OFFSET		0x0168
424cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_I2C5_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0168)
425d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_CLKSTCTRL_OFFSET			0x0180
426cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0180)
427d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_STATICDEP_OFFSET			0x0184
428cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_STATICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0184)
429d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_DYNAMICDEP_OFFSET		0x0188
430cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_DYNAMICDEP			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x0188)
431d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET		0x01a0
432cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_AES1_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x01a0)
433d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET		0x01a8
434cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_AES2_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x01a8)
435d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET		0x01b0
436cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_DES3DES_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x01b0)
437d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_PKAEIP29_CLKCTRL_OFFSET		0x01b8
438cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_PKAEIP29_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x01b8)
439d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_RNG_CLKCTRL_OFFSET		0x01c0
440cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_RNG_CLKCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x01c0)
441d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET		0x01c8
442cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_SHA2MD51_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x01c8)
443d198b514SPaul Walmsley #define OMAP4_CM_L4SEC_CRYPTODMA_CLKCTRL_OFFSET		0x01d8
444cdb54c44SPaul Walmsley #define OMAP4430_CM_L4SEC_CRYPTODMA_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_L4PER_INST, 0x01d8)
445d198b514SPaul Walmsley 
446d198b514SPaul Walmsley /* CM2.CEFUSE_CM2 register offsets */
447d198b514SPaul Walmsley #define OMAP4_CM_CEFUSE_CLKSTCTRL_OFFSET		0x0000
448cdb54c44SPaul Walmsley #define OMAP4430_CM_CEFUSE_CLKSTCTRL			OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CEFUSE_INST, 0x0000)
449d198b514SPaul Walmsley #define OMAP4_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET		0x0020
450cdb54c44SPaul Walmsley #define OMAP4430_CM_CEFUSE_CEFUSE_CLKCTRL		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_CEFUSE_INST, 0x0020)
451d198b514SPaul Walmsley 
452d198b514SPaul Walmsley /* CM2.RESTORE_CM2 register offsets */
453d198b514SPaul Walmsley #define OMAP4_CM_L3_1_CLKSTCTRL_RESTORE_OFFSET		0x0000
454cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_1_CLKSTCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0000)
455d198b514SPaul Walmsley #define OMAP4_CM_L3_2_CLKSTCTRL_RESTORE_OFFSET		0x0004
456cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_2_CLKSTCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0004)
457d198b514SPaul Walmsley #define OMAP4_CM_L4CFG_CLKSTCTRL_RESTORE_OFFSET		0x0008
458cdb54c44SPaul Walmsley #define OMAP4430_CM_L4CFG_CLKSTCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0008)
459d198b514SPaul Walmsley #define OMAP4_CM_MEMIF_CLKSTCTRL_RESTORE_OFFSET		0x000c
460cdb54c44SPaul Walmsley #define OMAP4430_CM_MEMIF_CLKSTCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x000c)
461d198b514SPaul Walmsley #define OMAP4_CM_L4PER_CLKSTCTRL_RESTORE_OFFSET		0x0010
462cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_CLKSTCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0010)
463d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_CLKSTCTRL_RESTORE_OFFSET	0x0014
464cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_CLKSTCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0014)
465d198b514SPaul Walmsley #define OMAP4_CM_L3INSTR_L3_3_CLKCTRL_RESTORE_OFFSET	0x0018
466cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INSTR_L3_3_CLKCTRL_RESTORE	OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0018)
467d198b514SPaul Walmsley #define OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE_OFFSET	0x001c
468cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE	OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x001c)
469d198b514SPaul Walmsley #define OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE_OFFSET	0x0020
470cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE	OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0020)
471d198b514SPaul Walmsley #define OMAP4_CM_CM2_PROFILING_CLKCTRL_RESTORE_OFFSET	0x0024
472cdb54c44SPaul Walmsley #define OMAP4430_CM_CM2_PROFILING_CLKCTRL_RESTORE	OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0024)
473d198b514SPaul Walmsley #define OMAP4_CM_D2D_STATICDEP_RESTORE_OFFSET		0x0028
474cdb54c44SPaul Walmsley #define OMAP4430_CM_D2D_STATICDEP_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0028)
475d198b514SPaul Walmsley #define OMAP4_CM_L3_1_DYNAMICDEP_RESTORE_OFFSET		0x002c
476cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_1_DYNAMICDEP_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x002c)
477d198b514SPaul Walmsley #define OMAP4_CM_L3_2_DYNAMICDEP_RESTORE_OFFSET		0x0030
478cdb54c44SPaul Walmsley #define OMAP4430_CM_L3_2_DYNAMICDEP_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0030)
479d198b514SPaul Walmsley #define OMAP4_CM_D2D_DYNAMICDEP_RESTORE_OFFSET		0x0034
480cdb54c44SPaul Walmsley #define OMAP4430_CM_D2D_DYNAMICDEP_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0034)
481d198b514SPaul Walmsley #define OMAP4_CM_L4CFG_DYNAMICDEP_RESTORE_OFFSET	0x0038
482cdb54c44SPaul Walmsley #define OMAP4430_CM_L4CFG_DYNAMICDEP_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0038)
483d198b514SPaul Walmsley #define OMAP4_CM_L4PER_DYNAMICDEP_RESTORE_OFFSET	0x003c
484cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_DYNAMICDEP_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x003c)
485d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO2_CLKCTRL_RESTORE_OFFSET	0x0040
486cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO2_CLKCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0040)
487d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO3_CLKCTRL_RESTORE_OFFSET	0x0044
488cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO3_CLKCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0044)
489d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO4_CLKCTRL_RESTORE_OFFSET	0x0048
490cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO4_CLKCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0048)
491d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO5_CLKCTRL_RESTORE_OFFSET	0x004c
492cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO5_CLKCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x004c)
493d198b514SPaul Walmsley #define OMAP4_CM_L4PER_GPIO6_CLKCTRL_RESTORE_OFFSET	0x0050
494cdb54c44SPaul Walmsley #define OMAP4430_CM_L4PER_GPIO6_CLKCTRL_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0050)
495d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_RESTORE_OFFSET	0x0054
496cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_USB_HOST_CLKCTRL_RESTORE	OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0054)
497d198b514SPaul Walmsley #define OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_RESTORE_OFFSET	0x0058
498cdb54c44SPaul Walmsley #define OMAP4430_CM_L3INIT_USB_TLL_CLKCTRL_RESTORE	OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x0058)
499d198b514SPaul Walmsley #define OMAP4_CM_SDMA_STATICDEP_RESTORE_OFFSET		0x005c
500cdb54c44SPaul Walmsley #define OMAP4430_CM_SDMA_STATICDEP_RESTORE		OMAP44XX_CM2_REGADDR(OMAP4430_CM2_RESTORE_INST, 0x005c)
5012ace831fSPaul Walmsley 
5022ace831fSPaul Walmsley /* Function prototypes */
5032ace831fSPaul Walmsley extern u32 omap4_cm2_read_inst_reg(s16 inst, u16 idx);
5042ace831fSPaul Walmsley extern void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 idx);
5052ace831fSPaul Walmsley extern u32 omap4_cm2_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx);
5062ace831fSPaul Walmsley 
507d198b514SPaul Walmsley #endif
508