Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 1 | /* |
Rajan Vaja | 0ac2be1 | 2018-01-17 02:39:21 -0800 | [diff] [blame] | 2 | * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ZYNQMP_DEF_H__ |
| 8 | #define __ZYNQMP_DEF_H__ |
| 9 | |
| 10 | #include <common_def.h> |
| 11 | |
Soren Brinkmann | 99c0d7b | 2016-06-10 09:57:14 -0700 | [diff] [blame] | 12 | #define ZYNQMP_CONSOLE_ID_cadence 1 |
| 13 | #define ZYNQMP_CONSOLE_ID_cadence0 1 |
| 14 | #define ZYNQMP_CONSOLE_ID_cadence1 2 |
| 15 | #define ZYNQMP_CONSOLE_ID_dcc 3 |
| 16 | |
| 17 | #define ZYNQMP_CONSOLE_IS(con) (ZYNQMP_CONSOLE_ID_ ## con == ZYNQMP_CONSOLE) |
| 18 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 19 | /* Firmware Image Package */ |
| 20 | #define ZYNQMP_PRIMARY_CPU 0 |
| 21 | |
| 22 | /* Memory location options for Shared data and TSP in ZYNQMP */ |
| 23 | #define ZYNQMP_IN_TRUSTED_SRAM 0 |
| 24 | #define ZYNQMP_IN_TRUSTED_DRAM 1 |
| 25 | |
| 26 | /******************************************************************************* |
| 27 | * ZYNQMP memory map related constants |
| 28 | ******************************************************************************/ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 29 | /* Aggregate of all devices in the first GB */ |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 30 | #define DEVICE0_BASE U(0xFF000000) |
| 31 | #define DEVICE0_SIZE U(0x00E00000) |
| 32 | #define DEVICE1_BASE U(0xF9000000) |
| 33 | #define DEVICE1_SIZE U(0x00800000) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 34 | |
| 35 | /* For cpu reset APU space here too 0xFE5F1000 CRF_APB*/ |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 36 | #define CRF_APB_BASE U(0xFD1A0000) |
| 37 | #define CRF_APB_SIZE U(0x00600000) |
| 38 | #define CRF_APB_CLK_BASE U(0xFD1A0020) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 39 | |
| 40 | /* CRF registers and bitfields */ |
| 41 | #define CRF_APB_RST_FPD_APU (CRF_APB_BASE + 0X00000104) |
| 42 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 43 | #define CRF_APB_RST_FPD_APU_ACPU_RESET (U(1) << 0) |
| 44 | #define CRF_APB_RST_FPD_APU_ACPU_PWRON_RESET (U(1) << 10) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 45 | |
| 46 | /* CRL registers and bitfields */ |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 47 | #define CRL_APB_BASE U(0xFF5E0000) |
Soren Brinkmann | b43d943 | 2016-04-18 11:49:42 -0700 | [diff] [blame] | 48 | #define CRL_APB_BOOT_MODE_USER (CRL_APB_BASE + 0x200) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 49 | #define CRL_APB_RESET_CTRL (CRL_APB_BASE + 0x218) |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 50 | #define CRL_APB_RST_LPD_TOP (CRL_APB_BASE + 0x23C) |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 51 | #define CRL_APB_CLK_BASE U(0xFF5E0020) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 52 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 53 | #define CRL_APB_RPU_AMBA_RESET (U(1) << 2) |
| 54 | #define CRL_APB_RPLL_CTRL_BYPASS (U(1) << 3) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 55 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 56 | #define CRL_APB_RESET_CTRL_SOFT_RESET (U(1) << 4) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 57 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 58 | #define CRL_APB_BOOT_MODE_MASK (U(0xf) << 0) |
| 59 | #define ZYNQMP_BOOTMODE_JTAG U(0) |
Soren Brinkmann | b43d943 | 2016-04-18 11:49:42 -0700 | [diff] [blame] | 60 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 61 | /* system counter registers and bitfields */ |
| 62 | #define IOU_SCNTRS_BASE 0xFF260000 |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 63 | #define IOU_SCNTRS_BASEFREQ (IOU_SCNTRS_BASE + 0x20) |
| 64 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 65 | /* APU registers and bitfields */ |
| 66 | #define APU_BASE 0xFD5C0000 |
| 67 | #define APU_CONFIG_0 (APU_BASE + 0x20) |
| 68 | #define APU_RVBAR_L_0 (APU_BASE + 0x40) |
| 69 | #define APU_RVBAR_H_0 (APU_BASE + 0x44) |
| 70 | #define APU_PWRCTL (APU_BASE + 0x90) |
| 71 | |
| 72 | #define APU_CONFIG_0_VINITHI_SHIFT 8 |
| 73 | #define APU_0_PWRCTL_CPUPWRDWNREQ_MASK 1 |
| 74 | #define APU_1_PWRCTL_CPUPWRDWNREQ_MASK 2 |
| 75 | #define APU_2_PWRCTL_CPUPWRDWNREQ_MASK 4 |
| 76 | #define APU_3_PWRCTL_CPUPWRDWNREQ_MASK 8 |
| 77 | |
| 78 | /* PMU registers and bitfields */ |
| 79 | #define PMU_GLOBAL_BASE 0xFFD80000 |
| 80 | #define PMU_GLOBAL_CNTRL (PMU_GLOBAL_BASE + 0) |
Michal Simek | ef8f559 | 2015-06-15 14:22:50 +0200 | [diff] [blame] | 81 | #define PMU_GLOBAL_GEN_STORAGE6 (PMU_GLOBAL_BASE + 0x48) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 82 | #define PMU_GLOBAL_REQ_PWRUP_STATUS (PMU_GLOBAL_BASE + 0x110) |
| 83 | #define PMU_GLOBAL_REQ_PWRUP_EN (PMU_GLOBAL_BASE + 0x118) |
| 84 | #define PMU_GLOBAL_REQ_PWRUP_DIS (PMU_GLOBAL_BASE + 0x11c) |
| 85 | #define PMU_GLOBAL_REQ_PWRUP_TRIG (PMU_GLOBAL_BASE + 0x120) |
| 86 | |
| 87 | #define PMU_GLOBAL_CNTRL_FW_IS_PRESENT (1 << 4) |
| 88 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 89 | /******************************************************************************* |
| 90 | * CCI-400 related constants |
| 91 | ******************************************************************************/ |
| 92 | #define PLAT_ARM_CCI_BASE 0xFD6E0000 |
| 93 | #define PLAT_ARM_CCI_CLUSTER0_SL_IFACE_IX 3 |
| 94 | #define PLAT_ARM_CCI_CLUSTER1_SL_IFACE_IX 4 |
| 95 | |
| 96 | /******************************************************************************* |
| 97 | * GIC-400 & interrupt handling related constants |
| 98 | ******************************************************************************/ |
| 99 | #define BASE_GICD_BASE 0xF9010000 |
| 100 | #define BASE_GICC_BASE 0xF9020000 |
| 101 | #define BASE_GICH_BASE 0xF9040000 |
| 102 | #define BASE_GICV_BASE 0xF9060000 |
| 103 | |
Siva Durga Prasad Paladugu | efd431b | 2018-04-30 20:12:12 +0530 | [diff] [blame] | 104 | #if ZYNQMP_WDT_RESTART |
| 105 | #define IRQ_SEC_IPI_APU 67 |
| 106 | #define IRQ_TTC3_1 77 |
| 107 | #define TTC3_BASE_ADDR 0xFF140000 |
| 108 | #define TTC3_INTR_REGISTER_1 (TTC3_BASE_ADDR + 0x54) |
| 109 | #define TTC3_INTR_ENABLE_1 (TTC3_BASE_ADDR + 0x60) |
| 110 | #endif |
| 111 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 112 | #define ARM_IRQ_SEC_PHY_TIMER 29 |
| 113 | |
| 114 | #define ARM_IRQ_SEC_SGI_0 8 |
| 115 | #define ARM_IRQ_SEC_SGI_1 9 |
| 116 | #define ARM_IRQ_SEC_SGI_2 10 |
| 117 | #define ARM_IRQ_SEC_SGI_3 11 |
| 118 | #define ARM_IRQ_SEC_SGI_4 12 |
| 119 | #define ARM_IRQ_SEC_SGI_5 13 |
| 120 | #define ARM_IRQ_SEC_SGI_6 14 |
| 121 | #define ARM_IRQ_SEC_SGI_7 15 |
| 122 | |
| 123 | #define MAX_INTR_EL3 128 |
| 124 | |
| 125 | /******************************************************************************* |
| 126 | * UART related constants |
| 127 | ******************************************************************************/ |
| 128 | #define ZYNQMP_UART0_BASE 0xFF000000 |
Soren Brinkmann | 836418d | 2016-05-27 08:56:53 -0700 | [diff] [blame] | 129 | #define ZYNQMP_UART1_BASE 0xFF010000 |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 130 | |
Soren Brinkmann | 99c0d7b | 2016-06-10 09:57:14 -0700 | [diff] [blame] | 131 | #if ZYNQMP_CONSOLE_IS(cadence) |
| 132 | # define ZYNQMP_UART_BASE ZYNQMP_UART0_BASE |
| 133 | #elif ZYNQMP_CONSOLE_IS(cadence1) |
| 134 | # define ZYNQMP_UART_BASE ZYNQMP_UART1_BASE |
| 135 | #else |
| 136 | # error "invalid ZYNQMP_CONSOLE" |
| 137 | #endif |
| 138 | |
| 139 | #define PLAT_ARM_CRASH_UART_BASE ZYNQMP_UART_BASE |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 140 | /* impossible to call C routine how it is done now - hardcode any value */ |
| 141 | #define PLAT_ARM_CRASH_UART_CLK_IN_HZ 100000000 /* FIXME */ |
| 142 | |
| 143 | /* Must be non zero */ |
| 144 | #define ZYNQMP_UART_BAUDRATE 115200 |
| 145 | #define ARM_CONSOLE_BAUDRATE ZYNQMP_UART_BAUDRATE |
| 146 | |
| 147 | /* Silicon version detection */ |
| 148 | #define ZYNQMP_SILICON_VER_MASK 0xF000 |
| 149 | #define ZYNQMP_SILICON_VER_SHIFT 12 |
| 150 | #define ZYNQMP_CSU_VERSION_SILICON 0 |
| 151 | #define ZYNQMP_CSU_VERSION_EP108 1 |
| 152 | #define ZYNQMP_CSU_VERSION_VELOCE 2 |
| 153 | #define ZYNQMP_CSU_VERSION_QEMU 3 |
| 154 | |
| 155 | #define ZYNQMP_RTL_VER_MASK 0xFF0 |
| 156 | #define ZYNQMP_RTL_VER_SHIFT 4 |
| 157 | |
| 158 | #define ZYNQMP_PS_VER_MASK 0xF |
| 159 | #define ZYNQMP_PS_VER_SHIFT 0 |
| 160 | |
| 161 | #define ZYNQMP_CSU_BASEADDR 0xFFCA0000 |
| 162 | #define ZYNQMP_CSU_IDCODE_OFFSET 0x40 |
| 163 | |
| 164 | #define ZYNQMP_CSU_IDCODE_XILINX_ID_SHIFT 0 |
| 165 | #define ZYNQMP_CSU_IDCODE_XILINX_ID_MASK (0xFFF << ZYNQMP_CSU_IDCODE_XILINX_ID_SHIFT) |
| 166 | #define ZYNQMP_CSU_IDCODE_XILINX_ID 0x093 |
| 167 | |
| 168 | #define ZYNQMP_CSU_IDCODE_SVD_SHIFT 12 |
Siva Durga Prasad Paladugu | b982d16 | 2017-08-01 10:23:19 +0530 | [diff] [blame] | 169 | #define ZYNQMP_CSU_IDCODE_SVD_MASK (0x7 << \ |
| 170 | ZYNQMP_CSU_IDCODE_SVD_SHIFT) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 171 | #define ZYNQMP_CSU_IDCODE_DEVICE_CODE_SHIFT 15 |
| 172 | #define ZYNQMP_CSU_IDCODE_DEVICE_CODE_MASK (0xF << ZYNQMP_CSU_IDCODE_DEVICE_CODE_SHIFT) |
| 173 | #define ZYNQMP_CSU_IDCODE_SUB_FAMILY_SHIFT 19 |
| 174 | #define ZYNQMP_CSU_IDCODE_SUB_FAMILY_MASK (0x3 << ZYNQMP_CSU_IDCODE_SUB_FAMILY_SHIFT) |
| 175 | #define ZYNQMP_CSU_IDCODE_FAMILY_SHIFT 21 |
| 176 | #define ZYNQMP_CSU_IDCODE_FAMILY_MASK (0x7F << ZYNQMP_CSU_IDCODE_FAMILY_SHIFT) |
| 177 | #define ZYNQMP_CSU_IDCODE_FAMILY 0x23 |
| 178 | |
| 179 | #define ZYNQMP_CSU_IDCODE_REVISION_SHIFT 28 |
| 180 | #define ZYNQMP_CSU_IDCODE_REVISION_MASK (0xF << ZYNQMP_CSU_IDCODE_REVISION_SHIFT) |
| 181 | #define ZYNQMP_CSU_IDCODE_REVISION 0 |
| 182 | |
| 183 | #define ZYNQMP_CSU_VERSION_OFFSET 0x44 |
| 184 | |
Siva Durga Prasad Paladugu | 83e3725 | 2018-05-01 11:10:25 +0530 | [diff] [blame] | 185 | /* Efuse */ |
| 186 | #define EFUSE_BASEADDR 0xFFCC0000 |
| 187 | #define EFUSE_IPDISABLE_OFFSET 0x1018 |
| 188 | #define EFUSE_IPDISABLE_VERSION 0x1FFU |
Siva Durga Prasad Paladugu | b76656d | 2018-03-05 18:47:15 +0530 | [diff] [blame] | 189 | #define ZYNQMP_EFUSE_IPDISABLE_SHIFT 20 |
Siva Durga Prasad Paladugu | 83e3725 | 2018-05-01 11:10:25 +0530 | [diff] [blame] | 190 | |
Naga Sureshkumar Relli | cf4e714 | 2016-07-01 12:46:43 +0530 | [diff] [blame] | 191 | /* Access control register defines */ |
| 192 | #define ACTLR_EL3_L2ACTLR_BIT (1 << 6) |
| 193 | #define ACTLR_EL3_CPUACTLR_BIT (1 << 0) |
| 194 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 195 | #define IOU_SLCR_BASEADDR U(0xFF180000) |
Rajan Vaja | 0ac2be1 | 2018-01-17 02:39:21 -0800 | [diff] [blame] | 196 | |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 197 | #define ZYNQMP_RPU_GLBL_CNTL U(0xFF9A0000) |
| 198 | #define ZYNQMP_RPU0_CFG U(0xFF9A0100) |
| 199 | #define ZYNQMP_RPU1_CFG U(0xFF9A0200) |
| 200 | #define ZYNQMP_SLSPLIT_MASK U(0x08) |
| 201 | #define ZYNQMP_TCM_COMB_MASK U(0x40) |
| 202 | #define ZYNQMP_SLCLAMP_MASK U(0x10) |
| 203 | #define ZYNQMP_VINITHI_MASK U(0x04) |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 204 | |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 205 | /* Tap delay bypass */ |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 206 | #define IOU_TAPDLY_BYPASS U(0XFF180390) |
| 207 | #define TAP_DELAY_MASK U(0x7) |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 208 | |
| 209 | /* SGMII mode */ |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 210 | #define IOU_GEM_CTRL U(0xFF180360) |
| 211 | #define IOU_GEM_CLK_CTRL U(0xFF180308) |
| 212 | #define SGMII_SD_MASK U(0x3) |
| 213 | #define SGMII_SD_OFFSET U(2) |
| 214 | #define SGMII_PCS_SD_0 U(0x0) |
| 215 | #define SGMII_PCS_SD_1 U(0x1) |
| 216 | #define SGMII_PCS_SD_PHY U(0x2) |
| 217 | #define GEM_SGMII_MASK U(0x4) |
| 218 | #define GEM_CLK_CTRL_MASK U(0xF) |
| 219 | #define GEM_CLK_CTRL_OFFSET U(5) |
| 220 | #define GEM_RX_SRC_SEL_GTR U(0x1) |
| 221 | #define GEM_SGMII_MODE U(0x4) |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 222 | |
| 223 | /* SD DLL reset */ |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 224 | #define ZYNQMP_SD_DLL_CTRL U(0xFF180358) |
| 225 | #define ZYNQMP_SD0_DLL_RST_MASK U(0x00000004) |
| 226 | #define ZYNQMP_SD0_DLL_RST U(0x00000004) |
| 227 | #define ZYNQMP_SD1_DLL_RST_MASK U(0x00040000) |
| 228 | #define ZYNQMP_SD1_DLL_RST U(0x00040000) |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 229 | |
| 230 | /* SD tap delay */ |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 231 | #define ZYNQMP_SD_DLL_CTRL U(0xFF180358) |
| 232 | #define ZYNQMP_SD_ITAP_DLY U(0xFF180314) |
| 233 | #define ZYNQMP_SD_OTAP_DLY U(0xFF180318) |
| 234 | #define ZYNQMP_SD_TAP_OFFSET U(16) |
| 235 | #define ZYNQMP_SD_ITAPCHGWIN_MASK U(0x200) |
| 236 | #define ZYNQMP_SD_ITAPCHGWIN U(0x200) |
| 237 | #define ZYNQMP_SD_ITAPDLYENA_MASK U(0x100) |
| 238 | #define ZYNQMP_SD_ITAPDLYENA U(0x100) |
| 239 | #define ZYNQMP_SD_ITAPDLYSEL_MASK U(0xFF) |
| 240 | #define ZYNQMP_SD_OTAPDLYSEL_MASK U(0x3F) |
| 241 | #define ZYNQMP_SD_OTAPDLYENA_MASK U(0x40) |
| 242 | #define ZYNQMP_SD_OTAPDLYENA U(0x40) |
Rajan Vaja | aea41bb | 2018-01-17 02:39:24 -0800 | [diff] [blame] | 243 | |
Rajan Vaja | d98455b | 2018-01-17 02:39:26 -0800 | [diff] [blame] | 244 | /* Clock control registers */ |
| 245 | /* Full power domain clocks */ |
| 246 | #define CRF_APB_APLL_CTRL (CRF_APB_CLK_BASE + 0x00) |
| 247 | #define CRF_APB_DPLL_CTRL (CRF_APB_CLK_BASE + 0x0c) |
| 248 | #define CRF_APB_VPLL_CTRL (CRF_APB_CLK_BASE + 0x18) |
| 249 | #define CRF_APB_PLL_STATUS (CRF_APB_CLK_BASE + 0x24) |
| 250 | #define CRF_APB_APLL_TO_LPD_CTRL (CRF_APB_CLK_BASE + 0x28) |
| 251 | #define CRF_APB_DPLL_TO_LPD_CTRL (CRF_APB_CLK_BASE + 0x2c) |
| 252 | #define CRF_APB_VPLL_TO_LPD_CTRL (CRF_APB_CLK_BASE + 0x30) |
| 253 | /* Peripheral clocks */ |
| 254 | #define CRF_APB_ACPU_CTRL (CRF_APB_CLK_BASE + 0x40) |
| 255 | #define CRF_APB_DBG_TRACE_CTRL (CRF_APB_CLK_BASE + 0x44) |
| 256 | #define CRF_APB_DBG_FPD_CTRL (CRF_APB_CLK_BASE + 0x48) |
| 257 | #define CRF_APB_DP_VIDEO_REF_CTRL (CRF_APB_CLK_BASE + 0x50) |
| 258 | #define CRF_APB_DP_AUDIO_REF_CTRL (CRF_APB_CLK_BASE + 0x54) |
| 259 | #define CRF_APB_DP_STC_REF_CTRL (CRF_APB_CLK_BASE + 0x5c) |
| 260 | #define CRF_APB_DDR_CTRL (CRF_APB_CLK_BASE + 0x60) |
| 261 | #define CRF_APB_GPU_REF_CTRL (CRF_APB_CLK_BASE + 0x64) |
| 262 | #define CRF_APB_SATA_REF_CTRL (CRF_APB_CLK_BASE + 0x80) |
| 263 | #define CRF_APB_PCIE_REF_CTRL (CRF_APB_CLK_BASE + 0x94) |
| 264 | #define CRF_APB_GDMA_REF_CTRL (CRF_APB_CLK_BASE + 0x98) |
| 265 | #define CRF_APB_DPDMA_REF_CTRL (CRF_APB_CLK_BASE + 0x9c) |
| 266 | #define CRF_APB_TOPSW_MAIN_CTRL (CRF_APB_CLK_BASE + 0xa0) |
| 267 | #define CRF_APB_TOPSW_LSBUS_CTRL (CRF_APB_CLK_BASE + 0xa4) |
| 268 | #define CRF_APB_GTGREF0_REF_CTRL (CRF_APB_CLK_BASE + 0xa8) |
| 269 | #define CRF_APB_DBG_TSTMP_CTRL (CRF_APB_CLK_BASE + 0xd8) |
| 270 | |
| 271 | /* Low power domain clocks */ |
| 272 | #define CRL_APB_IOPLL_CTRL (CRL_APB_CLK_BASE + 0x00) |
| 273 | #define CRL_APB_RPLL_CTRL (CRL_APB_CLK_BASE + 0x10) |
| 274 | #define CRL_APB_PLL_STATUS (CRL_APB_CLK_BASE + 0x20) |
| 275 | #define CRL_APB_IOPLL_TO_FPD_CTRL (CRL_APB_CLK_BASE + 0x24) |
| 276 | #define CRL_APB_RPLL_TO_FPD_CTRL (CRL_APB_CLK_BASE + 0x28) |
| 277 | /* Peripheral clocks */ |
| 278 | #define CRL_APB_USB3_DUAL_REF_CTRL (CRL_APB_CLK_BASE + 0x2c) |
| 279 | #define CRL_APB_GEM0_REF_CTRL (CRL_APB_CLK_BASE + 0x30) |
| 280 | #define CRL_APB_GEM1_REF_CTRL (CRL_APB_CLK_BASE + 0x34) |
| 281 | #define CRL_APB_GEM2_REF_CTRL (CRL_APB_CLK_BASE + 0x38) |
| 282 | #define CRL_APB_GEM3_REF_CTRL (CRL_APB_CLK_BASE + 0x3c) |
| 283 | #define CRL_APB_USB0_BUS_REF_CTRL (CRL_APB_CLK_BASE + 0x40) |
| 284 | #define CRL_APB_USB1_BUS_REF_CTRL (CRL_APB_CLK_BASE + 0x44) |
| 285 | #define CRL_APB_QSPI_REF_CTRL (CRL_APB_CLK_BASE + 0x48) |
| 286 | #define CRL_APB_SDIO0_REF_CTRL (CRL_APB_CLK_BASE + 0x4c) |
| 287 | #define CRL_APB_SDIO1_REF_CTRL (CRL_APB_CLK_BASE + 0x50) |
| 288 | #define CRL_APB_UART0_REF_CTRL (CRL_APB_CLK_BASE + 0x54) |
| 289 | #define CRL_APB_UART1_REF_CTRL (CRL_APB_CLK_BASE + 0x58) |
| 290 | #define CRL_APB_SPI0_REF_CTRL (CRL_APB_CLK_BASE + 0x5c) |
| 291 | #define CRL_APB_SPI1_REF_CTRL (CRL_APB_CLK_BASE + 0x60) |
| 292 | #define CRL_APB_CAN0_REF_CTRL (CRL_APB_CLK_BASE + 0x64) |
| 293 | #define CRL_APB_CAN1_REF_CTRL (CRL_APB_CLK_BASE + 0x68) |
| 294 | #define CRL_APB_CPU_R5_CTRL (CRL_APB_CLK_BASE + 0x70) |
| 295 | #define CRL_APB_IOU_SWITCH_CTRL (CRL_APB_CLK_BASE + 0x7c) |
| 296 | #define CRL_APB_CSU_PLL_CTRL (CRL_APB_CLK_BASE + 0x80) |
| 297 | #define CRL_APB_PCAP_CTRL (CRL_APB_CLK_BASE + 0x84) |
| 298 | #define CRL_APB_LPD_SWITCH_CTRL (CRL_APB_CLK_BASE + 0x88) |
| 299 | #define CRL_APB_LPD_LSBUS_CTRL (CRL_APB_CLK_BASE + 0x8c) |
| 300 | #define CRL_APB_DBG_LPD_CTRL (CRL_APB_CLK_BASE + 0x90) |
| 301 | #define CRL_APB_NAND_REF_CTRL (CRL_APB_CLK_BASE + 0x94) |
| 302 | #define CRL_APB_ADMA_REF_CTRL (CRL_APB_CLK_BASE + 0x98) |
| 303 | #define CRL_APB_PL0_REF_CTRL (CRL_APB_CLK_BASE + 0xa0) |
| 304 | #define CRL_APB_PL1_REF_CTRL (CRL_APB_CLK_BASE + 0xa4) |
| 305 | #define CRL_APB_PL2_REF_CTRL (CRL_APB_CLK_BASE + 0xa8) |
| 306 | #define CRL_APB_PL3_REF_CTRL (CRL_APB_CLK_BASE + 0xac) |
| 307 | #define CRL_APB_PL0_THR_CNT (CRL_APB_CLK_BASE + 0xb4) |
| 308 | #define CRL_APB_PL1_THR_CNT (CRL_APB_CLK_BASE + 0xbc) |
| 309 | #define CRL_APB_PL2_THR_CNT (CRL_APB_CLK_BASE + 0xc4) |
| 310 | #define CRL_APB_PL3_THR_CNT (CRL_APB_CLK_BASE + 0xdc) |
| 311 | #define CRL_APB_GEM_TSU_REF_CTRL (CRL_APB_CLK_BASE + 0xe0) |
| 312 | #define CRL_APB_DLL_REF_CTRL (CRL_APB_CLK_BASE + 0xe4) |
| 313 | #define CRL_APB_AMS_REF_CTRL (CRL_APB_CLK_BASE + 0xe8) |
| 314 | #define CRL_APB_I2C0_REF_CTRL (CRL_APB_CLK_BASE + 0x100) |
| 315 | #define CRL_APB_I2C1_REF_CTRL (CRL_APB_CLK_BASE + 0x104) |
| 316 | #define CRL_APB_TIMESTAMP_REF_CTRL (CRL_APB_CLK_BASE + 0x108) |
| 317 | #define IOU_SLCR_GEM_CLK_CTRL (IOU_SLCR_BASEADDR + 0x308) |
| 318 | #define IOU_SLCR_CAN_MIO_CTRL (IOU_SLCR_BASEADDR + 0x304) |
| 319 | #define IOU_SLCR_WDT_CLK_SEL (IOU_SLCR_BASEADDR + 0x300) |
| 320 | |
Rajan Vaja | 393c0a2 | 2018-01-17 02:39:27 -0800 | [diff] [blame] | 321 | /* Global general storage register base address */ |
| 322 | #define GGS_BASEADDR (0xFFD80030U) |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 323 | #define GGS_NUM_REGS U(4) |
Rajan Vaja | 393c0a2 | 2018-01-17 02:39:27 -0800 | [diff] [blame] | 324 | |
| 325 | /* Persistent global general storage register base address */ |
| 326 | #define PGGS_BASEADDR (0xFFD80050U) |
Jolly Shah | 69fb5bf | 2018-02-07 16:25:41 -0800 | [diff] [blame] | 327 | #define PGGS_NUM_REGS U(4) |
Rajan Vaja | 393c0a2 | 2018-01-17 02:39:27 -0800 | [diff] [blame] | 328 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 329 | #endif /* __ZYNQMP_DEF_H__ */ |