blob: e4918460de677be6e71030c74cd618175c219b1e [file] [log] [blame]
Joel Stanley086765c2022-02-16 18:23:22 +10301menuconfig ASPEED_RAM
2 bool "ASPEED SDRAM configuration"
Chia-Wei Wang8fb52592024-09-10 17:39:19 +08003 depends on RAM
4 depends on ARCH_ASPEED || TARGET_ASPEED_AST2700_IBEX
Joel Stanley086765c2022-02-16 18:23:22 +10305 default ARCH_ASPEED
6 help
7 Configuration options for DDR SDRAM on ASPEED systems.
8
9 RAM initialisation is always built in for the platform. This menu
10 allows customisation of the configuration used.
11
Dylan Hungf7d8f832020-09-07 16:25:07 +080012config ASPEED_DDR4_DUALX8
13 bool "Enable Dual X8 DDR4 die"
Joel Stanley086765c2022-02-16 18:23:22 +103014 depends on ASPEED_RAM
15 help
16 Say Y if dual X8 DDR4 die is used on the board. The ASPEED DDRM
17 SRAM controller needs to know if the memory chip mounted on the
18 board is dual x8 die or not, otherwise it may get the wrong
19 size of the memory space.
20
21config ASPEED_BYPASS_SELFTEST
22 depends on ASPEED_RAM
23 depends on ASPEED_AST2600
24 bool "Bypass self test during initialization"
25 help
26 Say Y here to bypass DRAM self test to speed up the boot time.
27
28config ASPEED_ECC
29 bool "ASPEED SDRAM ECC"
30 depends on ASPEED_RAM
31 depends on ASPEED_AST2600
Dylan Hungf7d8f832020-09-07 16:25:07 +080032 help
Joel Stanley086765c2022-02-16 18:23:22 +103033 Enable SDRAM ECC function. This configures the SDRAM controller to
34 perform error detection and correction, sacrificing 1/9th of the
35 installed RAM to do so.
Dylan Hung82470022020-12-14 13:54:24 +080036
Joel Stanley086765c2022-02-16 18:23:22 +103037
38config ASPEED_ECC_SIZE
39 int "ECC size: 0=driver auto-caluated"
40 depends on ASPEED_ECC
41 default 0
42 help
43 SDRAM size with the error correcting code enabled. The unit is
44 in Megabytes. Noted that only the 8/9 of the configured size
45 can be used by the system. The remaining 1/9 will be used by
46 the ECC engine. If the size is set to 0, the sdram driver will
47 calculate the SDRAM size and set the whole range be ECC enabled.
Dylan Hung82470022020-12-14 13:54:24 +080048
49choice
Joel Stanley086765c2022-02-16 18:23:22 +103050 prompt "AST2600 DDR4 target date rate"
Dylan Hung82470022020-12-14 13:54:24 +080051 default ASPEED_DDR4_1600
Joel Stanley086765c2022-02-16 18:23:22 +103052 depends on ASPEED_RAM
53 depends on ASPEED_AST2600
Dylan Hung82470022020-12-14 13:54:24 +080054
55config ASPEED_DDR4_400
Joel Stanley086765c2022-02-16 18:23:22 +103056 bool "400Mbps"
Dylan Hung82470022020-12-14 13:54:24 +080057 help
58 select DDR4 target data rate at 400M
59
60config ASPEED_DDR4_800
Joel Stanley086765c2022-02-16 18:23:22 +103061 bool "800Mbps"
Dylan Hung82470022020-12-14 13:54:24 +080062 help
63 select DDR4 target data rate at 800M
64
65config ASPEED_DDR4_1333
Joel Stanley086765c2022-02-16 18:23:22 +103066 bool "1333Mbps"
Dylan Hung82470022020-12-14 13:54:24 +080067 help
68 select DDR4 target data rate at 1333M
69
70config ASPEED_DDR4_1600
Joel Stanley086765c2022-02-16 18:23:22 +103071 bool "1600Mbps"
Dylan Hung82470022020-12-14 13:54:24 +080072 help
73 select DDR4 target data rate at 1600M
74endchoice
75
Chia-Wei Wang8fb52592024-09-10 17:39:19 +080076choice
77 prompt "AST2700 DDR target date rate"
78 default ASPEED_DDR_3200
79 depends on ASPEED_RAM
80 depends on TARGET_ASPEED_AST2700_IBEX
81
82config ASPEED_DDR_1600
83 bool "1600 Mbps"
84 help
85 select DDR target data rate at 1600M
86
87config ASPEED_DDR_2400
88 bool "2400 Mbps"
89 help
90 select DDR target data rate at 2400M
91
92config ASPEED_DDR_3200
93 bool "3200 Mbps"
94 help
95 select DDR target data rate at 3200M
96endchoice