blob: 0deab8649b6464505e8bdc9d7608f7cb385eaa51 [file] [log] [blame]
Joel Stanley086765c2022-02-16 18:23:22 +10301menuconfig 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
11if ASPEED_RAM
Dylan Hung82470022020-12-14 13:54:24 +080012
Dylan Hungf7d8f832020-09-07 16:25:07 +080013config ASPEED_DDR4_DUALX8
14 bool "Enable Dual X8 DDR4 die"
Joel Stanley086765c2022-02-16 18:23:22 +103015 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
22config 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
29config ASPEED_ECC
30 bool "ASPEED SDRAM ECC"
31 depends on ASPEED_RAM
32 depends on ASPEED_AST2600
Dylan Hungf7d8f832020-09-07 16:25:07 +080033 help
Joel Stanley086765c2022-02-16 18:23:22 +103034 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 Hung82470022020-12-14 13:54:24 +080037
Joel Stanley086765c2022-02-16 18:23:22 +103038
39config 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 Hung82470022020-12-14 13:54:24 +080049
50choice
Joel Stanley086765c2022-02-16 18:23:22 +103051 prompt "AST2600 DDR4 target date rate"
Dylan Hung82470022020-12-14 13:54:24 +080052 default ASPEED_DDR4_1600
Joel Stanley086765c2022-02-16 18:23:22 +103053 depends on ASPEED_RAM
54 depends on ASPEED_AST2600
Dylan Hung82470022020-12-14 13:54:24 +080055
56config ASPEED_DDR4_400
Joel Stanley086765c2022-02-16 18:23:22 +103057 bool "400Mbps"
Dylan Hung82470022020-12-14 13:54:24 +080058 help
59 select DDR4 target data rate at 400M
60
61config ASPEED_DDR4_800
Joel Stanley086765c2022-02-16 18:23:22 +103062 bool "800Mbps"
Dylan Hung82470022020-12-14 13:54:24 +080063 help
64 select DDR4 target data rate at 800M
65
66config ASPEED_DDR4_1333
Joel Stanley086765c2022-02-16 18:23:22 +103067 bool "1333Mbps"
Dylan Hung82470022020-12-14 13:54:24 +080068 help
69 select DDR4 target data rate at 1333M
70
71config ASPEED_DDR4_1600
Joel Stanley086765c2022-02-16 18:23:22 +103072 bool "1600Mbps"
Dylan Hung82470022020-12-14 13:54:24 +080073 help
74 select DDR4 target data rate at 1600M
75endchoice
76
Joel Stanley086765c2022-02-16 18:23:22 +103077endif # End of ASPEED_RAM