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