Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 1 | menuconfig ASPEED_RAM |
| 2 | bool "ASPEED SDRAM configuration" |
| 3 | depends on RAM && ARCH_ASPEED |
| 4 | default ARCH_ASPEED |
| 5 | help |
| 6 | Configuration options for DDR SDRAM on ASPEED systems. |
| 7 | |
| 8 | RAM initialisation is always built in for the platform. This menu |
| 9 | allows customisation of the configuration used. |
| 10 | |
| 11 | if ASPEED_RAM |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 12 | |
Dylan Hung | f7d8f83 | 2020-09-07 16:25:07 +0800 | [diff] [blame] | 13 | config ASPEED_DDR4_DUALX8 |
| 14 | bool "Enable Dual X8 DDR4 die" |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 15 | depends on ASPEED_RAM |
| 16 | help |
| 17 | Say Y if dual X8 DDR4 die is used on the board. The ASPEED DDRM |
| 18 | SRAM controller needs to know if the memory chip mounted on the |
| 19 | board is dual x8 die or not, otherwise it may get the wrong |
| 20 | size of the memory space. |
| 21 | |
| 22 | config ASPEED_BYPASS_SELFTEST |
| 23 | depends on ASPEED_RAM |
| 24 | depends on ASPEED_AST2600 |
| 25 | bool "Bypass self test during initialization" |
| 26 | help |
| 27 | Say Y here to bypass DRAM self test to speed up the boot time. |
| 28 | |
| 29 | config ASPEED_ECC |
| 30 | bool "ASPEED SDRAM ECC" |
| 31 | depends on ASPEED_RAM |
| 32 | depends on ASPEED_AST2600 |
Dylan Hung | f7d8f83 | 2020-09-07 16:25:07 +0800 | [diff] [blame] | 33 | help |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 34 | Enable SDRAM ECC function. This configures the SDRAM controller to |
| 35 | perform error detection and correction, sacrificing 1/9th of the |
| 36 | installed RAM to do so. |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 37 | |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 38 | |
| 39 | config ASPEED_ECC_SIZE |
| 40 | int "ECC size: 0=driver auto-caluated" |
| 41 | depends on ASPEED_ECC |
| 42 | default 0 |
| 43 | help |
| 44 | SDRAM size with the error correcting code enabled. The unit is |
| 45 | in Megabytes. Noted that only the 8/9 of the configured size |
| 46 | can be used by the system. The remaining 1/9 will be used by |
| 47 | the ECC engine. If the size is set to 0, the sdram driver will |
| 48 | calculate the SDRAM size and set the whole range be ECC enabled. |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 49 | |
| 50 | choice |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 51 | prompt "AST2600 DDR4 target date rate" |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 52 | default ASPEED_DDR4_1600 |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 53 | depends on ASPEED_RAM |
| 54 | depends on ASPEED_AST2600 |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 55 | |
| 56 | config ASPEED_DDR4_400 |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 57 | bool "400Mbps" |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 58 | help |
| 59 | select DDR4 target data rate at 400M |
| 60 | |
| 61 | config ASPEED_DDR4_800 |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 62 | bool "800Mbps" |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 63 | help |
| 64 | select DDR4 target data rate at 800M |
| 65 | |
| 66 | config ASPEED_DDR4_1333 |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 67 | bool "1333Mbps" |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 68 | help |
| 69 | select DDR4 target data rate at 1333M |
| 70 | |
| 71 | config ASPEED_DDR4_1600 |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 72 | bool "1600Mbps" |
Dylan Hung | 8247002 | 2020-12-14 13:54:24 +0800 | [diff] [blame] | 73 | help |
| 74 | select DDR4 target data rate at 1600M |
| 75 | endchoice |
| 76 | |
Joel Stanley | 086765c | 2022-02-16 18:23:22 +1030 | [diff] [blame] | 77 | endif # End of ASPEED_RAM |