Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2016 Freescale Semiconductor, Inc. |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __LS1046AQDS_H__ |
| 7 | #define __LS1046AQDS_H__ |
| 8 | |
| 9 | #include "ls1046a_common.h" |
| 10 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 11 | /* Physical Memory Map */ |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 12 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 13 | #define SPD_EEPROM_ADDRESS 0x51 |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 14 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 15 | #ifdef CONFIG_DDR_ECC |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 16 | #define CONFIG_MEM_INIT_VALUE 0xdeadbeef |
| 17 | #endif |
| 18 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 19 | #ifdef CONFIG_SYS_DPAA_FMAN |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 20 | #define RGMII_PHY1_ADDR 0x1 |
| 21 | #define RGMII_PHY2_ADDR 0x2 |
| 22 | #define SGMII_CARD_PORT1_PHY_ADDR 0x1C |
| 23 | #define SGMII_CARD_PORT2_PHY_ADDR 0x1D |
| 24 | #define SGMII_CARD_PORT3_PHY_ADDR 0x1E |
| 25 | #define SGMII_CARD_PORT4_PHY_ADDR 0x1F |
| 26 | /* PHY address on QSGMII riser card on slot 2 */ |
| 27 | #define QSGMII_CARD_PORT1_PHY_ADDR_S2 0x8 |
| 28 | #define QSGMII_CARD_PORT2_PHY_ADDR_S2 0x9 |
| 29 | #define QSGMII_CARD_PORT3_PHY_ADDR_S2 0xA |
| 30 | #define QSGMII_CARD_PORT4_PHY_ADDR_S2 0xB |
| 31 | #endif |
| 32 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 33 | /* IFC */ |
| 34 | #if !defined(CONFIG_QSPI_BOOT) && !defined(CONFIG_SD_BOOT_QSPI) |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 35 | /* |
| 36 | * CONFIG_SYS_FLASH_BASE has the final address (core view) |
| 37 | * CONFIG_SYS_FLASH_BASE_PHYS has the final address (IFC view) |
| 38 | * CONFIG_SYS_FLASH_BASE_PHYS_EARLY has the temporary IFC address |
| 39 | * CONFIG_SYS_TEXT_BASE is linked to 0x60000000 for booting |
| 40 | */ |
| 41 | #define CONFIG_SYS_FLASH_BASE 0x60000000 |
| 42 | #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE |
| 43 | #define CONFIG_SYS_FLASH_BASE_PHYS_EARLY 0x00000000 |
| 44 | |
Masahiro Yamada | 8cea9b5 | 2017-02-11 22:43:54 +0900 | [diff] [blame] | 45 | #ifdef CONFIG_MTD_NOR_FLASH |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 46 | #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ |
| 47 | #endif |
| 48 | #endif |
| 49 | |
Shaohui Xie | 56007a0 | 2016-10-28 14:24:02 +0800 | [diff] [blame] | 50 | /* LPUART */ |
| 51 | #ifdef CONFIG_LPUART |
Shaohui Xie | 56007a0 | 2016-10-28 14:24:02 +0800 | [diff] [blame] | 52 | #define CFG_UART_MUX_MASK 0x6 |
| 53 | #define CFG_UART_MUX_SHIFT 1 |
| 54 | #define CFG_LPUART_EN 0x2 |
| 55 | #endif |
| 56 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 57 | /* |
| 58 | * IFC Definitions |
| 59 | */ |
| 60 | #if !defined(CONFIG_QSPI_BOOT) && !defined(CONFIG_SD_BOOT_QSPI) |
| 61 | #define CONFIG_SYS_NOR0_CSPR_EXT (0x0) |
| 62 | #define CONFIG_SYS_NOR0_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \ |
| 63 | CSPR_PORT_SIZE_16 | \ |
| 64 | CSPR_MSEL_NOR | \ |
| 65 | CSPR_V) |
| 66 | #define CONFIG_SYS_NOR1_CSPR_EXT (0x0) |
| 67 | #define CONFIG_SYS_NOR1_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS \ |
| 68 | + 0x8000000) | \ |
| 69 | CSPR_PORT_SIZE_16 | \ |
| 70 | CSPR_MSEL_NOR | \ |
| 71 | CSPR_V) |
| 72 | #define CONFIG_SYS_NOR_AMASK IFC_AMASK(128 * 1024 * 1024) |
| 73 | |
| 74 | #define CONFIG_SYS_NOR_CSOR (CSOR_NOR_ADM_SHIFT(4) | \ |
| 75 | CSOR_NOR_TRHZ_80) |
| 76 | #define CONFIG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x4) | \ |
| 77 | FTIM0_NOR_TEADC(0x5) | \ |
York Sun | ebcd9d6 | 2017-12-11 08:39:05 -0800 | [diff] [blame] | 78 | FTIM0_NOR_TAVDS(0x6) | \ |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 79 | FTIM0_NOR_TEAHC(0x5)) |
| 80 | #define CONFIG_SYS_NOR_FTIM1 (FTIM1_NOR_TACO(0x35) | \ |
| 81 | FTIM1_NOR_TRAD_NOR(0x1a) | \ |
| 82 | FTIM1_NOR_TSEQRAD_NOR(0x13)) |
York Sun | ebcd9d6 | 2017-12-11 08:39:05 -0800 | [diff] [blame] | 83 | #define CONFIG_SYS_NOR_FTIM2 (FTIM2_NOR_TCS(0x8) | \ |
| 84 | FTIM2_NOR_TCH(0x8) | \ |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 85 | FTIM2_NOR_TWPH(0xe) | \ |
| 86 | FTIM2_NOR_TWP(0x1c)) |
| 87 | #define CONFIG_SYS_NOR_FTIM3 0 |
| 88 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 89 | #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE_PHYS, \ |
| 90 | CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000} |
| 91 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 92 | #define CONFIG_SYS_WRITE_SWAPPED_DATA |
| 93 | |
| 94 | /* |
| 95 | * NAND Flash Definitions |
| 96 | */ |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 97 | |
| 98 | #define CONFIG_SYS_NAND_BASE 0x7e800000 |
| 99 | #define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE |
| 100 | |
| 101 | #define CONFIG_SYS_NAND_CSPR_EXT (0x0) |
| 102 | |
| 103 | #define CONFIG_SYS_NAND_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \ |
| 104 | | CSPR_PORT_SIZE_8 \ |
| 105 | | CSPR_MSEL_NAND \ |
| 106 | | CSPR_V) |
| 107 | #define CONFIG_SYS_NAND_AMASK IFC_AMASK(64*1024) |
| 108 | #define CONFIG_SYS_NAND_CSOR (CSOR_NAND_ECC_ENC_EN /* ECC on encode */ \ |
| 109 | | CSOR_NAND_ECC_DEC_EN /* ECC on decode */ \ |
| 110 | | CSOR_NAND_ECC_MODE_8 /* 8-bit ECC */ \ |
| 111 | | CSOR_NAND_RAL_3 /* RAL = 3 Bytes */ \ |
| 112 | | CSOR_NAND_PGS_4K /* Page Size = 4K */ \ |
| 113 | | CSOR_NAND_SPRZ_224 /* Spare size = 224 */ \ |
| 114 | | CSOR_NAND_PB(64)) /* 64 Pages Per Block */ |
| 115 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 116 | #define CONFIG_SYS_NAND_FTIM0 (FTIM0_NAND_TCCST(0x7) | \ |
| 117 | FTIM0_NAND_TWP(0x18) | \ |
| 118 | FTIM0_NAND_TWCHT(0x7) | \ |
| 119 | FTIM0_NAND_TWH(0xa)) |
| 120 | #define CONFIG_SYS_NAND_FTIM1 (FTIM1_NAND_TADLE(0x32) | \ |
| 121 | FTIM1_NAND_TWBE(0x39) | \ |
| 122 | FTIM1_NAND_TRR(0xe) | \ |
| 123 | FTIM1_NAND_TRP(0x18)) |
| 124 | #define CONFIG_SYS_NAND_FTIM2 (FTIM2_NAND_TRAD(0xf) | \ |
| 125 | FTIM2_NAND_TREH(0xa) | \ |
| 126 | FTIM2_NAND_TWHRE(0x1e)) |
| 127 | #define CONFIG_SYS_NAND_FTIM3 0x0 |
| 128 | |
| 129 | #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE } |
| 130 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
| 131 | #define CONFIG_MTD_NAND_VERIFY_WRITE |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 132 | #endif |
| 133 | |
| 134 | #ifdef CONFIG_NAND_BOOT |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 135 | #define CONFIG_SYS_NAND_U_BOOT_SIZE (768 << 10) |
| 136 | #endif |
| 137 | |
Rajesh Bhagat | 9af0a0b | 2018-11-05 18:02:40 +0000 | [diff] [blame] | 138 | #if defined(CONFIG_TFABOOT) || \ |
| 139 | defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI) |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 140 | #endif |
| 141 | |
| 142 | /* |
| 143 | * QIXIS Definitions |
| 144 | */ |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 145 | |
| 146 | #ifdef CONFIG_FSL_QIXIS |
| 147 | #define QIXIS_BASE 0x7fb00000 |
| 148 | #define QIXIS_BASE_PHYS QIXIS_BASE |
| 149 | #define CONFIG_SYS_I2C_FPGA_ADDR 0x66 |
| 150 | #define QIXIS_LBMAP_SWITCH 6 |
| 151 | #define QIXIS_LBMAP_MASK 0x0f |
| 152 | #define QIXIS_LBMAP_SHIFT 0 |
| 153 | #define QIXIS_LBMAP_DFLTBANK 0x00 |
| 154 | #define QIXIS_LBMAP_ALTBANK 0x04 |
| 155 | #define QIXIS_LBMAP_NAND 0x09 |
| 156 | #define QIXIS_LBMAP_SD 0x00 |
| 157 | #define QIXIS_LBMAP_SD_QSPI 0xff |
| 158 | #define QIXIS_LBMAP_QSPI 0xff |
| 159 | #define QIXIS_RCW_SRC_NAND 0x110 |
| 160 | #define QIXIS_RCW_SRC_SD 0x040 |
| 161 | #define QIXIS_RCW_SRC_QSPI 0x045 |
| 162 | #define QIXIS_RST_CTL_RESET 0x41 |
| 163 | #define QIXIS_RCFG_CTL_RECONFIG_IDLE 0x20 |
| 164 | #define QIXIS_RCFG_CTL_RECONFIG_START 0x21 |
| 165 | #define QIXIS_RCFG_CTL_WATCHDOG_ENBLE 0x08 |
| 166 | |
| 167 | #define CONFIG_SYS_FPGA_CSPR_EXT (0x0) |
| 168 | #define CONFIG_SYS_FPGA_CSPR (CSPR_PHYS_ADDR(QIXIS_BASE_PHYS) | \ |
| 169 | CSPR_PORT_SIZE_8 | \ |
| 170 | CSPR_MSEL_GPCM | \ |
| 171 | CSPR_V) |
| 172 | #define CONFIG_SYS_FPGA_AMASK IFC_AMASK(64 * 1024) |
| 173 | #define CONFIG_SYS_FPGA_CSOR (CSOR_NOR_ADM_SHIFT(4) | \ |
| 174 | CSOR_NOR_NOR_MODE_AVD_NOR | \ |
| 175 | CSOR_NOR_TRHZ_80) |
| 176 | |
| 177 | /* |
| 178 | * QIXIS Timing parameters for IFC GPCM |
| 179 | */ |
| 180 | #define CONFIG_SYS_FPGA_FTIM0 (FTIM0_GPCM_TACSE(0xc) | \ |
| 181 | FTIM0_GPCM_TEADC(0x20) | \ |
| 182 | FTIM0_GPCM_TEAHC(0x10)) |
| 183 | #define CONFIG_SYS_FPGA_FTIM1 (FTIM1_GPCM_TACO(0x50) | \ |
| 184 | FTIM1_GPCM_TRAD(0x1f)) |
| 185 | #define CONFIG_SYS_FPGA_FTIM2 (FTIM2_GPCM_TCS(0x8) | \ |
| 186 | FTIM2_GPCM_TCH(0x8) | \ |
| 187 | FTIM2_GPCM_TWP(0xf0)) |
| 188 | #define CONFIG_SYS_FPGA_FTIM3 0x0 |
| 189 | #endif |
| 190 | |
Rajesh Bhagat | 9af0a0b | 2018-11-05 18:02:40 +0000 | [diff] [blame] | 191 | #ifdef CONFIG_TFABOOT |
| 192 | #define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_NOR0_CSPR_EXT |
| 193 | #define CONFIG_SYS_CSPR0 CONFIG_SYS_NOR0_CSPR |
| 194 | #define CONFIG_SYS_AMASK0 CONFIG_SYS_NOR_AMASK |
| 195 | #define CONFIG_SYS_CSOR0 CONFIG_SYS_NOR_CSOR |
| 196 | #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NOR_FTIM0 |
| 197 | #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NOR_FTIM1 |
| 198 | #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NOR_FTIM2 |
| 199 | #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NOR_FTIM3 |
| 200 | #define CONFIG_SYS_CSPR1_EXT CONFIG_SYS_NOR1_CSPR_EXT |
| 201 | #define CONFIG_SYS_CSPR1 CONFIG_SYS_NOR1_CSPR |
| 202 | #define CONFIG_SYS_AMASK1 CONFIG_SYS_NOR_AMASK |
| 203 | #define CONFIG_SYS_CSOR1 CONFIG_SYS_NOR_CSOR |
| 204 | #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_NOR_FTIM0 |
| 205 | #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_NOR_FTIM1 |
| 206 | #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_NOR_FTIM2 |
| 207 | #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_NOR_FTIM3 |
| 208 | #define CONFIG_SYS_CSPR2_EXT CONFIG_SYS_NAND_CSPR_EXT |
| 209 | #define CONFIG_SYS_CSPR2 CONFIG_SYS_NAND_CSPR |
| 210 | #define CONFIG_SYS_AMASK2 CONFIG_SYS_NAND_AMASK |
| 211 | #define CONFIG_SYS_CSOR2 CONFIG_SYS_NAND_CSOR |
| 212 | #define CONFIG_SYS_CS2_FTIM0 CONFIG_SYS_NAND_FTIM0 |
| 213 | #define CONFIG_SYS_CS2_FTIM1 CONFIG_SYS_NAND_FTIM1 |
| 214 | #define CONFIG_SYS_CS2_FTIM2 CONFIG_SYS_NAND_FTIM2 |
| 215 | #define CONFIG_SYS_CS2_FTIM3 CONFIG_SYS_NAND_FTIM3 |
| 216 | #define CONFIG_SYS_CSPR3_EXT CONFIG_SYS_FPGA_CSPR_EXT |
| 217 | #define CONFIG_SYS_CSPR3 CONFIG_SYS_FPGA_CSPR |
| 218 | #define CONFIG_SYS_AMASK3 CONFIG_SYS_FPGA_AMASK |
| 219 | #define CONFIG_SYS_CSOR3 CONFIG_SYS_FPGA_CSOR |
| 220 | #define CONFIG_SYS_CS3_FTIM0 CONFIG_SYS_FPGA_FTIM0 |
| 221 | #define CONFIG_SYS_CS3_FTIM1 CONFIG_SYS_FPGA_FTIM1 |
| 222 | #define CONFIG_SYS_CS3_FTIM2 CONFIG_SYS_FPGA_FTIM2 |
| 223 | #define CONFIG_SYS_CS3_FTIM3 CONFIG_SYS_FPGA_FTIM3 |
| 224 | #else |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 225 | #ifdef CONFIG_NAND_BOOT |
| 226 | #define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_NAND_CSPR_EXT |
| 227 | #define CONFIG_SYS_CSPR0 CONFIG_SYS_NAND_CSPR |
| 228 | #define CONFIG_SYS_AMASK0 CONFIG_SYS_NAND_AMASK |
| 229 | #define CONFIG_SYS_CSOR0 CONFIG_SYS_NAND_CSOR |
| 230 | #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NAND_FTIM0 |
| 231 | #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NAND_FTIM1 |
| 232 | #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NAND_FTIM2 |
| 233 | #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NAND_FTIM3 |
| 234 | #define CONFIG_SYS_CSPR1_EXT CONFIG_SYS_NOR0_CSPR_EXT |
| 235 | #define CONFIG_SYS_CSPR1 CONFIG_SYS_NOR0_CSPR |
| 236 | #define CONFIG_SYS_AMASK1 CONFIG_SYS_NOR_AMASK |
| 237 | #define CONFIG_SYS_CSOR1 CONFIG_SYS_NOR_CSOR |
| 238 | #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_NOR_FTIM0 |
| 239 | #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_NOR_FTIM1 |
| 240 | #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_NOR_FTIM2 |
| 241 | #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_NOR_FTIM3 |
| 242 | #define CONFIG_SYS_CSPR2_EXT CONFIG_SYS_NOR1_CSPR_EXT |
| 243 | #define CONFIG_SYS_CSPR2 CONFIG_SYS_NOR1_CSPR |
| 244 | #define CONFIG_SYS_AMASK2 CONFIG_SYS_NOR_AMASK |
| 245 | #define CONFIG_SYS_CSOR2 CONFIG_SYS_NOR_CSOR |
| 246 | #define CONFIG_SYS_CS2_FTIM0 CONFIG_SYS_NOR_FTIM0 |
| 247 | #define CONFIG_SYS_CS2_FTIM1 CONFIG_SYS_NOR_FTIM1 |
| 248 | #define CONFIG_SYS_CS2_FTIM2 CONFIG_SYS_NOR_FTIM2 |
| 249 | #define CONFIG_SYS_CS2_FTIM3 CONFIG_SYS_NOR_FTIM3 |
| 250 | #define CONFIG_SYS_CSPR3_EXT CONFIG_SYS_FPGA_CSPR_EXT |
| 251 | #define CONFIG_SYS_CSPR3 CONFIG_SYS_FPGA_CSPR |
| 252 | #define CONFIG_SYS_AMASK3 CONFIG_SYS_FPGA_AMASK |
| 253 | #define CONFIG_SYS_CSOR3 CONFIG_SYS_FPGA_CSOR |
| 254 | #define CONFIG_SYS_CS3_FTIM0 CONFIG_SYS_FPGA_FTIM0 |
| 255 | #define CONFIG_SYS_CS3_FTIM1 CONFIG_SYS_FPGA_FTIM1 |
| 256 | #define CONFIG_SYS_CS3_FTIM2 CONFIG_SYS_FPGA_FTIM2 |
| 257 | #define CONFIG_SYS_CS3_FTIM3 CONFIG_SYS_FPGA_FTIM3 |
| 258 | #else |
| 259 | #define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_NOR0_CSPR_EXT |
| 260 | #define CONFIG_SYS_CSPR0 CONFIG_SYS_NOR0_CSPR |
| 261 | #define CONFIG_SYS_AMASK0 CONFIG_SYS_NOR_AMASK |
| 262 | #define CONFIG_SYS_CSOR0 CONFIG_SYS_NOR_CSOR |
| 263 | #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NOR_FTIM0 |
| 264 | #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NOR_FTIM1 |
| 265 | #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NOR_FTIM2 |
| 266 | #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NOR_FTIM3 |
| 267 | #define CONFIG_SYS_CSPR1_EXT CONFIG_SYS_NOR1_CSPR_EXT |
| 268 | #define CONFIG_SYS_CSPR1 CONFIG_SYS_NOR1_CSPR |
| 269 | #define CONFIG_SYS_AMASK1 CONFIG_SYS_NOR_AMASK |
| 270 | #define CONFIG_SYS_CSOR1 CONFIG_SYS_NOR_CSOR |
| 271 | #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_NOR_FTIM0 |
| 272 | #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_NOR_FTIM1 |
| 273 | #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_NOR_FTIM2 |
| 274 | #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_NOR_FTIM3 |
| 275 | #define CONFIG_SYS_CSPR2_EXT CONFIG_SYS_NAND_CSPR_EXT |
| 276 | #define CONFIG_SYS_CSPR2 CONFIG_SYS_NAND_CSPR |
| 277 | #define CONFIG_SYS_AMASK2 CONFIG_SYS_NAND_AMASK |
| 278 | #define CONFIG_SYS_CSOR2 CONFIG_SYS_NAND_CSOR |
| 279 | #define CONFIG_SYS_CS2_FTIM0 CONFIG_SYS_NAND_FTIM0 |
| 280 | #define CONFIG_SYS_CS2_FTIM1 CONFIG_SYS_NAND_FTIM1 |
| 281 | #define CONFIG_SYS_CS2_FTIM2 CONFIG_SYS_NAND_FTIM2 |
| 282 | #define CONFIG_SYS_CS2_FTIM3 CONFIG_SYS_NAND_FTIM3 |
| 283 | #define CONFIG_SYS_CSPR3_EXT CONFIG_SYS_FPGA_CSPR_EXT |
| 284 | #define CONFIG_SYS_CSPR3 CONFIG_SYS_FPGA_CSPR |
| 285 | #define CONFIG_SYS_AMASK3 CONFIG_SYS_FPGA_AMASK |
| 286 | #define CONFIG_SYS_CSOR3 CONFIG_SYS_FPGA_CSOR |
| 287 | #define CONFIG_SYS_CS3_FTIM0 CONFIG_SYS_FPGA_FTIM0 |
| 288 | #define CONFIG_SYS_CS3_FTIM1 CONFIG_SYS_FPGA_FTIM1 |
| 289 | #define CONFIG_SYS_CS3_FTIM2 CONFIG_SYS_FPGA_FTIM2 |
| 290 | #define CONFIG_SYS_CS3_FTIM3 CONFIG_SYS_FPGA_FTIM3 |
| 291 | #endif |
Rajesh Bhagat | 9af0a0b | 2018-11-05 18:02:40 +0000 | [diff] [blame] | 292 | #endif |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 293 | |
| 294 | /* |
| 295 | * I2C bus multiplexer |
| 296 | */ |
| 297 | #define I2C_MUX_PCA_ADDR_PRI 0x77 |
| 298 | #define I2C_MUX_PCA_ADDR_SEC 0x76 /* Secondary multiplexer */ |
| 299 | #define I2C_RETIMER_ADDR 0x18 |
| 300 | #define I2C_MUX_CH_DEFAULT 0x8 |
| 301 | #define I2C_MUX_CH_CH7301 0xC |
| 302 | #define I2C_MUX_CH5 0xD |
| 303 | #define I2C_MUX_CH6 0xE |
| 304 | #define I2C_MUX_CH7 0xF |
| 305 | |
| 306 | #define I2C_MUX_CH_VOL_MONITOR 0xa |
| 307 | |
| 308 | /* Voltage monitor on channel 2*/ |
| 309 | #define I2C_VOL_MONITOR_ADDR 0x40 |
| 310 | #define I2C_VOL_MONITOR_BUS_V_OFFSET 0x2 |
| 311 | #define I2C_VOL_MONITOR_BUS_V_OVF 0x1 |
| 312 | #define I2C_VOL_MONITOR_BUS_V_SHIFT 3 |
| 313 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 314 | /* The lowest and highest voltage allowed for LS1046AQDS */ |
| 315 | #define VDD_MV_MIN 819 |
| 316 | #define VDD_MV_MAX 1212 |
| 317 | |
| 318 | /* |
| 319 | * Miscellaneous configurable options |
| 320 | */ |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 321 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 322 | /* |
| 323 | * Environment |
| 324 | */ |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 325 | |
Rajesh Bhagat | 9af0a0b | 2018-11-05 18:02:40 +0000 | [diff] [blame] | 326 | #ifdef CONFIG_TFABOOT |
Biwen Li | 88dd2e8 | 2020-04-20 18:29:06 +0800 | [diff] [blame] | 327 | #define IFC_NAND_BOOTCOMMAND "run distro_bootcmd; run nand_bootcmd; " \ |
| 328 | "env exists secureboot && esbc_halt;;" |
| 329 | #define QSPI_NOR_BOOTCOMMAND "run distro_bootcmd; run nor_bootcmd" \ |
| 330 | "env exists secureboot && esbc_halt;;" |
| 331 | #define IFC_NOR_BOOTCOMMAND "run distro_bootcmd; run nor_bootcmd; " \ |
| 332 | "env exists secureboot && esbc_halt;;" |
| 333 | #define SD_BOOTCOMMAND "run distro_bootcmd; run sd_bootcmd; " \ |
| 334 | "env exists secureboot && esbc_halt;;" |
Rajesh Bhagat | 9af0a0b | 2018-11-05 18:02:40 +0000 | [diff] [blame] | 335 | #endif |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 336 | |
Shaohui Xie | 085ac1c | 2016-09-07 17:56:14 +0800 | [diff] [blame] | 337 | #include <asm/fsl_secure_boot.h> |
| 338 | |
| 339 | #endif /* __LS1046AQDS_H__ */ |