York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 1 | config SYS_FSL_DDR |
| 2 | bool |
| 3 | help |
| 4 | Select Freescale General DDR driver, shared between most Freescale |
Tom Rini | 1c58857 | 2021-05-14 21:34:26 -0400 | [diff] [blame] | 5 | PowerPC- based SoCs (such as mpc83xx, mpc85xx and ARM- based |
| 6 | Layerscape SoCs (such as ls2080a). |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 7 | |
| 8 | config SYS_FSL_MMDC |
| 9 | bool |
| 10 | help |
| 11 | Select Freescale Multi Mode DDR controller (MMDC). |
| 12 | |
Tom Rini | 140f0aa | 2022-06-15 12:03:47 -0400 | [diff] [blame] | 13 | config SYS_FSL_DDR_EMU |
| 14 | bool |
| 15 | help |
| 16 | Specify emulator support for DDR. Some DDR features such as deskew |
| 17 | training are not available. |
| 18 | |
Tom Rini | 9537216 | 2021-08-21 13:50:18 -0400 | [diff] [blame] | 19 | if SYS_FSL_DDR || SYS_FSL_MMDC |
| 20 | |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 21 | config SYS_FSL_DDR_BE |
| 22 | bool |
| 23 | help |
| 24 | Access DDR registers in big-endian |
| 25 | |
| 26 | config SYS_FSL_DDR_LE |
| 27 | bool |
| 28 | help |
| 29 | Access DDR registers in little-endian |
| 30 | |
Rajesh Bhagat | 3241312 | 2019-02-01 05:22:01 +0000 | [diff] [blame] | 31 | config FSL_DDR_BIST |
| 32 | bool |
| 33 | |
| 34 | config FSL_DDR_INTERACTIVE |
| 35 | bool |
| 36 | |
| 37 | config FSL_DDR_SYNC_REFRESH |
| 38 | bool |
| 39 | |
| 40 | config FSL_DDR_FIRST_SLOT_QUAD_CAPABLE |
| 41 | bool |
| 42 | |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 43 | menu "Freescale DDR controllers" |
| 44 | depends on SYS_FSL_DDR |
| 45 | |
York Sun | 51370d5 | 2016-12-28 08:43:45 -0800 | [diff] [blame] | 46 | config SYS_NUM_DDR_CTLRS |
York Sun | 66e399b | 2016-12-28 08:43:44 -0800 | [diff] [blame] | 47 | int "Maximum DDR controllers" |
| 48 | default 3 if ARCH_LS2080A || \ |
| 49 | ARCH_T4240 |
| 50 | default 2 if ARCH_B4860 || \ |
| 51 | ARCH_BSC9132 || \ |
York Sun | 66e399b | 2016-12-28 08:43:44 -0800 | [diff] [blame] | 52 | ARCH_P4080 || \ |
York Sun | 66e399b | 2016-12-28 08:43:44 -0800 | [diff] [blame] | 53 | ARCH_P5040 || \ |
Priyanka Jain | 4909b89 | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 54 | ARCH_LX2160A || \ |
Tom Rini | ec6b37c | 2021-05-23 10:58:05 -0400 | [diff] [blame] | 55 | ARCH_LX2162A |
York Sun | 66e399b | 2016-12-28 08:43:44 -0800 | [diff] [blame] | 56 | default 1 |
| 57 | |
Tom Rini | f9147d6 | 2022-02-25 11:19:53 -0500 | [diff] [blame] | 58 | config CHIP_SELECTS_PER_CTRL |
| 59 | int "Number of chip selects per controller" |
| 60 | default 4 |
| 61 | |
Tom Rini | 388de0f | 2022-03-30 18:07:31 -0400 | [diff] [blame] | 62 | config DIMM_SLOTS_PER_CTLR |
| 63 | int "Number of DIMM slots per controller" |
| 64 | default 1 |
| 65 | |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 66 | config SYS_FSL_DDR_VER |
| 67 | int |
| 68 | default 50 if SYS_FSL_DDR_VER_50 |
| 69 | default 47 if SYS_FSL_DDR_VER_47 |
| 70 | default 46 if SYS_FSL_DDR_VER_46 |
| 71 | default 44 if SYS_FSL_DDR_VER_44 |
| 72 | |
| 73 | config SYS_FSL_DDR_VER_50 |
| 74 | bool |
| 75 | |
| 76 | config SYS_FSL_DDR_VER_47 |
| 77 | bool |
| 78 | |
| 79 | config SYS_FSL_DDR_VER_46 |
| 80 | bool |
| 81 | |
| 82 | config SYS_FSL_DDR_VER_44 |
| 83 | bool |
| 84 | |
| 85 | config SYS_FSL_DDRC_GEN1 |
| 86 | bool |
| 87 | help |
| 88 | Enable Freescale DDR controller. |
| 89 | |
| 90 | config SYS_FSL_DDRC_GEN2 |
| 91 | bool |
| 92 | depends on !MPC86xx |
| 93 | help |
| 94 | Enable Freescale DDR2 controller. |
| 95 | |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 96 | config SYS_FSL_DDRC_GEN3 |
| 97 | bool |
| 98 | depends on PPC |
| 99 | help |
| 100 | Enable Freescale DDR3 controller for PowerPC SoCs. |
| 101 | |
| 102 | config SYS_FSL_DDRC_ARM_GEN3 |
| 103 | bool |
| 104 | depends on ARM |
| 105 | help |
| 106 | Enable Freescale DDR3 controller for ARM SoCs. |
| 107 | |
| 108 | config SYS_FSL_DDRC_GEN4 |
| 109 | bool |
| 110 | help |
| 111 | Enable Freescale DDR4 controller. |
| 112 | |
| 113 | config SYS_FSL_HAS_DDR4 |
| 114 | bool |
| 115 | |
| 116 | config SYS_FSL_HAS_DDR3 |
| 117 | bool |
| 118 | |
| 119 | config SYS_FSL_HAS_DDR2 |
| 120 | bool |
| 121 | |
| 122 | config SYS_FSL_HAS_DDR1 |
| 123 | bool |
| 124 | |
| 125 | choice |
| 126 | prompt "DDR technology" |
| 127 | default SYS_FSL_DDR4 if SYS_FSL_HAS_DDR4 |
| 128 | default SYS_FSL_DDR3 if SYS_FSL_HAS_DDR3 |
| 129 | default SYS_FSL_DDR2 if SYS_FSL_HAS_DDR2 |
| 130 | default SYS_FSL_DDR1 if SYS_FSL_HAS_DDR1 |
| 131 | |
| 132 | config SYS_FSL_DDR4 |
| 133 | bool "Freescale DDR4 controller" |
| 134 | depends on SYS_FSL_HAS_DDR4 |
Tom Rini | 222d22a | 2021-08-21 13:50:16 -0400 | [diff] [blame] | 135 | imply DDR_SPD |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 136 | select SYS_FSL_DDRC_GEN4 |
| 137 | |
| 138 | config SYS_FSL_DDR3 |
| 139 | bool "Freescale DDR3 controller" |
| 140 | depends on SYS_FSL_HAS_DDR3 |
Tom Rini | 222d22a | 2021-08-21 13:50:16 -0400 | [diff] [blame] | 141 | imply DDR_SPD |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 142 | select SYS_FSL_DDRC_GEN3 if PPC |
| 143 | select SYS_FSL_DDRC_ARM_GEN3 if ARM |
| 144 | |
| 145 | config SYS_FSL_DDR2 |
| 146 | bool "Freescale DDR2 controller" |
| 147 | depends on SYS_FSL_HAS_DDR2 |
Tom Rini | 222d22a | 2021-08-21 13:50:16 -0400 | [diff] [blame] | 148 | imply DDR_SPD |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 149 | select SYS_FSL_DDRC_GEN2 if (!MPC86xx && !SYS_FSL_DDRC_GEN3) |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 150 | |
| 151 | config SYS_FSL_DDR1 |
| 152 | bool "Freescale DDR1 controller" |
| 153 | depends on SYS_FSL_HAS_DDR1 |
Tom Rini | 222d22a | 2021-08-21 13:50:16 -0400 | [diff] [blame] | 154 | imply DDR_SPD |
York Sun | d26e34c | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 155 | select SYS_FSL_DDRC_GEN1 |
| 156 | |
| 157 | endchoice |
| 158 | |
| 159 | endmenu |
York Sun | ba1b6fb | 2016-12-28 08:43:41 -0800 | [diff] [blame] | 160 | |
Tom Rini | 9537216 | 2021-08-21 13:50:18 -0400 | [diff] [blame] | 161 | config FSL_DMA |
| 162 | def_bool y if DDR_ECC && MPC85xx && !ECC_INIT_VIA_DDRCONTROLLER |
| 163 | |
| 164 | config DDR_ECC |
| 165 | bool "ECC DDR memory support" |
| 166 | |
| 167 | config DDR_ECC_CMD |
| 168 | bool "Access the ECC features of the memory controller" |
| 169 | depends on DDR_ECC && MPC83xx |
| 170 | default y |
| 171 | |
| 172 | config ECC_INIT_VIA_DDRCONTROLLER |
| 173 | bool "DDR Memory controller initializes memory." |
| 174 | help |
| 175 | Use the DDR controller to auto initialize memory. If not enabled, |
| 176 | the DMA controller is responsible for doing this. |
| 177 | |
Tom Rini | c24e8e2 | 2022-06-15 12:03:55 -0400 | [diff] [blame] | 178 | config SYS_DDR_RAW_TIMING |
| 179 | bool "Get DDR timing information from something other than SPD" |
| 180 | help |
| 181 | This is common with soldered DDR chips onboard without SPD. DDR raw |
| 182 | timing parameters are extracted from datasheet and hard-coded into |
| 183 | header files or board specific files. |
| 184 | |
Tom Rini | 9537216 | 2021-08-21 13:50:18 -0400 | [diff] [blame] | 185 | endif |
| 186 | |
Tom Rini | c7fad78 | 2021-11-13 18:10:40 -0500 | [diff] [blame] | 187 | menu "PowerPC / M68K initial memory controller definitions (FLASH, SDRAM, etc)" |
| 188 | depends on MCF52x2 || MPC8xx || MPC83xx || MPC85xx |
| 189 | |
| 190 | config SYS_BR0_PRELIM_BOOL |
| 191 | bool "Define Bank 0" |
| 192 | |
| 193 | config SYS_BR0_PRELIM |
| 194 | hex "Preliminary value for BR0" |
| 195 | depends on SYS_BR0_PRELIM_BOOL |
| 196 | |
| 197 | config SYS_OR0_PRELIM |
| 198 | hex "Preliminary value for OR0" |
| 199 | depends on SYS_BR0_PRELIM_BOOL |
| 200 | |
| 201 | config SYS_BR1_PRELIM_BOOL |
| 202 | bool "Define Bank 1" |
| 203 | |
| 204 | config SYS_BR1_PRELIM |
| 205 | hex "Preliminary value for BR1" |
| 206 | depends on SYS_BR1_PRELIM_BOOL |
| 207 | |
| 208 | config SYS_OR1_PRELIM |
| 209 | hex "Preliminary value for OR1" |
| 210 | depends on SYS_BR1_PRELIM_BOOL |
| 211 | |
| 212 | config SYS_BR2_PRELIM_BOOL |
| 213 | bool "Define Bank 2" |
| 214 | |
| 215 | config SYS_BR2_PRELIM |
| 216 | hex "Preliminary value for BR2" |
| 217 | depends on SYS_BR2_PRELIM_BOOL |
| 218 | |
| 219 | config SYS_OR2_PRELIM |
| 220 | hex "Preliminary value for OR2" |
| 221 | depends on SYS_BR2_PRELIM_BOOL |
| 222 | |
| 223 | config SYS_BR3_PRELIM_BOOL |
| 224 | bool "Define Bank 3" |
| 225 | |
| 226 | config SYS_BR3_PRELIM |
| 227 | hex "Preliminary value for BR3" |
| 228 | depends on SYS_BR3_PRELIM_BOOL |
| 229 | |
| 230 | config SYS_OR3_PRELIM |
| 231 | hex "Preliminary value for OR3" |
| 232 | depends on SYS_BR3_PRELIM_BOOL |
| 233 | |
| 234 | config SYS_BR4_PRELIM_BOOL |
| 235 | bool "Define Bank 4" |
| 236 | |
| 237 | config SYS_BR4_PRELIM |
| 238 | hex "Preliminary value for BR4" |
| 239 | depends on SYS_BR4_PRELIM_BOOL |
| 240 | |
| 241 | config SYS_OR4_PRELIM |
| 242 | hex "Preliminary value for OR4" |
| 243 | depends on SYS_BR4_PRELIM_BOOL |
| 244 | |
| 245 | config SYS_BR5_PRELIM_BOOL |
| 246 | bool "Define Bank 5" |
| 247 | |
| 248 | config SYS_BR5_PRELIM |
| 249 | hex "Preliminary value for BR5" |
| 250 | depends on SYS_BR5_PRELIM_BOOL |
| 251 | |
| 252 | config SYS_OR5_PRELIM |
| 253 | hex "Preliminary value for OR5" |
| 254 | depends on SYS_BR5_PRELIM_BOOL |
| 255 | |
| 256 | config SYS_BR6_PRELIM_BOOL |
| 257 | bool "Define Bank 6" |
| 258 | |
| 259 | config SYS_BR6_PRELIM |
| 260 | hex "Preliminary value for BR6" |
| 261 | depends on SYS_BR6_PRELIM_BOOL |
| 262 | |
| 263 | config SYS_OR6_PRELIM |
| 264 | hex "Preliminary value for OR6" |
| 265 | depends on SYS_BR6_PRELIM_BOOL |
| 266 | |
| 267 | config SYS_BR7_PRELIM_BOOL |
| 268 | bool "Define Bank 7" |
| 269 | |
| 270 | config SYS_BR7_PRELIM |
| 271 | hex "Preliminary value for BR7" |
| 272 | depends on SYS_BR7_PRELIM_BOOL |
| 273 | |
| 274 | config SYS_OR7_PRELIM |
| 275 | hex "Preliminary value for OR7" |
| 276 | depends on SYS_BR7_PRELIM_BOOL |
| 277 | endmenu |
| 278 | |
Tom Rini | 90f0819 | 2022-05-21 14:44:28 -0400 | [diff] [blame] | 279 | if TARGET_P1010RDB_PA || TARGET_P1010RDB_PB || TARGET_P1020RDB_PC || \ |
| 280 | TARGET_P1020RDB_PD || TARGET_P2020RDB |
| 281 | |
| 282 | config COMMON_INIT_DDR |
| 283 | bool "Do not have a TLB entry to cover common DDR init with serial presence detect (SPD)" |
| 284 | |
| 285 | config SPL_COMMON_INIT_DDR |
| 286 | bool "Do not have a TLB entry to cover common DDR init with SPD in SPL" |
| 287 | |
| 288 | config TPL_COMMON_INIT_DDR |
| 289 | bool "Do not have a TLB entry to cover common DDR init with SPD in TPL" |
| 290 | |
| 291 | endif |
| 292 | |
York Sun | ba1b6fb | 2016-12-28 08:43:41 -0800 | [diff] [blame] | 293 | config SYS_FSL_ERRATUM_A008378 |
| 294 | bool |
| 295 | |
Joakim Tjernlund | 73af094 | 2019-11-20 17:07:34 +0100 | [diff] [blame] | 296 | config SYS_FSL_ERRATUM_A008109 |
| 297 | bool |
| 298 | |
York Sun | ba1b6fb | 2016-12-28 08:43:41 -0800 | [diff] [blame] | 299 | config SYS_FSL_ERRATUM_A008511 |
| 300 | bool |
| 301 | |
| 302 | config SYS_FSL_ERRATUM_A009663 |
| 303 | bool |
| 304 | |
| 305 | config SYS_FSL_ERRATUM_A009801 |
| 306 | bool |
| 307 | |
| 308 | config SYS_FSL_ERRATUM_A009803 |
| 309 | bool |
| 310 | |
| 311 | config SYS_FSL_ERRATUM_A009942 |
| 312 | bool |
| 313 | |
| 314 | config SYS_FSL_ERRATUM_A010165 |
| 315 | bool |
York Sun | 63659ff | 2016-12-28 08:43:43 -0800 | [diff] [blame] | 316 | |
| 317 | config SYS_FSL_ERRATUM_NMG_DDR120 |
| 318 | bool |
| 319 | |
| 320 | config SYS_FSL_ERRATUM_DDR_115 |
| 321 | bool |
| 322 | |
| 323 | config SYS_FSL_ERRATUM_DDR111_DDR134 |
| 324 | bool |
| 325 | |
| 326 | config SYS_FSL_ERRATUM_DDR_A003 |
| 327 | bool |
| 328 | |
| 329 | config SYS_FSL_ERRATUM_DDR_A003474 |
| 330 | bool |