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