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 | /* Physical Memory Map */ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 12 | |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 13 | #define SPD_EEPROM_ADDRESS 0x51 |
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 | #ifdef CONFIG_DDR_ECC |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 16 | #define CONFIG_MEM_INIT_VALUE 0xdeadbeef |
| 17 | #endif |
| 18 | |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 19 | #ifdef CONFIG_SYS_DPAA_FMAN |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +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 1 */ |
| 27 | #define QSGMII_CARD_PORT1_PHY_ADDR_S1 0x4 |
| 28 | #define QSGMII_CARD_PORT2_PHY_ADDR_S1 0x5 |
| 29 | #define QSGMII_CARD_PORT3_PHY_ADDR_S1 0x6 |
| 30 | #define QSGMII_CARD_PORT4_PHY_ADDR_S1 0x7 |
| 31 | /* PHY address on QSGMII riser card on slot 2 */ |
| 32 | #define QSGMII_CARD_PORT1_PHY_ADDR_S2 0x8 |
| 33 | #define QSGMII_CARD_PORT2_PHY_ADDR_S2 0x9 |
| 34 | #define QSGMII_CARD_PORT3_PHY_ADDR_S2 0xA |
| 35 | #define QSGMII_CARD_PORT4_PHY_ADDR_S2 0xB |
| 36 | #endif |
| 37 | |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 38 | /* |
| 39 | * IFC Definitions |
| 40 | */ |
Qianyu Gong | 138a36a | 2016-01-25 15:16:07 +0800 | [diff] [blame] | 41 | #if !defined(CONFIG_QSPI_BOOT) && !defined(CONFIG_SD_BOOT_QSPI) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 42 | #define CFG_SYS_NOR0_CSPR_EXT (0x0) |
| 43 | #define CFG_SYS_NOR0_CSPR (CSPR_PHYS_ADDR(CFG_SYS_FLASH_BASE_PHYS) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 44 | CSPR_PORT_SIZE_16 | \ |
| 45 | CSPR_MSEL_NOR | \ |
| 46 | CSPR_V) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 47 | #define CFG_SYS_NOR1_CSPR_EXT (0x0) |
| 48 | #define CFG_SYS_NOR1_CSPR (CSPR_PHYS_ADDR(CFG_SYS_FLASH_BASE_PHYS \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 49 | + 0x8000000) | \ |
| 50 | CSPR_PORT_SIZE_16 | \ |
| 51 | CSPR_MSEL_NOR | \ |
| 52 | CSPR_V) |
Tom Rini | 7b577ba | 2022-11-16 13:10:25 -0500 | [diff] [blame] | 53 | #define CFG_SYS_NOR_AMASK IFC_AMASK(128 * 1024 * 1024) |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 54 | |
Tom Rini | 7b577ba | 2022-11-16 13:10:25 -0500 | [diff] [blame] | 55 | #define CFG_SYS_NOR_CSOR (CSOR_NOR_ADM_SHIFT(4) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 56 | CSOR_NOR_TRHZ_80) |
Tom Rini | 7b577ba | 2022-11-16 13:10:25 -0500 | [diff] [blame] | 57 | #define CFG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x4) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 58 | FTIM0_NOR_TEADC(0x5) | \ |
| 59 | FTIM0_NOR_TEAHC(0x5)) |
Tom Rini | 7b577ba | 2022-11-16 13:10:25 -0500 | [diff] [blame] | 60 | #define CFG_SYS_NOR_FTIM1 (FTIM1_NOR_TACO(0x35) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 61 | FTIM1_NOR_TRAD_NOR(0x1a) | \ |
| 62 | FTIM1_NOR_TSEQRAD_NOR(0x13)) |
Tom Rini | 7b577ba | 2022-11-16 13:10:25 -0500 | [diff] [blame] | 63 | #define CFG_SYS_NOR_FTIM2 (FTIM2_NOR_TCS(0x4) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 64 | FTIM2_NOR_TCH(0x4) | \ |
| 65 | FTIM2_NOR_TWPH(0xe) | \ |
| 66 | FTIM2_NOR_TWP(0x1c)) |
Tom Rini | 7b577ba | 2022-11-16 13:10:25 -0500 | [diff] [blame] | 67 | #define CFG_SYS_NOR_FTIM3 0 |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 68 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 69 | #define CFG_SYS_FLASH_BANKS_LIST {CFG_SYS_FLASH_BASE_PHYS, \ |
| 70 | CFG_SYS_FLASH_BASE_PHYS + 0x8000000} |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 71 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 72 | #define CFG_SYS_WRITE_SWAPPED_DATA |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 73 | |
| 74 | /* |
| 75 | * NAND Flash Definitions |
| 76 | */ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 77 | |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 78 | #define CFG_SYS_NAND_BASE 0x7e800000 |
| 79 | #define CFG_SYS_NAND_BASE_PHYS CFG_SYS_NAND_BASE |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 80 | |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 81 | #define CFG_SYS_NAND_CSPR_EXT (0x0) |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 82 | |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 83 | #define CFG_SYS_NAND_CSPR (CSPR_PHYS_ADDR(CFG_SYS_NAND_BASE_PHYS) \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 84 | | CSPR_PORT_SIZE_8 \ |
| 85 | | CSPR_MSEL_NAND \ |
| 86 | | CSPR_V) |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 87 | #define CFG_SYS_NAND_AMASK IFC_AMASK(64*1024) |
| 88 | #define CFG_SYS_NAND_CSOR (CSOR_NAND_ECC_ENC_EN /* ECC on encode */ \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 89 | | CSOR_NAND_ECC_DEC_EN /* ECC on decode */ \ |
| 90 | | CSOR_NAND_ECC_MODE_4 /* 4-bit ECC */ \ |
| 91 | | CSOR_NAND_RAL_3 /* RAL = 3 Bytes */ \ |
| 92 | | CSOR_NAND_PGS_2K /* Page Size = 2K */ \ |
| 93 | | CSOR_NAND_SPRZ_64 /* Spare size = 64 */ \ |
| 94 | | CSOR_NAND_PB(64)) /* 64 Pages Per Block */ |
| 95 | |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 96 | #define CFG_SYS_NAND_FTIM0 (FTIM0_NAND_TCCST(0x7) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 97 | FTIM0_NAND_TWP(0x18) | \ |
| 98 | FTIM0_NAND_TWCHT(0x7) | \ |
| 99 | FTIM0_NAND_TWH(0xa)) |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 100 | #define CFG_SYS_NAND_FTIM1 (FTIM1_NAND_TADLE(0x32) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 101 | FTIM1_NAND_TWBE(0x39) | \ |
| 102 | FTIM1_NAND_TRR(0xe) | \ |
| 103 | FTIM1_NAND_TRP(0x18)) |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 104 | #define CFG_SYS_NAND_FTIM2 (FTIM2_NAND_TRAD(0xf) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 105 | FTIM2_NAND_TREH(0xa) | \ |
| 106 | FTIM2_NAND_TWHRE(0x1e)) |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 107 | #define CFG_SYS_NAND_FTIM3 0x0 |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 108 | |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 109 | #define CFG_SYS_NAND_BASE_LIST { CFG_SYS_NAND_BASE } |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 110 | #define CONFIG_MTD_NAND_VERIFY_WRITE |
Gong Qianyu | 760df89 | 2016-01-25 15:16:06 +0800 | [diff] [blame] | 111 | #endif |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 112 | |
| 113 | #ifdef CONFIG_NAND_BOOT |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 114 | #define CFG_SYS_NAND_U_BOOT_SIZE (640 << 10) |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 115 | #endif |
| 116 | |
Rajesh Bhagat | 90bde11 | 2018-11-05 18:02:48 +0000 | [diff] [blame] | 117 | #if defined(CONFIG_TFABOOT) || \ |
| 118 | defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI) |
Gong Qianyu | 760df89 | 2016-01-25 15:16:06 +0800 | [diff] [blame] | 119 | #endif |
| 120 | |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 121 | /* |
| 122 | * QIXIS Definitions |
| 123 | */ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 124 | |
| 125 | #ifdef CONFIG_FSL_QIXIS |
| 126 | #define QIXIS_BASE 0x7fb00000 |
| 127 | #define QIXIS_BASE_PHYS QIXIS_BASE |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 128 | #define CFG_SYS_I2C_FPGA_ADDR 0x66 |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 129 | #define QIXIS_LBMAP_SWITCH 6 |
| 130 | #define QIXIS_LBMAP_MASK 0x0f |
| 131 | #define QIXIS_LBMAP_SHIFT 0 |
| 132 | #define QIXIS_LBMAP_DFLTBANK 0x00 |
| 133 | #define QIXIS_LBMAP_ALTBANK 0x04 |
Gong Qianyu | 9da2c67 | 2015-12-31 18:29:04 +0800 | [diff] [blame] | 134 | #define QIXIS_LBMAP_NAND 0x09 |
| 135 | #define QIXIS_LBMAP_SD 0x00 |
Gong Qianyu | 760df89 | 2016-01-25 15:16:06 +0800 | [diff] [blame] | 136 | #define QIXIS_LBMAP_SD_QSPI 0xff |
Qianyu Gong | 138a36a | 2016-01-25 15:16:07 +0800 | [diff] [blame] | 137 | #define QIXIS_LBMAP_QSPI 0xff |
Gong Qianyu | 9da2c67 | 2015-12-31 18:29:04 +0800 | [diff] [blame] | 138 | #define QIXIS_RCW_SRC_NAND 0x106 |
| 139 | #define QIXIS_RCW_SRC_SD 0x040 |
Qianyu Gong | 138a36a | 2016-01-25 15:16:07 +0800 | [diff] [blame] | 140 | #define QIXIS_RCW_SRC_QSPI 0x045 |
Gong Qianyu | 4ce7be0 | 2015-12-31 18:29:03 +0800 | [diff] [blame] | 141 | #define QIXIS_RST_CTL_RESET 0x41 |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 142 | #define QIXIS_RCFG_CTL_RECONFIG_IDLE 0x20 |
| 143 | #define QIXIS_RCFG_CTL_RECONFIG_START 0x21 |
| 144 | #define QIXIS_RCFG_CTL_WATCHDOG_ENBLE 0x08 |
| 145 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 146 | #define CFG_SYS_FPGA_CSPR_EXT (0x0) |
| 147 | #define CFG_SYS_FPGA_CSPR (CSPR_PHYS_ADDR(QIXIS_BASE_PHYS) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 148 | CSPR_PORT_SIZE_8 | \ |
| 149 | CSPR_MSEL_GPCM | \ |
| 150 | CSPR_V) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 151 | #define CFG_SYS_FPGA_AMASK IFC_AMASK(64 * 1024) |
| 152 | #define CFG_SYS_FPGA_CSOR (CSOR_NOR_ADM_SHIFT(4) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 153 | CSOR_NOR_NOR_MODE_AVD_NOR | \ |
| 154 | CSOR_NOR_TRHZ_80) |
| 155 | |
| 156 | /* |
| 157 | * QIXIS Timing parameters for IFC GPCM |
| 158 | */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 159 | #define CFG_SYS_FPGA_FTIM0 (FTIM0_GPCM_TACSE(0xc) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 160 | FTIM0_GPCM_TEADC(0x20) | \ |
| 161 | FTIM0_GPCM_TEAHC(0x10)) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 162 | #define CFG_SYS_FPGA_FTIM1 (FTIM1_GPCM_TACO(0x50) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 163 | FTIM1_GPCM_TRAD(0x1f)) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 164 | #define CFG_SYS_FPGA_FTIM2 (FTIM2_GPCM_TCS(0x8) | \ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 165 | FTIM2_GPCM_TCH(0x8) | \ |
| 166 | FTIM2_GPCM_TWP(0xf0)) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 167 | #define CFG_SYS_FPGA_FTIM3 0x0 |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 168 | #endif |
| 169 | |
Rajesh Bhagat | 90bde11 | 2018-11-05 18:02:48 +0000 | [diff] [blame] | 170 | #ifdef CONFIG_TFABOOT |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 171 | #define CFG_SYS_CSPR0_EXT CFG_SYS_NOR0_CSPR_EXT |
| 172 | #define CFG_SYS_CSPR0 CFG_SYS_NOR0_CSPR |
| 173 | #define CFG_SYS_AMASK0 CFG_SYS_NOR_AMASK |
| 174 | #define CFG_SYS_CSOR0 CFG_SYS_NOR_CSOR |
| 175 | #define CFG_SYS_CS0_FTIM0 CFG_SYS_NOR_FTIM0 |
| 176 | #define CFG_SYS_CS0_FTIM1 CFG_SYS_NOR_FTIM1 |
| 177 | #define CFG_SYS_CS0_FTIM2 CFG_SYS_NOR_FTIM2 |
| 178 | #define CFG_SYS_CS0_FTIM3 CFG_SYS_NOR_FTIM3 |
| 179 | #define CFG_SYS_CSPR1_EXT CFG_SYS_NOR1_CSPR_EXT |
| 180 | #define CFG_SYS_CSPR1 CFG_SYS_NOR1_CSPR |
| 181 | #define CFG_SYS_AMASK1 CFG_SYS_NOR_AMASK |
| 182 | #define CFG_SYS_CSOR1 CFG_SYS_NOR_CSOR |
| 183 | #define CFG_SYS_CS1_FTIM0 CFG_SYS_NOR_FTIM0 |
| 184 | #define CFG_SYS_CS1_FTIM1 CFG_SYS_NOR_FTIM1 |
| 185 | #define CFG_SYS_CS1_FTIM2 CFG_SYS_NOR_FTIM2 |
| 186 | #define CFG_SYS_CS1_FTIM3 CFG_SYS_NOR_FTIM3 |
| 187 | #define CFG_SYS_CSPR2_EXT CFG_SYS_NAND_CSPR_EXT |
| 188 | #define CFG_SYS_CSPR2 CFG_SYS_NAND_CSPR |
| 189 | #define CFG_SYS_AMASK2 CFG_SYS_NAND_AMASK |
| 190 | #define CFG_SYS_CSOR2 CFG_SYS_NAND_CSOR |
| 191 | #define CFG_SYS_CS2_FTIM0 CFG_SYS_NAND_FTIM0 |
| 192 | #define CFG_SYS_CS2_FTIM1 CFG_SYS_NAND_FTIM1 |
| 193 | #define CFG_SYS_CS2_FTIM2 CFG_SYS_NAND_FTIM2 |
| 194 | #define CFG_SYS_CS2_FTIM3 CFG_SYS_NAND_FTIM3 |
| 195 | #define CFG_SYS_CSPR3_EXT CFG_SYS_FPGA_CSPR_EXT |
| 196 | #define CFG_SYS_CSPR3 CFG_SYS_FPGA_CSPR |
| 197 | #define CFG_SYS_AMASK3 CFG_SYS_FPGA_AMASK |
| 198 | #define CFG_SYS_CSOR3 CFG_SYS_FPGA_CSOR |
| 199 | #define CFG_SYS_CS3_FTIM0 CFG_SYS_FPGA_FTIM0 |
| 200 | #define CFG_SYS_CS3_FTIM1 CFG_SYS_FPGA_FTIM1 |
| 201 | #define CFG_SYS_CS3_FTIM2 CFG_SYS_FPGA_FTIM2 |
| 202 | #define CFG_SYS_CS3_FTIM3 CFG_SYS_FPGA_FTIM3 |
Rajesh Bhagat | 90bde11 | 2018-11-05 18:02:48 +0000 | [diff] [blame] | 203 | #else |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 204 | #ifdef CONFIG_NAND_BOOT |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 205 | #define CFG_SYS_CSPR0_EXT CFG_SYS_NAND_CSPR_EXT |
| 206 | #define CFG_SYS_CSPR0 CFG_SYS_NAND_CSPR |
| 207 | #define CFG_SYS_AMASK0 CFG_SYS_NAND_AMASK |
| 208 | #define CFG_SYS_CSOR0 CFG_SYS_NAND_CSOR |
| 209 | #define CFG_SYS_CS0_FTIM0 CFG_SYS_NAND_FTIM0 |
| 210 | #define CFG_SYS_CS0_FTIM1 CFG_SYS_NAND_FTIM1 |
| 211 | #define CFG_SYS_CS0_FTIM2 CFG_SYS_NAND_FTIM2 |
| 212 | #define CFG_SYS_CS0_FTIM3 CFG_SYS_NAND_FTIM3 |
| 213 | #define CFG_SYS_CSPR1_EXT CFG_SYS_NOR0_CSPR_EXT |
| 214 | #define CFG_SYS_CSPR1 CFG_SYS_NOR0_CSPR |
| 215 | #define CFG_SYS_AMASK1 CFG_SYS_NOR_AMASK |
| 216 | #define CFG_SYS_CSOR1 CFG_SYS_NOR_CSOR |
| 217 | #define CFG_SYS_CS1_FTIM0 CFG_SYS_NOR_FTIM0 |
| 218 | #define CFG_SYS_CS1_FTIM1 CFG_SYS_NOR_FTIM1 |
| 219 | #define CFG_SYS_CS1_FTIM2 CFG_SYS_NOR_FTIM2 |
| 220 | #define CFG_SYS_CS1_FTIM3 CFG_SYS_NOR_FTIM3 |
| 221 | #define CFG_SYS_CSPR2_EXT CFG_SYS_NOR1_CSPR_EXT |
| 222 | #define CFG_SYS_CSPR2 CFG_SYS_NOR1_CSPR |
| 223 | #define CFG_SYS_AMASK2 CFG_SYS_NOR_AMASK |
| 224 | #define CFG_SYS_CSOR2 CFG_SYS_NOR_CSOR |
| 225 | #define CFG_SYS_CS2_FTIM0 CFG_SYS_NOR_FTIM0 |
| 226 | #define CFG_SYS_CS2_FTIM1 CFG_SYS_NOR_FTIM1 |
| 227 | #define CFG_SYS_CS2_FTIM2 CFG_SYS_NOR_FTIM2 |
| 228 | #define CFG_SYS_CS2_FTIM3 CFG_SYS_NOR_FTIM3 |
| 229 | #define CFG_SYS_CSPR3_EXT CFG_SYS_FPGA_CSPR_EXT |
| 230 | #define CFG_SYS_CSPR3 CFG_SYS_FPGA_CSPR |
| 231 | #define CFG_SYS_AMASK3 CFG_SYS_FPGA_AMASK |
| 232 | #define CFG_SYS_CSOR3 CFG_SYS_FPGA_CSOR |
| 233 | #define CFG_SYS_CS3_FTIM0 CFG_SYS_FPGA_FTIM0 |
| 234 | #define CFG_SYS_CS3_FTIM1 CFG_SYS_FPGA_FTIM1 |
| 235 | #define CFG_SYS_CS3_FTIM2 CFG_SYS_FPGA_FTIM2 |
| 236 | #define CFG_SYS_CS3_FTIM3 CFG_SYS_FPGA_FTIM3 |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 237 | #else |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 238 | #define CFG_SYS_CSPR0_EXT CFG_SYS_NOR0_CSPR_EXT |
| 239 | #define CFG_SYS_CSPR0 CFG_SYS_NOR0_CSPR |
| 240 | #define CFG_SYS_AMASK0 CFG_SYS_NOR_AMASK |
| 241 | #define CFG_SYS_CSOR0 CFG_SYS_NOR_CSOR |
| 242 | #define CFG_SYS_CS0_FTIM0 CFG_SYS_NOR_FTIM0 |
| 243 | #define CFG_SYS_CS0_FTIM1 CFG_SYS_NOR_FTIM1 |
| 244 | #define CFG_SYS_CS0_FTIM2 CFG_SYS_NOR_FTIM2 |
| 245 | #define CFG_SYS_CS0_FTIM3 CFG_SYS_NOR_FTIM3 |
| 246 | #define CFG_SYS_CSPR1_EXT CFG_SYS_NOR1_CSPR_EXT |
| 247 | #define CFG_SYS_CSPR1 CFG_SYS_NOR1_CSPR |
| 248 | #define CFG_SYS_AMASK1 CFG_SYS_NOR_AMASK |
| 249 | #define CFG_SYS_CSOR1 CFG_SYS_NOR_CSOR |
| 250 | #define CFG_SYS_CS1_FTIM0 CFG_SYS_NOR_FTIM0 |
| 251 | #define CFG_SYS_CS1_FTIM1 CFG_SYS_NOR_FTIM1 |
| 252 | #define CFG_SYS_CS1_FTIM2 CFG_SYS_NOR_FTIM2 |
| 253 | #define CFG_SYS_CS1_FTIM3 CFG_SYS_NOR_FTIM3 |
| 254 | #define CFG_SYS_CSPR2_EXT CFG_SYS_NAND_CSPR_EXT |
| 255 | #define CFG_SYS_CSPR2 CFG_SYS_NAND_CSPR |
| 256 | #define CFG_SYS_AMASK2 CFG_SYS_NAND_AMASK |
| 257 | #define CFG_SYS_CSOR2 CFG_SYS_NAND_CSOR |
| 258 | #define CFG_SYS_CS2_FTIM0 CFG_SYS_NAND_FTIM0 |
| 259 | #define CFG_SYS_CS2_FTIM1 CFG_SYS_NAND_FTIM1 |
| 260 | #define CFG_SYS_CS2_FTIM2 CFG_SYS_NAND_FTIM2 |
| 261 | #define CFG_SYS_CS2_FTIM3 CFG_SYS_NAND_FTIM3 |
| 262 | #define CFG_SYS_CSPR3_EXT CFG_SYS_FPGA_CSPR_EXT |
| 263 | #define CFG_SYS_CSPR3 CFG_SYS_FPGA_CSPR |
| 264 | #define CFG_SYS_AMASK3 CFG_SYS_FPGA_AMASK |
| 265 | #define CFG_SYS_CSOR3 CFG_SYS_FPGA_CSOR |
| 266 | #define CFG_SYS_CS3_FTIM0 CFG_SYS_FPGA_FTIM0 |
| 267 | #define CFG_SYS_CS3_FTIM1 CFG_SYS_FPGA_FTIM1 |
| 268 | #define CFG_SYS_CS3_FTIM2 CFG_SYS_FPGA_FTIM2 |
| 269 | #define CFG_SYS_CS3_FTIM3 CFG_SYS_FPGA_FTIM3 |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 270 | #endif |
Rajesh Bhagat | 90bde11 | 2018-11-05 18:02:48 +0000 | [diff] [blame] | 271 | #endif |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 272 | |
| 273 | /* |
| 274 | * I2C bus multiplexer |
| 275 | */ |
| 276 | #define I2C_MUX_PCA_ADDR_PRI 0x77 |
| 277 | #define I2C_MUX_PCA_ADDR_SEC 0x76 /* Secondary multiplexer */ |
| 278 | #define I2C_RETIMER_ADDR 0x18 |
| 279 | #define I2C_MUX_CH_DEFAULT 0x8 |
| 280 | #define I2C_MUX_CH_CH7301 0xC |
| 281 | #define I2C_MUX_CH5 0xD |
| 282 | #define I2C_MUX_CH7 0xF |
| 283 | |
| 284 | #define I2C_MUX_CH_VOL_MONITOR 0xa |
| 285 | |
| 286 | /* Voltage monitor on channel 2*/ |
| 287 | #define I2C_VOL_MONITOR_ADDR 0x40 |
| 288 | #define I2C_VOL_MONITOR_BUS_V_OFFSET 0x2 |
| 289 | #define I2C_VOL_MONITOR_BUS_V_OVF 0x1 |
| 290 | #define I2C_VOL_MONITOR_BUS_V_SHIFT 3 |
| 291 | |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 292 | /* The lowest and highest voltage allowed for LS1043AQDS */ |
| 293 | #define VDD_MV_MIN 819 |
| 294 | #define VDD_MV_MAX 1212 |
| 295 | |
| 296 | /* |
| 297 | * Miscellaneous configurable options |
| 298 | */ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 299 | |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 300 | /* |
| 301 | * Environment |
| 302 | */ |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 303 | |
Aneesh Bansal | 962021a | 2016-01-22 16:37:22 +0530 | [diff] [blame] | 304 | #include <asm/fsl_secure_boot.h> |
| 305 | |
Shaohui Xie | dd33567 | 2015-11-11 17:58:37 +0800 | [diff] [blame] | 306 | #endif /* __LS1043AQDS_H__ */ |