Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved. |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ARCH_ARM_MACH_MX6_CCM_REGS_H__ |
| 8 | #define __ARCH_ARM_MACH_MX6_CCM_REGS_H__ |
| 9 | |
Fabio Estevam | d92fe0e | 2013-04-17 13:09:56 +0000 | [diff] [blame] | 10 | #define CCM_CCOSR 0x020c4060 |
Eric Nelson | 49d097f | 2013-02-19 10:07:02 +0000 | [diff] [blame] | 11 | #define CCM_CCGR0 0x020C4068 |
| 12 | #define CCM_CCGR1 0x020C406c |
| 13 | #define CCM_CCGR2 0x020C4070 |
| 14 | #define CCM_CCGR3 0x020C4074 |
| 15 | #define CCM_CCGR4 0x020C4078 |
| 16 | #define CCM_CCGR5 0x020C407c |
| 17 | #define CCM_CCGR6 0x020C4080 |
| 18 | |
| 19 | #define PMU_MISC2 0x020C8170 |
| 20 | |
| 21 | #ifndef __ASSEMBLY__ |
Fabio Estevam | 6479f51 | 2012-04-29 08:11:13 +0000 | [diff] [blame] | 22 | struct mxc_ccm_reg { |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 23 | u32 ccr; /* 0x0000 */ |
| 24 | u32 ccdr; |
| 25 | u32 csr; |
| 26 | u32 ccsr; |
| 27 | u32 cacrr; /* 0x0010*/ |
| 28 | u32 cbcdr; |
| 29 | u32 cbcmr; |
| 30 | u32 cscmr1; |
| 31 | u32 cscmr2; /* 0x0020 */ |
| 32 | u32 cscdr1; |
| 33 | u32 cs1cdr; |
| 34 | u32 cs2cdr; |
| 35 | u32 cdcdr; /* 0x0030 */ |
Eric Nelson | 4b54551 | 2012-09-17 10:20:50 +0000 | [diff] [blame] | 36 | u32 chsccdr; |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 37 | u32 cscdr2; |
| 38 | u32 cscdr3; |
| 39 | u32 cscdr4; /* 0x0040 */ |
| 40 | u32 resv0; |
| 41 | u32 cdhipr; |
| 42 | u32 cdcr; |
| 43 | u32 ctor; /* 0x0050 */ |
| 44 | u32 clpcr; |
| 45 | u32 cisr; |
| 46 | u32 cimr; |
| 47 | u32 ccosr; /* 0x0060 */ |
| 48 | u32 cgpr; |
| 49 | u32 CCGR0; |
| 50 | u32 CCGR1; |
| 51 | u32 CCGR2; /* 0x0070 */ |
| 52 | u32 CCGR3; |
| 53 | u32 CCGR4; |
| 54 | u32 CCGR5; |
| 55 | u32 CCGR6; /* 0x0080 */ |
| 56 | u32 CCGR7; |
| 57 | u32 cmeor; |
| 58 | u32 resv[0xfdd]; |
| 59 | u32 analog_pll_sys; /* 0x4000 */ |
| 60 | u32 analog_pll_sys_set; |
| 61 | u32 analog_pll_sys_clr; |
| 62 | u32 analog_pll_sys_tog; |
| 63 | u32 analog_usb1_pll_480_ctrl; /* 0x4010 */ |
| 64 | u32 analog_usb1_pll_480_ctrl_set; |
| 65 | u32 analog_usb1_pll_480_ctrl_clr; |
| 66 | u32 analog_usb1_pll_480_ctrl_tog; |
| 67 | u32 analog_reserved0[4]; |
| 68 | u32 analog_pll_528; /* 0x4030 */ |
| 69 | u32 analog_pll_528_set; |
| 70 | u32 analog_pll_528_clr; |
| 71 | u32 analog_pll_528_tog; |
| 72 | u32 analog_pll_528_ss; /* 0x4040 */ |
| 73 | u32 analog_reserved1[3]; |
| 74 | u32 analog_pll_528_num; /* 0x4050 */ |
| 75 | u32 analog_reserved2[3]; |
| 76 | u32 analog_pll_528_denom; /* 0x4060 */ |
| 77 | u32 analog_reserved3[3]; |
| 78 | u32 analog_pll_audio; /* 0x4070 */ |
| 79 | u32 analog_pll_audio_set; |
| 80 | u32 analog_pll_audio_clr; |
| 81 | u32 analog_pll_audio_tog; |
| 82 | u32 analog_pll_audio_num; /* 0x4080*/ |
| 83 | u32 analog_reserved4[3]; |
| 84 | u32 analog_pll_audio_denom; /* 0x4090 */ |
| 85 | u32 analog_reserved5[3]; |
| 86 | u32 analog_pll_video; /* 0x40a0 */ |
| 87 | u32 analog_pll_video_set; |
| 88 | u32 analog_pll_video_clr; |
| 89 | u32 analog_pll_video_tog; |
| 90 | u32 analog_pll_video_num; /* 0x40b0 */ |
| 91 | u32 analog_reserved6[3]; |
Anatolij Gustschin | b02aedd | 2014-10-16 20:37:25 +0200 | [diff] [blame] | 92 | u32 analog_pll_video_denom; /* 0x40c0 */ |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 93 | u32 analog_reserved7[7]; |
| 94 | u32 analog_pll_enet; /* 0x40e0 */ |
| 95 | u32 analog_pll_enet_set; |
| 96 | u32 analog_pll_enet_clr; |
| 97 | u32 analog_pll_enet_tog; |
| 98 | u32 analog_pfd_480; /* 0x40f0 */ |
| 99 | u32 analog_pfd_480_set; |
| 100 | u32 analog_pfd_480_clr; |
| 101 | u32 analog_pfd_480_tog; |
| 102 | u32 analog_pfd_528; /* 0x4100 */ |
| 103 | u32 analog_pfd_528_set; |
| 104 | u32 analog_pfd_528_clr; |
| 105 | u32 analog_pfd_528_tog; |
| 106 | }; |
Eric Nelson | 49d097f | 2013-02-19 10:07:02 +0000 | [diff] [blame] | 107 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 108 | |
| 109 | /* Define the bits in register CCR */ |
| 110 | #define MXC_CCM_CCR_RBC_EN (1 << 27) |
| 111 | #define MXC_CCM_CCR_REG_BYPASS_CNT_MASK (0x3F << 21) |
| 112 | #define MXC_CCM_CCR_REG_BYPASS_CNT_OFFSET 21 |
| 113 | #define MXC_CCM_CCR_WB_COUNT_MASK 0x7 |
| 114 | #define MXC_CCM_CCR_WB_COUNT_OFFSET (1 << 16) |
| 115 | #define MXC_CCM_CCR_COSC_EN (1 << 12) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 116 | #ifdef CONFIG_MX6SX |
| 117 | #define MXC_CCM_CCR_OSCNT_MASK 0x7F |
| 118 | #else |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 119 | #define MXC_CCM_CCR_OSCNT_MASK 0xFF |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 120 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 121 | #define MXC_CCM_CCR_OSCNT_OFFSET 0 |
| 122 | |
| 123 | /* Define the bits in register CCDR */ |
| 124 | #define MXC_CCM_CCDR_MMDC_CH1_HS_MASK (1 << 16) |
| 125 | #define MXC_CCM_CCDR_MMDC_CH0_HS_MASK (1 << 17) |
| 126 | |
| 127 | /* Define the bits in register CSR */ |
| 128 | #define MXC_CCM_CSR_COSC_READY (1 << 5) |
| 129 | #define MXC_CCM_CSR_REF_EN_B (1 << 0) |
| 130 | |
| 131 | /* Define the bits in register CCSR */ |
| 132 | #define MXC_CCM_CCSR_PDF_540M_AUTO_DIS (1 << 15) |
| 133 | #define MXC_CCM_CCSR_PDF_720M_AUTO_DIS (1 << 14) |
| 134 | #define MXC_CCM_CCSR_PDF_454M_AUTO_DIS (1 << 13) |
| 135 | #define MXC_CCM_CCSR_PDF_508M_AUTO_DIS (1 << 12) |
| 136 | #define MXC_CCM_CCSR_PDF_594M_AUTO_DIS (1 << 11) |
| 137 | #define MXC_CCM_CCSR_PDF_352M_AUTO_DIS (1 << 10) |
| 138 | #define MXC_CCM_CCSR_PDF_400M_AUTO_DIS (1 << 9) |
| 139 | #define MXC_CCM_CCSR_STEP_SEL (1 << 8) |
| 140 | #define MXC_CCM_CCSR_PLL1_SW_CLK_SEL (1 << 2) |
| 141 | #define MXC_CCM_CCSR_PLL2_SW_CLK_SEL (1 << 1) |
| 142 | #define MXC_CCM_CCSR_PLL3_SW_CLK_SEL (1 << 0) |
| 143 | |
| 144 | /* Define the bits in register CACRR */ |
| 145 | #define MXC_CCM_CACRR_ARM_PODF_OFFSET 0 |
| 146 | #define MXC_CCM_CACRR_ARM_PODF_MASK 0x7 |
| 147 | |
| 148 | /* Define the bits in register CBCDR */ |
| 149 | #define MXC_CCM_CBCDR_PERIPH_CLK2_PODF_MASK (0x7 << 27) |
| 150 | #define MXC_CCM_CBCDR_PERIPH_CLK2_PODF_OFFSET 27 |
| 151 | #define MXC_CCM_CBCDR_PERIPH2_CLK2_SEL (1 << 26) |
| 152 | #define MXC_CCM_CBCDR_PERIPH_CLK_SEL (1 << 25) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 153 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 154 | #define MXC_CCM_CBCDR_MMDC_CH0_PODF_MASK (0x7 << 19) |
| 155 | #define MXC_CCM_CBCDR_MMDC_CH0_PODF_OFFSET 19 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 156 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 157 | #define MXC_CCM_CBCDR_AXI_PODF_MASK (0x7 << 16) |
| 158 | #define MXC_CCM_CBCDR_AXI_PODF_OFFSET 16 |
| 159 | #define MXC_CCM_CBCDR_AHB_PODF_MASK (0x7 << 10) |
| 160 | #define MXC_CCM_CBCDR_AHB_PODF_OFFSET 10 |
| 161 | #define MXC_CCM_CBCDR_IPG_PODF_MASK (0x3 << 8) |
| 162 | #define MXC_CCM_CBCDR_IPG_PODF_OFFSET 8 |
| 163 | #define MXC_CCM_CBCDR_AXI_ALT_SEL (1 << 7) |
| 164 | #define MXC_CCM_CBCDR_AXI_SEL (1 << 6) |
| 165 | #define MXC_CCM_CBCDR_MMDC_CH1_PODF_MASK (0x7 << 3) |
| 166 | #define MXC_CCM_CBCDR_MMDC_CH1_PODF_OFFSET 3 |
| 167 | #define MXC_CCM_CBCDR_PERIPH2_CLK2_PODF_MASK (0x7 << 0) |
| 168 | #define MXC_CCM_CBCDR_PERIPH2_CLK2_PODF_OFFSET 0 |
| 169 | |
| 170 | /* Define the bits in register CBCMR */ |
| 171 | #define MXC_CCM_CBCMR_GPU3D_SHADER_PODF_MASK (0x7 << 29) |
| 172 | #define MXC_CCM_CBCMR_GPU3D_SHADER_PODF_OFFSET 29 |
| 173 | #define MXC_CCM_CBCMR_GPU3D_CORE_PODF_MASK (0x7 << 26) |
| 174 | #define MXC_CCM_CBCMR_GPU3D_CORE_PODF_OFFSET 26 |
| 175 | #define MXC_CCM_CBCMR_GPU2D_CORE_PODF_MASK (0x7 << 23) |
| 176 | #define MXC_CCM_CBCMR_GPU2D_CORE_PODF_OFFSET 23 |
| 177 | #define MXC_CCM_CBCMR_PRE_PERIPH2_CLK_SEL_MASK (0x3 << 21) |
| 178 | #define MXC_CCM_CBCMR_PRE_PERIPH2_CLK_SEL_OFFSET 21 |
| 179 | #define MXC_CCM_CBCMR_PRE_PERIPH2_CLK2_SEL (1 << 20) |
| 180 | #define MXC_CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK (0x3 << 18) |
| 181 | #define MXC_CCM_CBCMR_PRE_PERIPH_CLK_SEL_OFFSET 18 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 182 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 183 | #define MXC_CCM_CBCMR_GPU2D_CLK_SEL_MASK (0x3 << 16) |
| 184 | #define MXC_CCM_CBCMR_GPU2D_CLK_SEL_OFFSET 16 |
| 185 | #define MXC_CCM_CBCMR_VPU_AXI_CLK_SEL_MASK (0x3 << 14) |
| 186 | #define MXC_CCM_CBCMR_VPU_AXI_CLK_SEL_OFFSET 14 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 187 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 188 | #define MXC_CCM_CBCMR_PERIPH_CLK2_SEL_MASK (0x3 << 12) |
| 189 | #define MXC_CCM_CBCMR_PERIPH_CLK2_SEL_OFFSET 12 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 190 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 191 | #define MXC_CCM_CBCMR_VDOAXI_CLK_SEL (1 << 11) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 192 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 193 | #define MXC_CCM_CBCMR_PCIE_AXI_CLK_SEL (1 << 10) |
| 194 | #define MXC_CCM_CBCMR_GPU3D_SHADER_CLK_SEL_MASK (0x3 << 8) |
| 195 | #define MXC_CCM_CBCMR_GPU3D_SHADER_CLK_SEL_OFFSET 8 |
| 196 | #define MXC_CCM_CBCMR_GPU3D_CORE_CLK_SEL_MASK (0x3 << 4) |
| 197 | #define MXC_CCM_CBCMR_GPU3D_CORE_CLK_SEL_OFFSET 4 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 198 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 199 | #define MXC_CCM_CBCMR_GPU3D_AXI_CLK_SEL (1 << 1) |
| 200 | #define MXC_CCM_CBCMR_GPU2D_AXI_CLK_SEL (1 << 0) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 201 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 202 | |
| 203 | /* Define the bits in register CSCMR1 */ |
| 204 | #define MXC_CCM_CSCMR1_ACLK_EMI_SLOW_MASK (0x3 << 29) |
| 205 | #define MXC_CCM_CSCMR1_ACLK_EMI_SLOW_OFFSET 29 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 206 | #ifdef CONFIG_MX6SX |
| 207 | #define MXC_CCM_CSCMR1_QSPI1_PODF_MASK (0x7 << 26) |
| 208 | #define MXC_CCM_CSCMR1_QSPI1_PODF_OFFSET 26 |
| 209 | #else |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 210 | #define MXC_CCM_CSCMR1_ACLK_EMI_MASK (0x3 << 27) |
| 211 | #define MXC_CCM_CSCMR1_ACLK_EMI_OFFSET 27 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 212 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 213 | #define MXC_CCM_CSCMR1_ACLK_EMI_SLOW_PODF_MASK (0x7 << 23) |
| 214 | #define MXC_CCM_CSCMR1_ACLK_EMI_SLOW_PODF_OFFSET 23 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 215 | /* ACLK_EMI_PODF is LCFIF2_PODF on MX6SX */ |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 216 | #define MXC_CCM_CSCMR1_ACLK_EMI_PODF_MASK (0x7 << 20) |
| 217 | #define MXC_CCM_CSCMR1_ACLK_EMI_PODF_OFFSET 20 |
| 218 | #define MXC_CCM_CSCMR1_USDHC4_CLK_SEL (1 << 19) |
| 219 | #define MXC_CCM_CSCMR1_USDHC3_CLK_SEL (1 << 18) |
| 220 | #define MXC_CCM_CSCMR1_USDHC2_CLK_SEL (1 << 17) |
| 221 | #define MXC_CCM_CSCMR1_USDHC1_CLK_SEL (1 << 16) |
| 222 | #define MXC_CCM_CSCMR1_SSI3_CLK_SEL_MASK (0x3 << 14) |
| 223 | #define MXC_CCM_CSCMR1_SSI3_CLK_SEL_OFFSET 14 |
| 224 | #define MXC_CCM_CSCMR1_SSI2_CLK_SEL_MASK (0x3 << 12) |
| 225 | #define MXC_CCM_CSCMR1_SSI2_CLK_SEL_OFFSET 12 |
| 226 | #define MXC_CCM_CSCMR1_SSI1_CLK_SEL_MASK (0x3 << 10) |
| 227 | #define MXC_CCM_CSCMR1_SSI1_CLK_SEL_OFFSET 10 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 228 | #ifdef CONFIG_MX6SX |
| 229 | #define MXC_CCM_CSCMR1_QSPI1_CLK_SEL_MASK (0x7 << 7) |
| 230 | #define MXC_CCM_CSCMR1_QSPI1_CLK_SEL_OFFSET 7 |
Ye.Li | ae88eb1 | 2014-10-30 18:20:56 +0800 | [diff] [blame] | 231 | #endif |
| 232 | #if (defined(CONFIG_MX6SL) || defined(CONFIG_MX6SX)) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 233 | #define MXC_CCM_CSCMR1_PER_CLK_SEL_MASK (1 << 6) |
| 234 | #define MXC_CCM_CSCMR1_PER_CLK_SEL_OFFSET 6 |
| 235 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 236 | #define MXC_CCM_CSCMR1_PERCLK_PODF_MASK 0x3F |
| 237 | |
| 238 | /* Define the bits in register CSCMR2 */ |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 239 | #ifdef CONFIG_MX6SX |
| 240 | #define MXC_CCM_CSCMR2_VID_CLK_SEL_MASK (0x7 << 21) |
| 241 | #define MXC_CCM_CSCMR2_VID_CLK_SEL_OFFSET 21 |
| 242 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 243 | #define MXC_CCM_CSCMR2_ESAI_PRE_SEL_MASK (0x3 << 19) |
| 244 | #define MXC_CCM_CSCMR2_ESAI_PRE_SEL_OFFSET 19 |
| 245 | #define MXC_CCM_CSCMR2_LDB_DI1_IPU_DIV (1 << 11) |
| 246 | #define MXC_CCM_CSCMR2_LDB_DI0_IPU_DIV (1 << 10) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 247 | #ifdef CONFIG_MX6SX |
| 248 | #define MXC_CCM_CSCMR2_CAN_CLK_SEL_MASK (0x3 << 8) |
| 249 | #define MXC_CCM_CSCMR2_CAN_CLK_SEL_OFFSET 8 |
| 250 | #define MXC_CCM_CSCMR2_CAN_CLK_PODF_MASK (0x3F << 2) |
| 251 | #define MXC_CCM_CSCMR2_CAN_CLK_PODF_OFFSET 2 |
| 252 | #else |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 253 | #define MXC_CCM_CSCMR2_CAN_CLK_SEL_MASK (0x3F << 2) |
| 254 | #define MXC_CCM_CSCMR2_CAN_CLK_SEL_OFFSET 2 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 255 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 256 | |
| 257 | /* Define the bits in register CSCDR1 */ |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 258 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 259 | #define MXC_CCM_CSCDR1_VPU_AXI_PODF_MASK (0x7 << 25) |
| 260 | #define MXC_CCM_CSCDR1_VPU_AXI_PODF_OFFSET 25 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 261 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 262 | #define MXC_CCM_CSCDR1_USDHC4_PODF_MASK (0x7 << 22) |
| 263 | #define MXC_CCM_CSCDR1_USDHC4_PODF_OFFSET 22 |
| 264 | #define MXC_CCM_CSCDR1_USDHC3_PODF_MASK (0x7 << 19) |
| 265 | #define MXC_CCM_CSCDR1_USDHC3_PODF_OFFSET 19 |
| 266 | #define MXC_CCM_CSCDR1_USDHC2_PODF_MASK (0x7 << 16) |
| 267 | #define MXC_CCM_CSCDR1_USDHC2_PODF_OFFSET 16 |
| 268 | #define MXC_CCM_CSCDR1_USDHC1_PODF_MASK (0x7 << 11) |
| 269 | #define MXC_CCM_CSCDR1_USDHC1_PODF_OFFSET 11 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 270 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 271 | #define MXC_CCM_CSCDR1_USBOH3_CLK_PRED_OFFSET 8 |
| 272 | #define MXC_CCM_CSCDR1_USBOH3_CLK_PRED_MASK (0x7 << 8) |
| 273 | #define MXC_CCM_CSCDR1_USBOH3_CLK_PODF_OFFSET 6 |
| 274 | #define MXC_CCM_CSCDR1_USBOH3_CLK_PODF_MASK (0x3 << 6) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 275 | #endif |
Fabio Estevam | f7b9ac2 | 2013-04-10 09:32:57 +0000 | [diff] [blame] | 276 | #ifdef CONFIG_MX6SL |
| 277 | #define MXC_CCM_CSCDR1_UART_CLK_PODF_MASK 0x1F |
| 278 | #define MXC_CCM_CSCDR1_UART_CLK_SEL (1 << 6) |
| 279 | #else |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 280 | #define MXC_CCM_CSCDR1_UART_CLK_PODF_MASK 0x3F |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 281 | #ifdef CONFIG_MX6SX |
| 282 | #define MXC_CCM_CSCDR1_UART_CLK_SEL (1 << 6) |
| 283 | #endif |
Fabio Estevam | f7b9ac2 | 2013-04-10 09:32:57 +0000 | [diff] [blame] | 284 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 285 | #define MXC_CCM_CSCDR1_UART_CLK_PODF_OFFSET 0 |
| 286 | |
| 287 | /* Define the bits in register CS1CDR */ |
| 288 | #define MXC_CCM_CS1CDR_ESAI_CLK_PODF_MASK (0x3F << 25) |
| 289 | #define MXC_CCM_CS1CDR_ESAI_CLK_PODF_OFFSET 25 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 290 | #define MXC_CCM_CS1CDR_SSI3_CLK_PRED_MASK (0x7 << 22) |
| 291 | #define MXC_CCM_CS1CDR_SSI3_CLK_PRED_OFFSET 22 |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 292 | #define MXC_CCM_CS1CDR_SSI3_CLK_PODF_MASK (0x3F << 16) |
| 293 | #define MXC_CCM_CS1CDR_SSI3_CLK_PODF_OFFSET 16 |
| 294 | #define MXC_CCM_CS1CDR_ESAI_CLK_PRED_MASK (0x3 << 9) |
| 295 | #define MXC_CCM_CS1CDR_ESAI_CLK_PRED_OFFSET 9 |
| 296 | #define MXC_CCM_CS1CDR_SSI1_CLK_PRED_MASK (0x7 << 6) |
| 297 | #define MXC_CCM_CS1CDR_SSI1_CLK_PRED_OFFSET 6 |
| 298 | #define MXC_CCM_CS1CDR_SSI1_CLK_PODF_MASK 0x3F |
| 299 | #define MXC_CCM_CS1CDR_SSI1_CLK_PODF_OFFSET 0 |
| 300 | |
| 301 | /* Define the bits in register CS2CDR */ |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 302 | #ifdef CONFIG_MX6SX |
| 303 | #define MXC_CCM_CS2CDR_QSPI2_CLK_PODF_MASK (0x3F << 21) |
| 304 | #define MXC_CCM_CS2CDR_QSPI2_CLK_PODF_OFFSET 21 |
| 305 | #define MXC_CCM_CS2CDR_QSPI2_CLK_PODF(v) (((v) & 0x3f) << 21) |
| 306 | #define MXC_CCM_CS2CDR_QSPI2_CLK_PRED_MASK (0x7 << 18) |
| 307 | #define MXC_CCM_CS2CDR_QSPI2_CLK_PRED_OFFSET 18 |
| 308 | #define MXC_CCM_CS2CDR_QSPI2_CLK_PRED(v) (((v) & 0x7) << 18) |
| 309 | #define MXC_CCM_CS2CDR_QSPI2_CLK_SEL_MASK (0x7 << 15) |
| 310 | #define MXC_CCM_CS2CDR_QSPI2_CLK_SEL_OFFSET 15 |
| 311 | #define MXC_CCM_CS2CDR_QSPI2_CLK_SEL(v) (((v) & 0x7) << 15) |
| 312 | #else |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 313 | #define MXC_CCM_CS2CDR_ENFC_CLK_PODF_MASK (0x3F << 21) |
| 314 | #define MXC_CCM_CS2CDR_ENFC_CLK_PODF_OFFSET 21 |
Stefan Roese | 05d10b5 | 2013-04-17 00:32:43 +0000 | [diff] [blame] | 315 | #define MXC_CCM_CS2CDR_ENFC_CLK_PODF(v) (((v) & 0x3f) << 21) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 316 | #define MXC_CCM_CS2CDR_ENFC_CLK_PRED_MASK (0x7 << 18) |
| 317 | #define MXC_CCM_CS2CDR_ENFC_CLK_PRED_OFFSET 18 |
Stefan Roese | 05d10b5 | 2013-04-17 00:32:43 +0000 | [diff] [blame] | 318 | #define MXC_CCM_CS2CDR_ENFC_CLK_PRED(v) (((v) & 0x7) << 18) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 319 | #define MXC_CCM_CS2CDR_ENFC_CLK_SEL_MASK (0x3 << 16) |
| 320 | #define MXC_CCM_CS2CDR_ENFC_CLK_SEL_OFFSET 16 |
Stefan Roese | 05d10b5 | 2013-04-17 00:32:43 +0000 | [diff] [blame] | 321 | #define MXC_CCM_CS2CDR_ENFC_CLK_SEL(v) (((v) & 0x3) << 16) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 322 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 323 | #define MXC_CCM_CS2CDR_LDB_DI1_CLK_SEL_MASK (0x7 << 12) |
| 324 | #define MXC_CCM_CS2CDR_LDB_DI1_CLK_SEL_OFFSET 12 |
| 325 | #define MXC_CCM_CS2CDR_LDB_DI0_CLK_SEL_MASK (0x7 << 9) |
| 326 | #define MXC_CCM_CS2CDR_LDB_DI0_CLK_SEL_OFFSET 9 |
| 327 | #define MXC_CCM_CS2CDR_SSI2_CLK_PRED_MASK (0x7 << 6) |
| 328 | #define MXC_CCM_CS2CDR_SSI2_CLK_PRED_OFFSET 6 |
| 329 | #define MXC_CCM_CS2CDR_SSI2_CLK_PODF_MASK 0x3F |
| 330 | #define MXC_CCM_CS2CDR_SSI2_CLK_PODF_OFFSET 0 |
| 331 | |
| 332 | /* Define the bits in register CDCDR */ |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 333 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 334 | #define MXC_CCM_CDCDR_HSI_TX_PODF_MASK (0x7 << 29) |
| 335 | #define MXC_CCM_CDCDR_HSI_TX_PODF_OFFSET 29 |
| 336 | #define MXC_CCM_CDCDR_HSI_TX_CLK_SEL (1 << 28) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 337 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 338 | #define MXC_CCM_CDCDR_SPDIF0_CLK_PRED_MASK (0x7 << 25) |
| 339 | #define MXC_CCM_CDCDR_SPDIF0_CLK_PRED_OFFSET 25 |
Fabio Estevam | cd47cc7 | 2014-08-01 08:50:00 -0300 | [diff] [blame] | 340 | #define MXC_CCM_CDCDR_SPDIF0_CLK_PODF_MASK (0x7 << 22) |
| 341 | #define MXC_CCM_CDCDR_SPDIF0_CLK_PODF_OFFSET 22 |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 342 | #define MXC_CCM_CDCDR_SPDIF0_CLK_SEL_MASK (0x3 << 20) |
| 343 | #define MXC_CCM_CDCDR_SPDIF0_CLK_SEL_OFFSET 20 |
| 344 | #define MXC_CCM_CDCDR_SPDIF1_CLK_PRED_MASK (0x7 << 12) |
| 345 | #define MXC_CCM_CDCDR_SPDIF1_CLK_PRED_OFFSET 12 |
| 346 | #define MXC_CCM_CDCDR_SPDIF1_CLK_PODF_MASK (0x7 << 9) |
| 347 | #define MXC_CCM_CDCDR_SPDIF1_CLK_PODF_OFFSET 9 |
| 348 | #define MXC_CCM_CDCDR_SPDIF1_CLK_SEL_MASK (0x3 << 7) |
| 349 | #define MXC_CCM_CDCDR_SPDIF1_CLK_SEL_OFFSET 7 |
| 350 | |
| 351 | /* Define the bits in register CHSCCDR */ |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 352 | #ifdef CONFIG_MX6SX |
| 353 | #define MXC_CCM_CHSCCDR_ENET_PRE_CLK_SEL_MASK (0x7 << 15) |
| 354 | #define MXC_CCM_CHSCCDR_ENET_PRE_CLK_SEL_OFFSET 15 |
| 355 | #define MXC_CCM_CHSCCDR_ENET_PODF_MASK (0x7 << 12) |
| 356 | #define MXC_CCM_CHSCCDR_ENET_PODF_OFFSET 12 |
| 357 | #define MXC_CCM_CHSCCDR_ENET_CLK_SEL_MASK (0x7 << 9) |
| 358 | #define MXC_CCM_CHSCCDR_ENET_CLK_SEL_OFFSET 9 |
| 359 | #define MXC_CCM_CHSCCDR_M4_PRE_CLK_SEL_MASK (0x7 << 6) |
| 360 | #define MXC_CCM_CHSCCDR_M4_PRE_CLK_SEL_OFFSET 6 |
| 361 | #define MXC_CCM_CHSCCDR_M4_PODF_MASK (0x7 << 3) |
| 362 | #define MXC_CCM_CHSCCDR_M4_PODF_OFFSET 3 |
| 363 | #define MXC_CCM_CHSCCDR_M4_CLK_SEL_MASK (0x7) |
| 364 | #define MXC_CCM_CHSCCDR_M4_CLK_SEL_OFFSET 0 |
| 365 | #else |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 366 | #define MXC_CCM_CHSCCDR_IPU1_DI1_PRE_CLK_SEL_MASK (0x7 << 15) |
| 367 | #define MXC_CCM_CHSCCDR_IPU1_DI1_PRE_CLK_SEL_OFFSET 15 |
| 368 | #define MXC_CCM_CHSCCDR_IPU1_DI1_PODF_MASK (0x7 << 12) |
| 369 | #define MXC_CCM_CHSCCDR_IPU1_DI1_PODF_OFFSET 12 |
| 370 | #define MXC_CCM_CHSCCDR_IPU1_DI1_CLK_SEL_MASK (0x7 << 9) |
| 371 | #define MXC_CCM_CHSCCDR_IPU1_DI1_CLK_SEL_OFFSET 9 |
| 372 | #define MXC_CCM_CHSCCDR_IPU1_DI0_PRE_CLK_SEL_MASK (0x7 << 6) |
| 373 | #define MXC_CCM_CHSCCDR_IPU1_DI0_PRE_CLK_SEL_OFFSET 6 |
| 374 | #define MXC_CCM_CHSCCDR_IPU1_DI0_PODF_MASK (0x7 << 3) |
| 375 | #define MXC_CCM_CHSCCDR_IPU1_DI0_PODF_OFFSET 3 |
| 376 | #define MXC_CCM_CHSCCDR_IPU1_DI0_CLK_SEL_MASK (0x7) |
| 377 | #define MXC_CCM_CHSCCDR_IPU1_DI0_CLK_SEL_OFFSET 0 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 378 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 379 | |
Eric Nelson | a5b1131 | 2012-09-19 08:33:50 +0000 | [diff] [blame] | 380 | #define CHSCCDR_CLK_SEL_LDB_DI0 3 |
| 381 | #define CHSCCDR_PODF_DIVIDE_BY_3 2 |
| 382 | #define CHSCCDR_IPU_PRE_CLK_540M_PFD 5 |
| 383 | |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 384 | /* Define the bits in register CSCDR2 */ |
| 385 | #define MXC_CCM_CSCDR2_ECSPI_CLK_PODF_MASK (0x3F << 19) |
| 386 | #define MXC_CCM_CSCDR2_ECSPI_CLK_PODF_OFFSET 19 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 387 | /* All IPU2_DI1 are LCDIF1 on MX6SX */ |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 388 | #define MXC_CCM_CHSCCDR_IPU2_DI1_PRE_CLK_SEL_MASK (0x7 << 15) |
| 389 | #define MXC_CCM_CHSCCDR_IPU2_DI1_PRE_CLK_SEL_OFFSET 15 |
| 390 | #define MXC_CCM_CHSCCDR_IPU2_DI1_PODF_MASK (0x7 << 12) |
| 391 | #define MXC_CCM_CHSCCDR_IPU2_DI1_PODF_OFFSET 12 |
| 392 | #define MXC_CCM_CHSCCDR_IPU2_DI1_CLK_SEL_MASK (0x7 << 9) |
| 393 | #define MXC_CCM_CHSCCDR_IPU2_DI1_CLK_SEL_OFFSET 9 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 394 | /* All IPU2_DI0 are LCDIF2 on MX6SX */ |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 395 | #define MXC_CCM_CHSCCDR_IPU2_DI0_PRE_CLK_SEL_MASK (0x7 << 6) |
| 396 | #define MXC_CCM_CHSCCDR_IPU2_DI0_PRE_CLK_SEL_OFFSET 6 |
| 397 | #define MXC_CCM_CHSCCDR_IPU2_DI0_PODF_MASK (0x7 << 3) |
| 398 | #define MXC_CCM_CHSCCDR_IPU2_DI0_PODF_OFFSET 3 |
| 399 | #define MXC_CCM_CHSCCDR_IPU2_DI0_CLK_SEL_MASK 0x7 |
| 400 | #define MXC_CCM_CHSCCDR_IPU2_DI0_CLK_SEL_OFFSET 0 |
| 401 | |
| 402 | /* Define the bits in register CSCDR3 */ |
| 403 | #define MXC_CCM_CSCDR3_IPU2_HSP_PODF_MASK (0x7 << 16) |
| 404 | #define MXC_CCM_CSCDR3_IPU2_HSP_PODF_OFFSET 16 |
| 405 | #define MXC_CCM_CSCDR3_IPU2_HSP_CLK_SEL_MASK (0x3 << 14) |
| 406 | #define MXC_CCM_CSCDR3_IPU2_HSP_CLK_SEL_OFFSET 14 |
| 407 | #define MXC_CCM_CSCDR3_IPU1_HSP_PODF_MASK (0x7 << 11) |
| 408 | #define MXC_CCM_CSCDR3_IPU1_HSP_PODF_OFFSET 11 |
| 409 | #define MXC_CCM_CSCDR3_IPU1_HSP_CLK_SEL_MASK (0x3 << 9) |
| 410 | #define MXC_CCM_CSCDR3_IPU1_HSP_CLK_SEL_OFFSET 9 |
| 411 | |
| 412 | /* Define the bits in register CDHIPR */ |
| 413 | #define MXC_CCM_CDHIPR_ARM_PODF_BUSY (1 << 16) |
| 414 | #define MXC_CCM_CDHIPR_PERIPH_CLK_SEL_BUSY (1 << 5) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 415 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 416 | #define MXC_CCM_CDHIPR_MMDC_CH0_PODF_BUSY (1 << 4) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 417 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 418 | #define MXC_CCM_CDHIPR_PERIPH2_CLK_SEL_BUSY (1 << 3) |
| 419 | #define MXC_CCM_CDHIPR_MMDC_CH1_PODF_BUSY (1 << 2) |
| 420 | #define MXC_CCM_CDHIPR_AHB_PODF_BUSY (1 << 1) |
| 421 | #define MXC_CCM_CDHIPR_AXI_PODF_BUSY 1 |
| 422 | |
| 423 | /* Define the bits in register CLPCR */ |
| 424 | #define MXC_CCM_CLPCR_MASK_L2CC_IDLE (1 << 27) |
| 425 | #define MXC_CCM_CLPCR_MASK_SCU_IDLE (1 << 26) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 426 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 427 | #define MXC_CCM_CLPCR_MASK_CORE3_WFI (1 << 25) |
| 428 | #define MXC_CCM_CLPCR_MASK_CORE2_WFI (1 << 24) |
| 429 | #define MXC_CCM_CLPCR_MASK_CORE1_WFI (1 << 23) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 430 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 431 | #define MXC_CCM_CLPCR_MASK_CORE0_WFI (1 << 22) |
| 432 | #define MXC_CCM_CLPCR_BYP_MMDC_CH1_LPM_HS (1 << 21) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 433 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 434 | #define MXC_CCM_CLPCR_BYP_MMDC_CH0_LPM_HS (1 << 19) |
| 435 | #define MXC_CCM_CLPCR_WB_CORE_AT_LPM (1 << 17) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 436 | #endif |
Fabio Estevam | 42eed2c | 2014-08-01 08:50:01 -0300 | [diff] [blame] | 437 | #define MXC_CCM_CLPCR_WB_PER_AT_LPM (1 << 16) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 438 | #define MXC_CCM_CLPCR_COSC_PWRDOWN (1 << 11) |
| 439 | #define MXC_CCM_CLPCR_STBY_COUNT_MASK (0x3 << 9) |
| 440 | #define MXC_CCM_CLPCR_STBY_COUNT_OFFSET 9 |
| 441 | #define MXC_CCM_CLPCR_VSTBY (1 << 8) |
| 442 | #define MXC_CCM_CLPCR_DIS_REF_OSC (1 << 7) |
| 443 | #define MXC_CCM_CLPCR_SBYOS (1 << 6) |
| 444 | #define MXC_CCM_CLPCR_ARM_CLK_DIS_ON_LPM (1 << 5) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 445 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 446 | #define MXC_CCM_CLPCR_LPSR_CLK_SEL_MASK (0x3 << 3) |
| 447 | #define MXC_CCM_CLPCR_LPSR_CLK_SEL_OFFSET 3 |
| 448 | #define MXC_CCM_CLPCR_BYPASS_PMIC_VFUNC_READY (1 << 2) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 449 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 450 | #define MXC_CCM_CLPCR_LPM_MASK 0x3 |
| 451 | #define MXC_CCM_CLPCR_LPM_OFFSET 0 |
| 452 | |
| 453 | /* Define the bits in register CISR */ |
| 454 | #define MXC_CCM_CISR_ARM_PODF_LOADED (1 << 26) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 455 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 456 | #define MXC_CCM_CISR_MMDC_CH0_PODF_LOADED (1 << 23) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 457 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 458 | #define MXC_CCM_CISR_PERIPH_CLK_SEL_LOADED (1 << 22) |
| 459 | #define MXC_CCM_CISR_MMDC_CH1_PODF_LOADED (1 << 21) |
| 460 | #define MXC_CCM_CISR_AHB_PODF_LOADED (1 << 20) |
| 461 | #define MXC_CCM_CISR_PERIPH2_CLK_SEL_LOADED (1 << 19) |
| 462 | #define MXC_CCM_CISR_AXI_PODF_LOADED (1 << 17) |
| 463 | #define MXC_CCM_CISR_COSC_READY (1 << 6) |
| 464 | #define MXC_CCM_CISR_LRF_PLL 1 |
| 465 | |
| 466 | /* Define the bits in register CIMR */ |
| 467 | #define MXC_CCM_CIMR_MASK_ARM_PODF_LOADED (1 << 26) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 468 | #ifndef CONFIG_MX6SX |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 469 | #define MXC_CCM_CIMR_MASK_MMDC_CH0_PODF_LOADED (1 << 23) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 470 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 471 | #define MXC_CCM_CIMR_MASK_PERIPH_CLK_SEL_LOADED (1 << 22) |
| 472 | #define MXC_CCM_CIMR_MASK_MMDC_CH1_PODF_LOADED (1 << 21) |
| 473 | #define MXC_CCM_CIMR_MASK_AHB_PODF_LOADED (1 << 20) |
Fabio Estevam | 103d3c3 | 2014-08-01 08:50:02 -0300 | [diff] [blame] | 474 | #define MXC_CCM_CIMR_MASK_PERIPH2_CLK_SEL_LOADED (1 << 19) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 475 | #define MXC_CCM_CIMR_MASK_AXI_PODF_LOADED (1 << 17) |
| 476 | #define MXC_CCM_CIMR_MASK_COSC_READY (1 << 6) |
| 477 | #define MXC_CCM_CIMR_MASK_LRF_PLL 1 |
| 478 | |
| 479 | /* Define the bits in register CCOSR */ |
| 480 | #define MXC_CCM_CCOSR_CKO2_EN_OFFSET (1 << 24) |
| 481 | #define MXC_CCM_CCOSR_CKO2_DIV_MASK (0x7 << 21) |
| 482 | #define MXC_CCM_CCOSR_CKO2_DIV_OFFSET 21 |
| 483 | #define MXC_CCM_CCOSR_CKO2_SEL_OFFSET 16 |
| 484 | #define MXC_CCM_CCOSR_CKO2_SEL_MASK (0x1F << 16) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 485 | #define MXC_CCM_CCOSR_CLK_OUT_SEL (0x1 << 8) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 486 | #define MXC_CCM_CCOSR_CKOL_EN (0x1 << 7) |
| 487 | #define MXC_CCM_CCOSR_CKOL_DIV_MASK (0x7 << 4) |
| 488 | #define MXC_CCM_CCOSR_CKOL_DIV_OFFSET 4 |
| 489 | #define MXC_CCM_CCOSR_CKOL_SEL_MASK 0xF |
| 490 | #define MXC_CCM_CCOSR_CKOL_SEL_OFFSET 0 |
| 491 | |
| 492 | /* Define the bits in registers CGPR */ |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 493 | #define MXC_CCM_CGPR_FAST_PLL_EN (1 << 16) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 494 | #define MXC_CCM_CGPR_EFUSE_PROG_SUPPLY_GATE (1 << 4) |
| 495 | #define MXC_CCM_CGPR_MMDC_EXT_CLK_DIS (1 << 2) |
| 496 | #define MXC_CCM_CGPR_PMIC_DELAY_SCALER 1 |
| 497 | |
| 498 | /* Define the bits in registers CCGRx */ |
| 499 | #define MXC_CCM_CCGR_CG_MASK 3 |
| 500 | |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 501 | #define MXC_CCM_CCGR0_AIPS_TZ1_OFFSET 0 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 502 | #define MXC_CCM_CCGR0_AIPS_TZ1_MASK (3 << MXC_CCM_CCGR0_AIPS_TZ1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 503 | #define MXC_CCM_CCGR0_AIPS_TZ2_OFFSET 2 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 504 | #define MXC_CCM_CCGR0_AIPS_TZ2_MASK (3 << MXC_CCM_CCGR0_AIPS_TZ2_OFFSET) |
Stefan Roese | 05d10b5 | 2013-04-17 00:32:43 +0000 | [diff] [blame] | 505 | #define MXC_CCM_CCGR0_APBHDMA_OFFSET 4 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 506 | #define MXC_CCM_CCGR0_APBHDMA_MASK (3 << MXC_CCM_CCGR0_APBHDMA_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 507 | #define MXC_CCM_CCGR0_ASRC_OFFSET 6 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 508 | #define MXC_CCM_CCGR0_ASRC_MASK (3 << MXC_CCM_CCGR0_ASRC_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 509 | #define MXC_CCM_CCGR0_CAAM_SECURE_MEM_OFFSET 8 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 510 | #define MXC_CCM_CCGR0_CAAM_SECURE_MEM_MASK (3 << MXC_CCM_CCGR0_CAAM_SECURE_MEM_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 511 | #define MXC_CCM_CCGR0_CAAM_WRAPPER_ACLK_OFFSET 10 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 512 | #define MXC_CCM_CCGR0_CAAM_WRAPPER_ACLK_MASK (3 << MXC_CCM_CCGR0_CAAM_WRAPPER_ACLK_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 513 | #define MXC_CCM_CCGR0_CAAM_WRAPPER_IPG_OFFSET 12 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 514 | #define MXC_CCM_CCGR0_CAAM_WRAPPER_IPG_MASK (3 << MXC_CCM_CCGR0_CAAM_WRAPPER_IPG_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 515 | #define MXC_CCM_CCGR0_CAN1_OFFSET 14 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 516 | #define MXC_CCM_CCGR0_CAN1_MASK (3 << MXC_CCM_CCGR0_CAN1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 517 | #define MXC_CCM_CCGR0_CAN1_SERIAL_OFFSET 16 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 518 | #define MXC_CCM_CCGR0_CAN1_SERIAL_MASK (3 << MXC_CCM_CCGR0_CAN1_SERIAL_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 519 | #define MXC_CCM_CCGR0_CAN2_OFFSET 18 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 520 | #define MXC_CCM_CCGR0_CAN2_MASK (3 << MXC_CCM_CCGR0_CAN2_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 521 | #define MXC_CCM_CCGR0_CAN2_SERIAL_OFFSET 20 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 522 | #define MXC_CCM_CCGR0_CAN2_SERIAL_MASK (3 << MXC_CCM_CCGR0_CAN2_SERIAL_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 523 | #define MXC_CCM_CCGR0_CHEETAH_DBG_CLK_OFFSET 22 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 524 | #define MXC_CCM_CCGR0_CHEETAH_DBG_CLK_MASK (3 << MXC_CCM_CCGR0_CHEETAH_DBG_CLK_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 525 | #define MXC_CCM_CCGR0_DCIC1_OFFSET 24 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 526 | #define MXC_CCM_CCGR0_DCIC1_MASK (3 << MXC_CCM_CCGR0_DCIC1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 527 | #define MXC_CCM_CCGR0_DCIC2_OFFSET 26 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 528 | #define MXC_CCM_CCGR0_DCIC2_MASK (3 << MXC_CCM_CCGR0_DCIC2_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 529 | #ifdef CONFIG_MX6SX |
| 530 | #define MXC_CCM_CCGR0_AIPS_TZ3_OFFSET 30 |
| 531 | #define MXC_CCM_CCGR0_AIPS_TZ3_MASK (3 << MXC_CCM_CCGR0_AIPS_TZ3_OFFSET) |
| 532 | #else |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 533 | #define MXC_CCM_CCGR0_DTCP_OFFSET 28 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 534 | #define MXC_CCM_CCGR0_DTCP_MASK (3 << MXC_CCM_CCGR0_DTCP_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 535 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 536 | |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 537 | #define MXC_CCM_CCGR1_ECSPI1S_OFFSET 0 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 538 | #define MXC_CCM_CCGR1_ECSPI1S_MASK (3 << MXC_CCM_CCGR1_ECSPI1S_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 539 | #define MXC_CCM_CCGR1_ECSPI2S_OFFSET 2 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 540 | #define MXC_CCM_CCGR1_ECSPI2S_MASK (3 << MXC_CCM_CCGR1_ECSPI2S_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 541 | #define MXC_CCM_CCGR1_ECSPI3S_OFFSET 4 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 542 | #define MXC_CCM_CCGR1_ECSPI3S_MASK (3 << MXC_CCM_CCGR1_ECSPI3S_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 543 | #define MXC_CCM_CCGR1_ECSPI4S_OFFSET 6 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 544 | #define MXC_CCM_CCGR1_ECSPI4S_MASK (3 << MXC_CCM_CCGR1_ECSPI4S_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 545 | #define MXC_CCM_CCGR1_ECSPI5S_OFFSET 8 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 546 | #define MXC_CCM_CCGR1_ECSPI5S_MASK (3 << MXC_CCM_CCGR1_ECSPI5S_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 547 | #ifndef CONFIG_MX6SX |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 548 | #define MXC_CCM_CCGR1_ENET_CLK_ENABLE_OFFSET 10 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 549 | #define MXC_CCM_CCGR1_ENET_CLK_ENABLE_MASK (3 << MXC_CCM_CCGR1_ENET_CLK_ENABLE_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 550 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 551 | #define MXC_CCM_CCGR1_EPIT1S_OFFSET 12 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 552 | #define MXC_CCM_CCGR1_EPIT1S_MASK (3 << MXC_CCM_CCGR1_EPIT1S_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 553 | #define MXC_CCM_CCGR1_EPIT2S_OFFSET 14 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 554 | #define MXC_CCM_CCGR1_EPIT2S_MASK (3 << MXC_CCM_CCGR1_EPIT2S_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 555 | #define MXC_CCM_CCGR1_ESAIS_OFFSET 16 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 556 | #define MXC_CCM_CCGR1_ESAIS_MASK (3 << MXC_CCM_CCGR1_ESAIS_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 557 | #ifdef CONFIG_MX6SX |
| 558 | #define MXC_CCM_CCGR1_WAKEUP_OFFSET 18 |
| 559 | #define MXC_CCM_CCGR1_WAKEUP_MASK (3 << MXC_CCM_CCGR1_WAKEUP_OFFSET) |
| 560 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 561 | #define MXC_CCM_CCGR1_GPT_BUS_OFFSET 20 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 562 | #define MXC_CCM_CCGR1_GPT_BUS_MASK (3 << MXC_CCM_CCGR1_GPT_BUS_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 563 | #define MXC_CCM_CCGR1_GPT_SERIAL_OFFSET 22 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 564 | #define MXC_CCM_CCGR1_GPT_SERIAL_MASK (3 << MXC_CCM_CCGR1_GPT_SERIAL_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 565 | #ifndef CONFIG_MX6SX |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 566 | #define MXC_CCM_CCGR1_GPU2D_OFFSET 24 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 567 | #define MXC_CCM_CCGR1_GPU2D_MASK (3 << MXC_CCM_CCGR1_GPU2D_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 568 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 569 | #define MXC_CCM_CCGR1_GPU3D_OFFSET 26 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 570 | #define MXC_CCM_CCGR1_GPU3D_MASK (3 << MXC_CCM_CCGR1_GPU3D_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 571 | #ifdef CONFIG_MX6SX |
| 572 | #define MXC_CCM_CCGR1_OCRAM_S_OFFSET 28 |
| 573 | #define MXC_CCM_CCGR1_OCRAM_S_MASK (3 << MXC_CCM_CCGR1_OCRAM_S_OFFSET) |
| 574 | #define MXC_CCM_CCGR1_CANFD_OFFSET 30 |
| 575 | #define MXC_CCM_CCGR1_CANFD_MASK (3 << MXC_CCM_CCGR1_CANFD_OFFSET) |
| 576 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 577 | |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 578 | #ifndef CONFIG_MX6SX |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 579 | #define MXC_CCM_CCGR2_HDMI_TX_IAHBCLK_OFFSET 0 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 580 | #define MXC_CCM_CCGR2_HDMI_TX_IAHBCLK_MASK (3 << MXC_CCM_CCGR2_HDMI_TX_IAHBCLK_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 581 | #else |
| 582 | #define MXC_CCM_CCGR2_CSI_OFFSET 2 |
| 583 | #define MXC_CCM_CCGR2_CSI_MASK (3 << MXC_CCM_CCGR2_CSI_OFFSET) |
| 584 | #endif |
| 585 | #ifndef CONFIG_MX6SX |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 586 | #define MXC_CCM_CCGR2_HDMI_TX_ISFRCLK_OFFSET 4 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 587 | #define MXC_CCM_CCGR2_HDMI_TX_ISFRCLK_MASK (3 << MXC_CCM_CCGR2_HDMI_TX_ISFRCLK_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 588 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 589 | #define MXC_CCM_CCGR2_I2C1_SERIAL_OFFSET 6 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 590 | #define MXC_CCM_CCGR2_I2C1_SERIAL_MASK (3 << MXC_CCM_CCGR2_I2C1_SERIAL_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 591 | #define MXC_CCM_CCGR2_I2C2_SERIAL_OFFSET 8 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 592 | #define MXC_CCM_CCGR2_I2C2_SERIAL_MASK (3 << MXC_CCM_CCGR2_I2C2_SERIAL_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 593 | #define MXC_CCM_CCGR2_I2C3_SERIAL_OFFSET 10 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 594 | #define MXC_CCM_CCGR2_I2C3_SERIAL_MASK (3 << MXC_CCM_CCGR2_I2C3_SERIAL_OFFSET) |
Heiko Schocher | 5c4b1e9 | 2015-05-18 10:56:24 +0200 | [diff] [blame] | 595 | #define MXC_CCM_CCGR1_I2C4_SERIAL_OFFSET 8 |
| 596 | #define MXC_CCM_CCGR1_I2C4_SERIAL_MASK (3 << MXC_CCM_CCGR1_I2C4_SERIAL_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 597 | #define MXC_CCM_CCGR2_OCOTP_CTRL_OFFSET 12 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 598 | #define MXC_CCM_CCGR2_OCOTP_CTRL_MASK (3 << MXC_CCM_CCGR2_OCOTP_CTRL_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 599 | #define MXC_CCM_CCGR2_IOMUX_IPT_CLK_IO_OFFSET 14 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 600 | #define MXC_CCM_CCGR2_IOMUX_IPT_CLK_IO_MASK (3 << MXC_CCM_CCGR2_IOMUX_IPT_CLK_IO_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 601 | #define MXC_CCM_CCGR2_IPMUX1_OFFSET 16 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 602 | #define MXC_CCM_CCGR2_IPMUX1_MASK (3 << MXC_CCM_CCGR2_IPMUX1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 603 | #define MXC_CCM_CCGR2_IPMUX2_OFFSET 18 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 604 | #define MXC_CCM_CCGR2_IPMUX2_MASK (3 << MXC_CCM_CCGR2_IPMUX2_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 605 | #define MXC_CCM_CCGR2_IPMUX3_OFFSET 20 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 606 | #define MXC_CCM_CCGR2_IPMUX3_MASK (3 << MXC_CCM_CCGR2_IPMUX3_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 607 | #define MXC_CCM_CCGR2_IPSYNC_IP2APB_TZASC1_IPGS_OFFSET 22 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 608 | #define MXC_CCM_CCGR2_IPSYNC_IP2APB_TZASC1_IPGS_MASK (3 << MXC_CCM_CCGR2_IPSYNC_IP2APB_TZASC1_IPGS_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 609 | #ifdef CONFIG_MX6SX |
| 610 | #define MXC_CCM_CCGR2_LCD_OFFSET 28 |
| 611 | #define MXC_CCM_CCGR2_LCD_MASK (3 << MXC_CCM_CCGR2_LCD_OFFSET) |
| 612 | #define MXC_CCM_CCGR2_PXP_OFFSET 30 |
| 613 | #define MXC_CCM_CCGR2_PXP_MASK (3 << MXC_CCM_CCGR2_PXP_OFFSET) |
| 614 | #else |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 615 | #define MXC_CCM_CCGR2_IPSYNC_IP2APB_TZASC2_IPG_OFFSET 24 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 616 | #define MXC_CCM_CCGR2_IPSYNC_IP2APB_TZASC2_IPG_MASK (3 << MXC_CCM_CCGR2_IPSYNC_IP2APB_TZASC2_IPG_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 617 | #define MXC_CCM_CCGR2_IPSYNC_VDOA_IPG_MASTER_CLK_OFFSET 26 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 618 | #define MXC_CCM_CCGR2_IPSYNC_VDOA_IPG_MASTER_CLK_MASK (3 << MXC_CCM_CCGR2_IPSYNC_VDOA_IPG_MASTER_CLK_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 619 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 620 | |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 621 | #ifdef CONFIG_MX6SX |
| 622 | #define MXC_CCM_CCGR3_M4_OFFSET 2 |
| 623 | #define MXC_CCM_CCGR3_M4_MASK (3 << MXC_CCM_CCGR3_M4_OFFSET) |
| 624 | #define MXC_CCM_CCGR3_ENET_OFFSET 4 |
| 625 | #define MXC_CCM_CCGR3_ENET_MASK (3 << MXC_CCM_CCGR3_ENET_OFFSET) |
| 626 | #define MXC_CCM_CCGR3_QSPI_OFFSET 14 |
| 627 | #define MXC_CCM_CCGR3_QSPI_MASK (3 << MXC_CCM_CCGR3_QSPI_OFFSET) |
| 628 | #else |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 629 | #define MXC_CCM_CCGR3_IPU1_IPU_OFFSET 0 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 630 | #define MXC_CCM_CCGR3_IPU1_IPU_MASK (3 << MXC_CCM_CCGR3_IPU1_IPU_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 631 | #define MXC_CCM_CCGR3_IPU1_IPU_DI0_OFFSET 2 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 632 | #define MXC_CCM_CCGR3_IPU1_IPU_DI0_MASK (3 << MXC_CCM_CCGR3_IPU1_IPU_DI0_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 633 | #define MXC_CCM_CCGR3_IPU1_IPU_DI1_OFFSET 4 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 634 | #define MXC_CCM_CCGR3_IPU1_IPU_DI1_MASK (3 << MXC_CCM_CCGR3_IPU1_IPU_DI1_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 635 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 636 | #define MXC_CCM_CCGR3_IPU2_IPU_OFFSET 6 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 637 | #define MXC_CCM_CCGR3_IPU2_IPU_MASK (3 << MXC_CCM_CCGR3_IPU2_IPU_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 638 | #define MXC_CCM_CCGR3_IPU2_IPU_DI0_OFFSET 8 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 639 | #define MXC_CCM_CCGR3_IPU2_IPU_DI0_MASK (3 << MXC_CCM_CCGR3_IPU2_IPU_DI0_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 640 | #define MXC_CCM_CCGR3_IPU2_IPU_DI1_OFFSET 10 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 641 | #define MXC_CCM_CCGR3_IPU2_IPU_DI1_MASK (3 << MXC_CCM_CCGR3_IPU2_IPU_DI1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 642 | #define MXC_CCM_CCGR3_LDB_DI0_OFFSET 12 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 643 | #define MXC_CCM_CCGR3_LDB_DI0_MASK (3 << MXC_CCM_CCGR3_LDB_DI0_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 644 | #ifdef CONFIG_MX6SX |
| 645 | #define MXC_CCM_CCGR3_QSPI1_OFFSET 14 |
| 646 | #define MXC_CCM_CCGR3_QSPI1_MASK (3 << MXC_CCM_CCGR3_QSPI1_OFFSET) |
| 647 | #else |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 648 | #define MXC_CCM_CCGR3_LDB_DI1_OFFSET 14 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 649 | #define MXC_CCM_CCGR3_LDB_DI1_MASK (3 << MXC_CCM_CCGR3_LDB_DI1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 650 | #define MXC_CCM_CCGR3_MIPI_CORE_CFG_OFFSET 16 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 651 | #define MXC_CCM_CCGR3_MIPI_CORE_CFG_MASK (3 << MXC_CCM_CCGR3_MIPI_CORE_CFG_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 652 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 653 | #define MXC_CCM_CCGR3_MLB_OFFSET 18 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 654 | #define MXC_CCM_CCGR3_MLB_MASK (3 << MXC_CCM_CCGR3_MLB_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 655 | #define MXC_CCM_CCGR3_MMDC_CORE_ACLK_FAST_CORE_P0_OFFSET 20 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 656 | #define MXC_CCM_CCGR3_MMDC_CORE_ACLK_FAST_CORE_P0_MASK (3 << MXC_CCM_CCGR3_MMDC_CORE_ACLK_FAST_CORE_P0_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 657 | #ifndef CONFIG_MX6SX |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 658 | #define MXC_CCM_CCGR3_MMDC_CORE_ACLK_FAST_CORE_P1_OFFSET 22 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 659 | #define MXC_CCM_CCGR3_MMDC_CORE_ACLK_FAST_CORE_P1_MASK (3 << MXC_CCM_CCGR3_MMDC_CORE_ACLK_FAST_CORE_P1_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 660 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 661 | #define MXC_CCM_CCGR3_MMDC_CORE_IPG_CLK_P0_OFFSET 24 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 662 | #define MXC_CCM_CCGR3_MMDC_CORE_IPG_CLK_P0_MASK (3 << MXC_CCM_CCGR3_MMDC_CORE_IPG_CLK_P0_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 663 | #define MXC_CCM_CCGR3_MMDC_CORE_IPG_CLK_P1_OFFSET 26 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 664 | #define MXC_CCM_CCGR3_MMDC_CORE_IPG_CLK_P1_MASK (3 << MXC_CCM_CCGR3_MMDC_CORE_IPG_CLK_P1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 665 | #define MXC_CCM_CCGR3_OCRAM_OFFSET 28 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 666 | #define MXC_CCM_CCGR3_OCRAM_MASK (3 << MXC_CCM_CCGR3_OCRAM_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 667 | #ifndef CONFIG_MX6SX |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 668 | #define MXC_CCM_CCGR3_OPENVGAXICLK_OFFSET 30 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 669 | #define MXC_CCM_CCGR3_OPENVGAXICLK_MASK (3 << MXC_CCM_CCGR3_OPENVGAXICLK_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 670 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 671 | |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 672 | #define MXC_CCM_CCGR4_PCIE_OFFSET 0 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 673 | #define MXC_CCM_CCGR4_PCIE_MASK (3 << MXC_CCM_CCGR4_PCIE_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 674 | #ifdef CONFIG_MX6SX |
| 675 | #define MXC_CCM_CCGR4_QSPI2_ENFC_OFFSET 10 |
| 676 | #define MXC_CCM_CCGR4_QSPI2_ENFC_MASK (3 << MXC_CCM_CCGR4_QSPI2_ENFC_OFFSET) |
| 677 | #else |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 678 | #define MXC_CCM_CCGR4_PL301_MX6QFAST1_S133_OFFSET 8 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 679 | #define MXC_CCM_CCGR4_PL301_MX6QFAST1_S133_MASK (3 << MXC_CCM_CCGR4_PL301_MX6QFAST1_S133_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 680 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 681 | #define MXC_CCM_CCGR4_PL301_MX6QPER1_BCH_OFFSET 12 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 682 | #define MXC_CCM_CCGR4_PL301_MX6QPER1_BCH_MASK (3 << MXC_CCM_CCGR4_PL301_MX6QPER1_BCH_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 683 | #define MXC_CCM_CCGR4_PL301_MX6QPER2_MAINCLK_ENABLE_OFFSET 14 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 684 | #define MXC_CCM_CCGR4_PL301_MX6QPER2_MAINCLK_ENABLE_MASK (3 << MXC_CCM_CCGR4_PL301_MX6QPER2_MAINCLK_ENABLE_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 685 | #define MXC_CCM_CCGR4_PWM1_OFFSET 16 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 686 | #define MXC_CCM_CCGR4_PWM1_MASK (3 << MXC_CCM_CCGR4_PWM1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 687 | #define MXC_CCM_CCGR4_PWM2_OFFSET 18 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 688 | #define MXC_CCM_CCGR4_PWM2_MASK (3 << MXC_CCM_CCGR4_PWM2_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 689 | #define MXC_CCM_CCGR4_PWM3_OFFSET 20 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 690 | #define MXC_CCM_CCGR4_PWM3_MASK (3 << MXC_CCM_CCGR4_PWM3_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 691 | #define MXC_CCM_CCGR4_PWM4_OFFSET 22 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 692 | #define MXC_CCM_CCGR4_PWM4_MASK (3 << MXC_CCM_CCGR4_PWM4_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 693 | #define MXC_CCM_CCGR4_RAWNAND_U_BCH_INPUT_APB_OFFSET 24 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 694 | #define MXC_CCM_CCGR4_RAWNAND_U_BCH_INPUT_APB_MASK (3 << MXC_CCM_CCGR4_RAWNAND_U_BCH_INPUT_APB_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 695 | #define MXC_CCM_CCGR4_RAWNAND_U_GPMI_BCH_INPUT_BCH_OFFSET 26 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 696 | #define MXC_CCM_CCGR4_RAWNAND_U_GPMI_BCH_INPUT_BCH_MASK (3 << MXC_CCM_CCGR4_RAWNAND_U_GPMI_BCH_INPUT_BCH_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 697 | #define MXC_CCM_CCGR4_RAWNAND_U_GPMI_BCH_INPUT_GPMI_IO_OFFSET 28 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 698 | #define MXC_CCM_CCGR4_RAWNAND_U_GPMI_BCH_INPUT_GPMI_IO_MASK (3 << MXC_CCM_CCGR4_RAWNAND_U_GPMI_BCH_INPUT_GPMI_IO_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 699 | #define MXC_CCM_CCGR4_RAWNAND_U_GPMI_INPUT_APB_OFFSET 30 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 700 | #define MXC_CCM_CCGR4_RAWNAND_U_GPMI_INPUT_APB_MASK (3 << MXC_CCM_CCGR4_RAWNAND_U_GPMI_INPUT_APB_OFFSET) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 701 | |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 702 | #define MXC_CCM_CCGR5_ROM_OFFSET 0 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 703 | #define MXC_CCM_CCGR5_ROM_MASK (3 << MXC_CCM_CCGR5_ROM_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 704 | #ifndef CONFIG_MX6SX |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 705 | #define MXC_CCM_CCGR5_SATA_OFFSET 4 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 706 | #define MXC_CCM_CCGR5_SATA_MASK (3 << MXC_CCM_CCGR5_SATA_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 707 | #endif |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 708 | #define MXC_CCM_CCGR5_SDMA_OFFSET 6 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 709 | #define MXC_CCM_CCGR5_SDMA_MASK (3 << MXC_CCM_CCGR5_SDMA_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 710 | #define MXC_CCM_CCGR5_SPBA_OFFSET 12 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 711 | #define MXC_CCM_CCGR5_SPBA_MASK (3 << MXC_CCM_CCGR5_SPBA_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 712 | #define MXC_CCM_CCGR5_SPDIF_OFFSET 14 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 713 | #define MXC_CCM_CCGR5_SPDIF_MASK (3 << MXC_CCM_CCGR5_SPDIF_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 714 | #define MXC_CCM_CCGR5_SSI1_OFFSET 18 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 715 | #define MXC_CCM_CCGR5_SSI1_MASK (3 << MXC_CCM_CCGR5_SSI1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 716 | #define MXC_CCM_CCGR5_SSI2_OFFSET 20 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 717 | #define MXC_CCM_CCGR5_SSI2_MASK (3 << MXC_CCM_CCGR5_SSI2_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 718 | #define MXC_CCM_CCGR5_SSI3_OFFSET 22 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 719 | #define MXC_CCM_CCGR5_SSI3_MASK (3 << MXC_CCM_CCGR5_SSI3_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 720 | #define MXC_CCM_CCGR5_UART_OFFSET 24 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 721 | #define MXC_CCM_CCGR5_UART_MASK (3 << MXC_CCM_CCGR5_UART_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 722 | #define MXC_CCM_CCGR5_UART_SERIAL_OFFSET 26 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 723 | #define MXC_CCM_CCGR5_UART_SERIAL_MASK (3 << MXC_CCM_CCGR5_UART_SERIAL_OFFSET) |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 724 | #ifdef CONFIG_MX6SX |
| 725 | #define MXC_CCM_CCGR5_SAI1_OFFSET 20 |
| 726 | #define MXC_CCM_CCGR5_SAI1_MASK (3 << MXC_CCM_CCGR5_SAI1_OFFSET) |
| 727 | #define MXC_CCM_CCGR5_SAI2_OFFSET 30 |
| 728 | #define MXC_CCM_CCGR5_SAI2_MASK (3 << MXC_CCM_CCGR5_SAI2_OFFSET) |
| 729 | #endif |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 730 | |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 731 | #define MXC_CCM_CCGR6_USBOH3_OFFSET 0 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 732 | #define MXC_CCM_CCGR6_USBOH3_MASK (3 << MXC_CCM_CCGR6_USBOH3_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 733 | #define MXC_CCM_CCGR6_USDHC1_OFFSET 2 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 734 | #define MXC_CCM_CCGR6_USDHC1_MASK (3 << MXC_CCM_CCGR6_USDHC1_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 735 | #define MXC_CCM_CCGR6_USDHC2_OFFSET 4 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 736 | #define MXC_CCM_CCGR6_USDHC2_MASK (3 << MXC_CCM_CCGR6_USDHC2_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 737 | #define MXC_CCM_CCGR6_USDHC3_OFFSET 6 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 738 | #define MXC_CCM_CCGR6_USDHC3_MASK (3 << MXC_CCM_CCGR6_USDHC3_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 739 | #define MXC_CCM_CCGR6_USDHC4_OFFSET 8 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 740 | #define MXC_CCM_CCGR6_USDHC4_MASK (3 << MXC_CCM_CCGR6_USDHC4_OFFSET) |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 741 | #define MXC_CCM_CCGR6_EMI_SLOW_OFFSET 10 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 742 | #define MXC_CCM_CCGR6_EMI_SLOW_MASK (3 << MXC_CCM_CCGR6_EMI_SLOW_OFFSET) |
Peng Fan | d847db7 | 2015-07-01 17:01:50 +0800 | [diff] [blame] | 743 | /* The following *CCGR6* exist only i.MX6SX */ |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 744 | #define MXC_CCM_CCGR6_PWM8_OFFSET 16 |
| 745 | #define MXC_CCM_CCGR6_PWM8_MASK (3 << MXC_CCM_CCGR6_PWM8_OFFSET) |
| 746 | #define MXC_CCM_CCGR6_VADC_OFFSET 20 |
| 747 | #define MXC_CCM_CCGR6_VADC_MASK (3 << MXC_CCM_CCGR6_VADC_OFFSET) |
| 748 | #define MXC_CCM_CCGR6_GIS_OFFSET 22 |
| 749 | #define MXC_CCM_CCGR6_GIS_MASK (3 << MXC_CCM_CCGR6_GIS_OFFSET) |
| 750 | #define MXC_CCM_CCGR6_I2C4_OFFSET 24 |
| 751 | #define MXC_CCM_CCGR6_I2C4_MASK (3 << MXC_CCM_CCGR6_I2C4_OFFSET) |
| 752 | #define MXC_CCM_CCGR6_PWM5_OFFSET 26 |
| 753 | #define MXC_CCM_CCGR6_PWM5_MASK (3 << MXC_CCM_CCGR6_PWM5_OFFSET) |
| 754 | #define MXC_CCM_CCGR6_PWM6_OFFSET 28 |
| 755 | #define MXC_CCM_CCGR6_PWM6_MASK (3 << MXC_CCM_CCGR6_PWM6_OFFSET) |
| 756 | #define MXC_CCM_CCGR6_PWM7_OFFSET 30 |
| 757 | #define MXC_CCM_CCGR6_PWM7_MASK (3 << MXC_CCM_CCGR6_PWM7_OFFSET) |
Peng Fan | d847db7 | 2015-07-01 17:01:50 +0800 | [diff] [blame] | 758 | /* The two does not exist on i.MX6SX */ |
Eric Nelson | e427954 | 2012-09-21 07:33:51 +0000 | [diff] [blame] | 759 | #define MXC_CCM_CCGR6_VDOAXICLK_OFFSET 12 |
Stefan Roese | 33caddf | 2013-04-10 23:39:28 +0000 | [diff] [blame] | 760 | #define MXC_CCM_CCGR6_VDOAXICLK_MASK (3 << MXC_CCM_CCGR6_VDOAXICLK_OFFSET) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 761 | |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 762 | #define BM_ANADIG_PLL_SYS_LOCK 0x80000000 |
| 763 | #define BP_ANADIG_PLL_SYS_RSVD0 20 |
| 764 | #define BM_ANADIG_PLL_SYS_RSVD0 0x7FF00000 |
| 765 | #define BF_ANADIG_PLL_SYS_RSVD0(v) \ |
| 766 | (((v) << 20) & BM_ANADIG_PLL_SYS_RSVD0) |
| 767 | #define BM_ANADIG_PLL_SYS_PLL_SEL 0x00080000 |
| 768 | #define BM_ANADIG_PLL_SYS_LVDS_24MHZ_SEL 0x00040000 |
| 769 | #define BM_ANADIG_PLL_SYS_LVDS_SEL 0x00020000 |
| 770 | #define BM_ANADIG_PLL_SYS_BYPASS 0x00010000 |
| 771 | #define BP_ANADIG_PLL_SYS_BYPASS_CLK_SRC 14 |
| 772 | #define BM_ANADIG_PLL_SYS_BYPASS_CLK_SRC 0x0000C000 |
| 773 | #define BF_ANADIG_PLL_SYS_BYPASS_CLK_SRC(v) \ |
| 774 | (((v) << 14) & BM_ANADIG_PLL_SYS_BYPASS_CLK_SRC) |
| 775 | #define BV_ANADIG_PLL_SYS_BYPASS_CLK_SRC__OSC_24M 0x0 |
| 776 | #define BV_ANADIG_PLL_SYS_BYPASS_CLK_SRC__ANACLK_1 0x1 |
| 777 | #define BV_ANADIG_PLL_SYS_BYPASS_CLK_SRC__ANACLK_2 0x2 |
| 778 | #define BV_ANADIG_PLL_SYS_BYPASS_CLK_SRC__XOR 0x3 |
| 779 | #define BM_ANADIG_PLL_SYS_ENABLE 0x00002000 |
| 780 | #define BM_ANADIG_PLL_SYS_POWERDOWN 0x00001000 |
| 781 | #define BM_ANADIG_PLL_SYS_HOLD_RING_OFF 0x00000800 |
| 782 | #define BM_ANADIG_PLL_SYS_DOUBLE_CP 0x00000400 |
| 783 | #define BM_ANADIG_PLL_SYS_HALF_CP 0x00000200 |
| 784 | #define BM_ANADIG_PLL_SYS_DOUBLE_LF 0x00000100 |
| 785 | #define BM_ANADIG_PLL_SYS_HALF_LF 0x00000080 |
| 786 | #define BP_ANADIG_PLL_SYS_DIV_SELECT 0 |
| 787 | #define BM_ANADIG_PLL_SYS_DIV_SELECT 0x0000007F |
| 788 | #define BF_ANADIG_PLL_SYS_DIV_SELECT(v) \ |
| 789 | (((v) << 0) & BM_ANADIG_PLL_SYS_DIV_SELECT) |
| 790 | |
| 791 | #define BM_ANADIG_USB1_PLL_480_CTRL_LOCK 0x80000000 |
| 792 | #define BP_ANADIG_USB1_PLL_480_CTRL_RSVD1 17 |
| 793 | #define BM_ANADIG_USB1_PLL_480_CTRL_RSVD1 0x7FFE0000 |
| 794 | #define BF_ANADIG_USB1_PLL_480_CTRL_RSVD1(v) \ |
| 795 | (((v) << 17) & BM_ANADIG_USB1_PLL_480_CTRL_RSVD1) |
| 796 | #define BM_ANADIG_USB1_PLL_480_CTRL_BYPASS 0x00010000 |
| 797 | #define BP_ANADIG_USB1_PLL_480_CTRL_BYPASS_CLK_SRC 14 |
| 798 | #define BM_ANADIG_USB1_PLL_480_CTRL_BYPASS_CLK_SRC 0x0000C000 |
| 799 | #define BF_ANADIG_USB1_PLL_480_CTRL_BYPASS_CLK_SRC(v) \ |
| 800 | (((v) << 14) & BM_ANADIG_USB1_PLL_480_CTRL_BYPASS_CLK_SRC) |
| 801 | #define BV_ANADIG_USB1_PLL_480_CTRL_BYPASS_CLK_SRC__OSC_24M 0x0 |
| 802 | #define BV_ANADIG_USB1_PLL_480_CTRL_BYPASS_CLK_SRC__ANACLK_1 0x1 |
| 803 | #define BV_ANADIG_USB1_PLL_480_CTRL_BYPASS_CLK_SRC__ANACLK_2 0x2 |
| 804 | #define BV_ANADIG_USB1_PLL_480_CTRL_BYPASS_CLK_SRC__XOR 0x3 |
| 805 | #define BM_ANADIG_USB1_PLL_480_CTRL_ENABLE 0x00002000 |
| 806 | #define BM_ANADIG_USB1_PLL_480_CTRL_POWER 0x00001000 |
| 807 | #define BM_ANADIG_USB1_PLL_480_CTRL_HOLD_RING_OFF 0x00000800 |
| 808 | #define BM_ANADIG_USB1_PLL_480_CTRL_DOUBLE_CP 0x00000400 |
| 809 | #define BM_ANADIG_USB1_PLL_480_CTRL_HALF_CP 0x00000200 |
| 810 | #define BM_ANADIG_USB1_PLL_480_CTRL_DOUBLE_LF 0x00000100 |
| 811 | #define BM_ANADIG_USB1_PLL_480_CTRL_HALF_LF 0x00000080 |
| 812 | #define BM_ANADIG_USB1_PLL_480_CTRL_EN_USB_CLKS 0x00000040 |
| 813 | #define BM_ANADIG_USB1_PLL_480_CTRL_RSVD0 0x00000020 |
| 814 | #define BP_ANADIG_USB1_PLL_480_CTRL_CONTROL0 2 |
| 815 | #define BM_ANADIG_USB1_PLL_480_CTRL_CONTROL0 0x0000001C |
| 816 | #define BF_ANADIG_USB1_PLL_480_CTRL_CONTROL0(v) \ |
| 817 | (((v) << 2) & BM_ANADIG_USB1_PLL_480_CTRL_CONTROL0) |
| 818 | #define BP_ANADIG_USB1_PLL_480_CTRL_DIV_SELECT 0 |
| 819 | #define BM_ANADIG_USB1_PLL_480_CTRL_DIV_SELECT 0x00000003 |
| 820 | #define BF_ANADIG_USB1_PLL_480_CTRL_DIV_SELECT(v) \ |
| 821 | (((v) << 0) & BM_ANADIG_USB1_PLL_480_CTRL_DIV_SELECT) |
| 822 | |
| 823 | #define BM_ANADIG_PLL_528_LOCK 0x80000000 |
| 824 | #define BP_ANADIG_PLL_528_RSVD1 19 |
| 825 | #define BM_ANADIG_PLL_528_RSVD1 0x7FF80000 |
| 826 | #define BF_ANADIG_PLL_528_RSVD1(v) \ |
| 827 | (((v) << 19) & BM_ANADIG_PLL_528_RSVD1) |
| 828 | #define BM_ANADIG_PLL_528_PFD_OFFSET_EN 0x00040000 |
| 829 | #define BM_ANADIG_PLL_528_DITHER_ENABLE 0x00020000 |
| 830 | #define BM_ANADIG_PLL_528_BYPASS 0x00010000 |
| 831 | #define BP_ANADIG_PLL_528_BYPASS_CLK_SRC 14 |
| 832 | #define BM_ANADIG_PLL_528_BYPASS_CLK_SRC 0x0000C000 |
| 833 | #define BF_ANADIG_PLL_528_BYPASS_CLK_SRC(v) \ |
| 834 | (((v) << 14) & BM_ANADIG_PLL_528_BYPASS_CLK_SRC) |
| 835 | #define BV_ANADIG_PLL_528_BYPASS_CLK_SRC__OSC_24M 0x0 |
| 836 | #define BV_ANADIG_PLL_528_BYPASS_CLK_SRC__ANACLK_1 0x1 |
| 837 | #define BV_ANADIG_PLL_528_BYPASS_CLK_SRC__ANACLK_2 0x2 |
| 838 | #define BV_ANADIG_PLL_528_BYPASS_CLK_SRC__XOR 0x3 |
| 839 | #define BM_ANADIG_PLL_528_ENABLE 0x00002000 |
| 840 | #define BM_ANADIG_PLL_528_POWERDOWN 0x00001000 |
| 841 | #define BM_ANADIG_PLL_528_HOLD_RING_OFF 0x00000800 |
| 842 | #define BM_ANADIG_PLL_528_DOUBLE_CP 0x00000400 |
| 843 | #define BM_ANADIG_PLL_528_HALF_CP 0x00000200 |
| 844 | #define BM_ANADIG_PLL_528_DOUBLE_LF 0x00000100 |
| 845 | #define BM_ANADIG_PLL_528_HALF_LF 0x00000080 |
| 846 | #define BP_ANADIG_PLL_528_RSVD0 1 |
| 847 | #define BM_ANADIG_PLL_528_RSVD0 0x0000007E |
| 848 | #define BF_ANADIG_PLL_528_RSVD0(v) \ |
| 849 | (((v) << 1) & BM_ANADIG_PLL_528_RSVD0) |
| 850 | #define BM_ANADIG_PLL_528_DIV_SELECT 0x00000001 |
| 851 | |
| 852 | #define BP_ANADIG_PLL_528_SS_STOP 16 |
| 853 | #define BM_ANADIG_PLL_528_SS_STOP 0xFFFF0000 |
| 854 | #define BF_ANADIG_PLL_528_SS_STOP(v) \ |
| 855 | (((v) << 16) & BM_ANADIG_PLL_528_SS_STOP) |
| 856 | #define BM_ANADIG_PLL_528_SS_ENABLE 0x00008000 |
| 857 | #define BP_ANADIG_PLL_528_SS_STEP 0 |
| 858 | #define BM_ANADIG_PLL_528_SS_STEP 0x00007FFF |
| 859 | #define BF_ANADIG_PLL_528_SS_STEP(v) \ |
| 860 | (((v) << 0) & BM_ANADIG_PLL_528_SS_STEP) |
| 861 | |
| 862 | #define BP_ANADIG_PLL_528_NUM_RSVD0 30 |
| 863 | #define BM_ANADIG_PLL_528_NUM_RSVD0 0xC0000000 |
| 864 | #define BF_ANADIG_PLL_528_NUM_RSVD0(v) \ |
| 865 | (((v) << 30) & BM_ANADIG_PLL_528_NUM_RSVD0) |
| 866 | #define BP_ANADIG_PLL_528_NUM_A 0 |
| 867 | #define BM_ANADIG_PLL_528_NUM_A 0x3FFFFFFF |
| 868 | #define BF_ANADIG_PLL_528_NUM_A(v) \ |
| 869 | (((v) << 0) & BM_ANADIG_PLL_528_NUM_A) |
| 870 | |
| 871 | #define BP_ANADIG_PLL_528_DENOM_RSVD0 30 |
| 872 | #define BM_ANADIG_PLL_528_DENOM_RSVD0 0xC0000000 |
| 873 | #define BF_ANADIG_PLL_528_DENOM_RSVD0(v) \ |
| 874 | (((v) << 30) & BM_ANADIG_PLL_528_DENOM_RSVD0) |
| 875 | #define BP_ANADIG_PLL_528_DENOM_B 0 |
| 876 | #define BM_ANADIG_PLL_528_DENOM_B 0x3FFFFFFF |
| 877 | #define BF_ANADIG_PLL_528_DENOM_B(v) \ |
| 878 | (((v) << 0) & BM_ANADIG_PLL_528_DENOM_B) |
| 879 | |
| 880 | #define BM_ANADIG_PLL_AUDIO_LOCK 0x80000000 |
| 881 | #define BP_ANADIG_PLL_AUDIO_RSVD0 22 |
| 882 | #define BM_ANADIG_PLL_AUDIO_RSVD0 0x7FC00000 |
| 883 | #define BF_ANADIG_PLL_AUDIO_RSVD0(v) \ |
| 884 | (((v) << 22) & BM_ANADIG_PLL_AUDIO_RSVD0) |
| 885 | #define BM_ANADIG_PLL_AUDIO_SSC_EN 0x00200000 |
| 886 | #define BP_ANADIG_PLL_AUDIO_TEST_DIV_SELECT 19 |
| 887 | #define BM_ANADIG_PLL_AUDIO_TEST_DIV_SELECT 0x00180000 |
| 888 | #define BF_ANADIG_PLL_AUDIO_TEST_DIV_SELECT(v) \ |
| 889 | (((v) << 19) & BM_ANADIG_PLL_AUDIO_TEST_DIV_SELECT) |
| 890 | #define BM_ANADIG_PLL_AUDIO_PFD_OFFSET_EN 0x00040000 |
| 891 | #define BM_ANADIG_PLL_AUDIO_DITHER_ENABLE 0x00020000 |
| 892 | #define BM_ANADIG_PLL_AUDIO_BYPASS 0x00010000 |
| 893 | #define BP_ANADIG_PLL_AUDIO_BYPASS_CLK_SRC 14 |
| 894 | #define BM_ANADIG_PLL_AUDIO_BYPASS_CLK_SRC 0x0000C000 |
| 895 | #define BF_ANADIG_PLL_AUDIO_BYPASS_CLK_SRC(v) \ |
| 896 | (((v) << 14) & BM_ANADIG_PLL_AUDIO_BYPASS_CLK_SRC) |
| 897 | #define BV_ANADIG_PLL_AUDIO_BYPASS_CLK_SRC__OSC_24M 0x0 |
| 898 | #define BV_ANADIG_PLL_AUDIO_BYPASS_CLK_SRC__ANACLK_1 0x1 |
| 899 | #define BV_ANADIG_PLL_AUDIO_BYPASS_CLK_SRC__ANACLK_2 0x2 |
| 900 | #define BV_ANADIG_PLL_AUDIO_BYPASS_CLK_SRC__XOR 0x3 |
| 901 | #define BM_ANADIG_PLL_AUDIO_ENABLE 0x00002000 |
| 902 | #define BM_ANADIG_PLL_AUDIO_POWERDOWN 0x00001000 |
| 903 | #define BM_ANADIG_PLL_AUDIO_HOLD_RING_OFF 0x00000800 |
| 904 | #define BM_ANADIG_PLL_AUDIO_DOUBLE_CP 0x00000400 |
| 905 | #define BM_ANADIG_PLL_AUDIO_HALF_CP 0x00000200 |
| 906 | #define BM_ANADIG_PLL_AUDIO_DOUBLE_LF 0x00000100 |
| 907 | #define BM_ANADIG_PLL_AUDIO_HALF_LF 0x00000080 |
| 908 | #define BP_ANADIG_PLL_AUDIO_DIV_SELECT 0 |
| 909 | #define BM_ANADIG_PLL_AUDIO_DIV_SELECT 0x0000007F |
| 910 | #define BF_ANADIG_PLL_AUDIO_DIV_SELECT(v) \ |
| 911 | (((v) << 0) & BM_ANADIG_PLL_AUDIO_DIV_SELECT) |
| 912 | |
| 913 | #define BP_ANADIG_PLL_AUDIO_NUM_RSVD0 30 |
| 914 | #define BM_ANADIG_PLL_AUDIO_NUM_RSVD0 0xC0000000 |
| 915 | #define BF_ANADIG_PLL_AUDIO_NUM_RSVD0(v) \ |
| 916 | (((v) << 30) & BM_ANADIG_PLL_AUDIO_NUM_RSVD0) |
| 917 | #define BP_ANADIG_PLL_AUDIO_NUM_A 0 |
| 918 | #define BM_ANADIG_PLL_AUDIO_NUM_A 0x3FFFFFFF |
| 919 | #define BF_ANADIG_PLL_AUDIO_NUM_A(v) \ |
| 920 | (((v) << 0) & BM_ANADIG_PLL_AUDIO_NUM_A) |
| 921 | |
| 922 | #define BP_ANADIG_PLL_AUDIO_DENOM_RSVD0 30 |
| 923 | #define BM_ANADIG_PLL_AUDIO_DENOM_RSVD0 0xC0000000 |
| 924 | #define BF_ANADIG_PLL_AUDIO_DENOM_RSVD0(v) \ |
| 925 | (((v) << 30) & BM_ANADIG_PLL_AUDIO_DENOM_RSVD0) |
| 926 | #define BP_ANADIG_PLL_AUDIO_DENOM_B 0 |
| 927 | #define BM_ANADIG_PLL_AUDIO_DENOM_B 0x3FFFFFFF |
| 928 | #define BF_ANADIG_PLL_AUDIO_DENOM_B(v) \ |
| 929 | (((v) << 0) & BM_ANADIG_PLL_AUDIO_DENOM_B) |
| 930 | |
| 931 | #define BM_ANADIG_PLL_VIDEO_LOCK 0x80000000 |
| 932 | #define BP_ANADIG_PLL_VIDEO_RSVD0 22 |
| 933 | #define BM_ANADIG_PLL_VIDEO_RSVD0 0x7FC00000 |
| 934 | #define BF_ANADIG_PLL_VIDEO_RSVD0(v) \ |
| 935 | (((v) << 22) & BM_ANADIG_PLL_VIDEO_RSVD0) |
| 936 | #define BM_ANADIG_PLL_VIDEO_SSC_EN 0x00200000 |
Soeren Moch | 54a4bcb | 2014-10-24 16:33:28 +0200 | [diff] [blame] | 937 | #define BP_ANADIG_PLL_VIDEO_POST_DIV_SELECT 19 |
| 938 | #define BM_ANADIG_PLL_VIDEO_POST_DIV_SELECT 0x00180000 |
| 939 | #define BF_ANADIG_PLL_VIDEO_POST_DIV_SELECT(v) \ |
| 940 | (((v) << 19) & BM_ANADIG_PLL_VIDEO_POST_DIV_SELECT) |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 941 | #define BM_ANADIG_PLL_VIDEO_PFD_OFFSET_EN 0x00040000 |
| 942 | #define BM_ANADIG_PLL_VIDEO_DITHER_ENABLE 0x00020000 |
| 943 | #define BM_ANADIG_PLL_VIDEO_BYPASS 0x00010000 |
| 944 | #define BP_ANADIG_PLL_VIDEO_BYPASS_CLK_SRC 14 |
| 945 | #define BM_ANADIG_PLL_VIDEO_BYPASS_CLK_SRC 0x0000C000 |
| 946 | #define BF_ANADIG_PLL_VIDEO_BYPASS_CLK_SRC(v) \ |
| 947 | (((v) << 14) & BM_ANADIG_PLL_VIDEO_BYPASS_CLK_SRC) |
| 948 | #define BV_ANADIG_PLL_VIDEO_BYPASS_CLK_SRC__OSC_24M 0x0 |
| 949 | #define BV_ANADIG_PLL_VIDEO_BYPASS_CLK_SRC__ANACLK_1 0x1 |
| 950 | #define BV_ANADIG_PLL_VIDEO_BYPASS_CLK_SRC__ANACLK_2 0x2 |
| 951 | #define BV_ANADIG_PLL_VIDEO_BYPASS_CLK_SRC__XOR 0x3 |
| 952 | #define BM_ANADIG_PLL_VIDEO_ENABLE 0x00002000 |
| 953 | #define BM_ANADIG_PLL_VIDEO_POWERDOWN 0x00001000 |
| 954 | #define BM_ANADIG_PLL_VIDEO_HOLD_RING_OFF 0x00000800 |
| 955 | #define BM_ANADIG_PLL_VIDEO_DOUBLE_CP 0x00000400 |
| 956 | #define BM_ANADIG_PLL_VIDEO_HALF_CP 0x00000200 |
| 957 | #define BM_ANADIG_PLL_VIDEO_DOUBLE_LF 0x00000100 |
| 958 | #define BM_ANADIG_PLL_VIDEO_HALF_LF 0x00000080 |
| 959 | #define BP_ANADIG_PLL_VIDEO_DIV_SELECT 0 |
| 960 | #define BM_ANADIG_PLL_VIDEO_DIV_SELECT 0x0000007F |
| 961 | #define BF_ANADIG_PLL_VIDEO_DIV_SELECT(v) \ |
| 962 | (((v) << 0) & BM_ANADIG_PLL_VIDEO_DIV_SELECT) |
| 963 | |
| 964 | #define BP_ANADIG_PLL_VIDEO_NUM_RSVD0 30 |
| 965 | #define BM_ANADIG_PLL_VIDEO_NUM_RSVD0 0xC0000000 |
| 966 | #define BF_ANADIG_PLL_VIDEO_NUM_RSVD0(v) \ |
| 967 | (((v) << 30) & BM_ANADIG_PLL_VIDEO_NUM_RSVD0) |
| 968 | #define BP_ANADIG_PLL_VIDEO_NUM_A 0 |
| 969 | #define BM_ANADIG_PLL_VIDEO_NUM_A 0x3FFFFFFF |
| 970 | #define BF_ANADIG_PLL_VIDEO_NUM_A(v) \ |
| 971 | (((v) << 0) & BM_ANADIG_PLL_VIDEO_NUM_A) |
| 972 | |
| 973 | #define BP_ANADIG_PLL_VIDEO_DENOM_RSVD0 30 |
| 974 | #define BM_ANADIG_PLL_VIDEO_DENOM_RSVD0 0xC0000000 |
| 975 | #define BF_ANADIG_PLL_VIDEO_DENOM_RSVD0(v) \ |
| 976 | (((v) << 30) & BM_ANADIG_PLL_VIDEO_DENOM_RSVD0) |
| 977 | #define BP_ANADIG_PLL_VIDEO_DENOM_B 0 |
| 978 | #define BM_ANADIG_PLL_VIDEO_DENOM_B 0x3FFFFFFF |
| 979 | #define BF_ANADIG_PLL_VIDEO_DENOM_B(v) \ |
| 980 | (((v) << 0) & BM_ANADIG_PLL_VIDEO_DENOM_B) |
| 981 | |
| 982 | #define BM_ANADIG_PLL_ENET_LOCK 0x80000000 |
| 983 | #define BP_ANADIG_PLL_ENET_RSVD1 21 |
| 984 | #define BM_ANADIG_PLL_ENET_RSVD1 0x7FE00000 |
| 985 | #define BF_ANADIG_PLL_ENET_RSVD1(v) \ |
| 986 | (((v) << 21) & BM_ANADIG_PLL_ENET_RSVD1) |
Fabio Estevam | 3bc9bc1 | 2014-08-15 00:24:29 -0300 | [diff] [blame] | 987 | #define BM_ANADIG_PLL_ENET_REF_25M_ENABLE 0x00200000 |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 988 | #define BM_ANADIG_PLL_ENET_ENABLE_SATA 0x00100000 |
| 989 | #define BM_ANADIG_PLL_ENET_ENABLE_PCIE 0x00080000 |
| 990 | #define BM_ANADIG_PLL_ENET_PFD_OFFSET_EN 0x00040000 |
| 991 | #define BM_ANADIG_PLL_ENET_DITHER_ENABLE 0x00020000 |
| 992 | #define BM_ANADIG_PLL_ENET_BYPASS 0x00010000 |
| 993 | #define BP_ANADIG_PLL_ENET_BYPASS_CLK_SRC 14 |
| 994 | #define BM_ANADIG_PLL_ENET_BYPASS_CLK_SRC 0x0000C000 |
| 995 | #define BF_ANADIG_PLL_ENET_BYPASS_CLK_SRC(v) \ |
| 996 | (((v) << 14) & BM_ANADIG_PLL_ENET_BYPASS_CLK_SRC) |
| 997 | #define BV_ANADIG_PLL_ENET_BYPASS_CLK_SRC__OSC_24M 0x0 |
| 998 | #define BV_ANADIG_PLL_ENET_BYPASS_CLK_SRC__ANACLK_1 0x1 |
| 999 | #define BV_ANADIG_PLL_ENET_BYPASS_CLK_SRC__ANACLK_2 0x2 |
| 1000 | #define BV_ANADIG_PLL_ENET_BYPASS_CLK_SRC__XOR 0x3 |
| 1001 | #define BM_ANADIG_PLL_ENET_ENABLE 0x00002000 |
| 1002 | #define BM_ANADIG_PLL_ENET_POWERDOWN 0x00001000 |
| 1003 | #define BM_ANADIG_PLL_ENET_HOLD_RING_OFF 0x00000800 |
| 1004 | #define BM_ANADIG_PLL_ENET_DOUBLE_CP 0x00000400 |
| 1005 | #define BM_ANADIG_PLL_ENET_HALF_CP 0x00000200 |
| 1006 | #define BM_ANADIG_PLL_ENET_DOUBLE_LF 0x00000100 |
| 1007 | #define BM_ANADIG_PLL_ENET_HALF_LF 0x00000080 |
| 1008 | #define BP_ANADIG_PLL_ENET_RSVD0 2 |
| 1009 | #define BM_ANADIG_PLL_ENET_RSVD0 0x0000007C |
| 1010 | #define BF_ANADIG_PLL_ENET_RSVD0(v) \ |
| 1011 | (((v) << 2) & BM_ANADIG_PLL_ENET_RSVD0) |
| 1012 | #define BP_ANADIG_PLL_ENET_DIV_SELECT 0 |
| 1013 | #define BM_ANADIG_PLL_ENET_DIV_SELECT 0x00000003 |
| 1014 | #define BF_ANADIG_PLL_ENET_DIV_SELECT(v) \ |
| 1015 | (((v) << 0) & BM_ANADIG_PLL_ENET_DIV_SELECT) |
| 1016 | |
| 1017 | #define BM_ANADIG_PFD_480_PFD3_CLKGATE 0x80000000 |
| 1018 | #define BM_ANADIG_PFD_480_PFD3_STABLE 0x40000000 |
| 1019 | #define BP_ANADIG_PFD_480_PFD3_FRAC 24 |
| 1020 | #define BM_ANADIG_PFD_480_PFD3_FRAC 0x3F000000 |
| 1021 | #define BF_ANADIG_PFD_480_PFD3_FRAC(v) \ |
| 1022 | (((v) << 24) & BM_ANADIG_PFD_480_PFD3_FRAC) |
| 1023 | #define BM_ANADIG_PFD_480_PFD2_CLKGATE 0x00800000 |
| 1024 | #define BM_ANADIG_PFD_480_PFD2_STABLE 0x00400000 |
| 1025 | #define BP_ANADIG_PFD_480_PFD2_FRAC 16 |
| 1026 | #define BM_ANADIG_PFD_480_PFD2_FRAC 0x003F0000 |
| 1027 | #define BF_ANADIG_PFD_480_PFD2_FRAC(v) \ |
| 1028 | (((v) << 16) & BM_ANADIG_PFD_480_PFD2_FRAC) |
| 1029 | #define BM_ANADIG_PFD_480_PFD1_CLKGATE 0x00008000 |
| 1030 | #define BM_ANADIG_PFD_480_PFD1_STABLE 0x00004000 |
| 1031 | #define BP_ANADIG_PFD_480_PFD1_FRAC 8 |
| 1032 | #define BM_ANADIG_PFD_480_PFD1_FRAC 0x00003F00 |
| 1033 | #define BF_ANADIG_PFD_480_PFD1_FRAC(v) \ |
| 1034 | (((v) << 8) & BM_ANADIG_PFD_480_PFD1_FRAC) |
| 1035 | #define BM_ANADIG_PFD_480_PFD0_CLKGATE 0x00000080 |
| 1036 | #define BM_ANADIG_PFD_480_PFD0_STABLE 0x00000040 |
| 1037 | #define BP_ANADIG_PFD_480_PFD0_FRAC 0 |
| 1038 | #define BM_ANADIG_PFD_480_PFD0_FRAC 0x0000003F |
| 1039 | #define BF_ANADIG_PFD_480_PFD0_FRAC(v) \ |
| 1040 | (((v) << 0) & BM_ANADIG_PFD_480_PFD0_FRAC) |
| 1041 | |
| 1042 | #define BM_ANADIG_PFD_528_PFD3_CLKGATE 0x80000000 |
| 1043 | #define BM_ANADIG_PFD_528_PFD3_STABLE 0x40000000 |
| 1044 | #define BP_ANADIG_PFD_528_PFD3_FRAC 24 |
| 1045 | #define BM_ANADIG_PFD_528_PFD3_FRAC 0x3F000000 |
| 1046 | #define BF_ANADIG_PFD_528_PFD3_FRAC(v) \ |
| 1047 | (((v) << 24) & BM_ANADIG_PFD_528_PFD3_FRAC) |
| 1048 | #define BM_ANADIG_PFD_528_PFD2_CLKGATE 0x00800000 |
| 1049 | #define BM_ANADIG_PFD_528_PFD2_STABLE 0x00400000 |
| 1050 | #define BP_ANADIG_PFD_528_PFD2_FRAC 16 |
| 1051 | #define BM_ANADIG_PFD_528_PFD2_FRAC 0x003F0000 |
| 1052 | #define BF_ANADIG_PFD_528_PFD2_FRAC(v) \ |
| 1053 | (((v) << 16) & BM_ANADIG_PFD_528_PFD2_FRAC) |
| 1054 | #define BM_ANADIG_PFD_528_PFD1_CLKGATE 0x00008000 |
| 1055 | #define BM_ANADIG_PFD_528_PFD1_STABLE 0x00004000 |
| 1056 | #define BP_ANADIG_PFD_528_PFD1_FRAC 8 |
| 1057 | #define BM_ANADIG_PFD_528_PFD1_FRAC 0x00003F00 |
| 1058 | #define BF_ANADIG_PFD_528_PFD1_FRAC(v) \ |
| 1059 | (((v) << 8) & BM_ANADIG_PFD_528_PFD1_FRAC) |
| 1060 | #define BM_ANADIG_PFD_528_PFD0_CLKGATE 0x00000080 |
| 1061 | #define BM_ANADIG_PFD_528_PFD0_STABLE 0x00000040 |
| 1062 | #define BP_ANADIG_PFD_528_PFD0_FRAC 0 |
| 1063 | #define BM_ANADIG_PFD_528_PFD0_FRAC 0x0000003F |
| 1064 | #define BF_ANADIG_PFD_528_PFD0_FRAC(v) \ |
| 1065 | (((v) << 0) & BM_ANADIG_PFD_528_PFD0_FRAC) |
| 1066 | |
Peng Fan | c0e0ebf | 2015-01-15 14:22:32 +0800 | [diff] [blame] | 1067 | #define BM_ANADIG_ANA_MISC0_REFTOP_SELBIASOFF 0x00000008 |
| 1068 | |
Jason Liu | dec1112 | 2011-11-25 00:18:02 +0000 | [diff] [blame] | 1069 | #endif /*__ARCH_ARM_MACH_MX6_CCM_REGS_H__ */ |