blob: 576d5af8688e8bc52e2a11290acfd604f6705c0a [file] [log] [blame]
Dylan Hungf7d8f832020-09-07 16:25:07 +08001if RAM || SPL_RAM
Dylan Hung82470022020-12-14 13:54:24 +08002
Dylan Hungf7d8f832020-09-07 16:25:07 +08003config ASPEED_DDR4_DUALX8
4 bool "Enable Dual X8 DDR4 die"
5 depends on DM && OF_CONTROL && ARCH_ASPEED
Dylan Hungf7d8f832020-09-07 16:25:07 +08006 help
7 Say Y if dual X8 DDR4 die is used on the board. The aspeed ddr sdram
8 controller needs to know if the memory chip mounted on the board is dual
9 x8 die or not. Or it may get the wrong size of the memory space.
Dylan Hung82470022020-12-14 13:54:24 +080010
11if ASPEED_AST2600
12
13choice
14 prompt "DDR4 target date rate"
15 default ASPEED_DDR4_1600
16
17config ASPEED_DDR4_400
18 bool "DDR4 targets at 400Mbps"
19 depends on DM && OF_CONTROL && ARCH_ASPEED
20 help
21 select DDR4 target data rate at 400M
22
23config ASPEED_DDR4_800
24 bool "DDR4 targets at 800Mbps"
25 depends on DM && OF_CONTROL && ARCH_ASPEED
26 help
27 select DDR4 target data rate at 800M
28
29config ASPEED_DDR4_1333
30 bool "DDR4 targets at 1333Mbps"
31 depends on DM && OF_CONTROL && ARCH_ASPEED
32 help
33 select DDR4 target data rate at 1333M
34
35config ASPEED_DDR4_1600
36 bool "DDR4 targets at 1600Mbps"
37 depends on DM && OF_CONTROL && ARCH_ASPEED
38 help
39 select DDR4 target data rate at 1600M
40endchoice
41
42config ASPEED_BYPASS_SELFTEST
43 bool "bypass self test during DRAM initialization"
Dylan Hung82470022020-12-14 13:54:24 +080044 help
45 Say Y here to bypass DRAM self test to speed up the boot time
46
47config ASPEED_ECC
48 bool "aspeed SDRAM error correcting code"
49 depends on DM && OF_CONTROL && ARCH_ASPEED
Dylan Hung82470022020-12-14 13:54:24 +080050 help
51 enable SDRAM ECC function
52
53if ASPEED_ECC
54config ASPEED_ECC_SIZE
55 int "ECC size: 0=driver auto-caluated"
56 depends on ASPEED_ECC
57 default 0
58 help
59 SDRAM size with the error correcting code enabled. The unit is
60 in Megabytes. Noted that only the 8/9 of the configured size
61 can be used by the system. The remaining 1/9 will be used by
62 the ECC engine. If the size is set to 0, the sdram driver will
63 calculate the SDRAM size and set the whole range be ECC enabled.
64endif # end of ASPEED_ECC
65endif # end of ASPEED_AST2600
66endif # end of RAM || SPL_RAM