xref: /openbmc/linux/arch/arm/mach-omap2/cm81xx.h (revision fadbafc1)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Clock domain register offsets for TI81XX.
4  *
5  * Copyright (C) 2010 Texas Instruments, Inc. - https://www.ti.com/
6  * Copyright (C) 2013 SKTB SKiT, http://www.skitlab.ru/
7  */
8 
9 #ifndef __ARCH_ARM_MACH_OMAP2_CM_TI81XX_H
10 #define __ARCH_ARM_MACH_OMAP2_CM_TI81XX_H
11 
12 /* TI81XX common CM module offsets */
13 #define TI81XX_CM_ACTIVE_MOD			0x0400	/* 256B */
14 #define TI81XX_CM_DEFAULT_MOD			0x0500	/* 256B */
15 #define TI81XX_CM_ALWON_MOD			0x1400	/* 1KB */
16 #define TI81XX_CM_SGX_MOD			0x0900	/* 256B */
17 
18 /* TI816X CM module offsets */
19 #define TI816X_CM_IVAHD0_MOD			0x0600	/* 256B */
20 #define TI816X_CM_IVAHD1_MOD			0x0700	/* 256B */
21 #define TI816X_CM_IVAHD2_MOD			0x0800	/* 256B */
22 
23 /* ALWON */
24 #define TI81XX_CM_ALWON_L3_SLOW_CLKDM		0x0000
25 #define TI81XX_CM_ALWON_L3_MED_CLKDM		0x0004
26 #define TI81XX_CM_ETHERNET_CLKDM		0x0004
27 #define TI81XX_CM_MMU_CLKDM			0x000C
28 #define TI81XX_CM_MMUCFG_CLKDM			0x0010
29 #define TI81XX_CM_ALWON_MPU_CLKDM		0x001C
30 #define TI81XX_CM_ALWON_L3_FAST_CLKDM		0x0030
31 
32 /* ACTIVE */
33 #define TI816X_CM_ACTIVE_GEM_CLKDM		0x0000
34 
35 /* IVAHD0 */
36 #define TI816X_CM_IVAHD0_CLKDM			0x0000
37 
38 /* IVAHD1 */
39 #define TI816X_CM_IVAHD1_CLKDM			0x0000
40 
41 /* IVAHD2 */
42 #define TI816X_CM_IVAHD2_CLKDM			0x0000
43 
44 /* SGX */
45 #define TI816X_CM_SGX_CLKDM			0x0000
46 
47 /* DEFAULT */
48 #define TI816X_CM_DEFAULT_L3_MED_CLKDM		0x0004
49 #define TI816X_CM_DEFAULT_PCI_CLKDM		0x0010
50 #define TI816X_CM_DEFAULT_L3_SLOW_CLKDM		0x0014
51 #define TI816X_CM_DEFAULT_DUCATI_CLKDM		0x0018
52 #define TI816X_CM_DEFAULT_SATA_CLKDM		0x0060
53 
54 #endif
55