blob: 0deab8649b6464505e8bdc9d7608f7cb385eaa51 [file] [log] [blame]
Joel Stanley5bb26a52022-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 Hungfde93142020-12-14 13:54:24 +080012
Dylan Hung04740502020-09-07 16:25:07 +080013config ASPEED_DDR4_DUALX8
14 bool "Enable Dual X8 DDR4 die"
Joel Stanley5bb26a52022-02-16 18:23:22 +103015 depends on ASPEED_RAM
Dylan Hung04740502020-09-07 16:25:07 +080016 help
Joel Stanley5bb26a52022-02-16 18:23:22 +103017 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.
Dylan Hungfde93142020-12-14 13:54:24 +080021
22config ASPEED_BYPASS_SELFTEST
Joel Stanley5bb26a52022-02-16 18:23:22 +103023 depends on ASPEED_RAM
24 depends on ASPEED_AST2600
25 bool "Bypass self test during initialization"
Dylan Hungfde93142020-12-14 13:54:24 +080026 help
Joel Stanley5bb26a52022-02-16 18:23:22 +103027 Say Y here to bypass DRAM self test to speed up the boot time.
Dylan Hungfde93142020-12-14 13:54:24 +080028
29config ASPEED_ECC
Joel Stanley5bb26a52022-02-16 18:23:22 +103030 bool "ASPEED SDRAM ECC"
31 depends on ASPEED_RAM
32 depends on ASPEED_AST2600
Dylan Hungfde93142020-12-14 13:54:24 +080033 help
Joel Stanley5bb26a52022-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 Hungfde93142020-12-14 13:54:24 +080037
Joel Stanley5bb26a52022-02-16 18:23:22 +103038
Dylan Hungfde93142020-12-14 13:54:24 +080039config 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.
Joel Stanley5bb26a52022-02-16 18:23:22 +103049
50choice
51 prompt "AST2600 DDR4 target date rate"
52 default ASPEED_DDR4_1600
53 depends on ASPEED_RAM
54 depends on ASPEED_AST2600
55
56config ASPEED_DDR4_400
57 bool "400Mbps"
58 help
59 select DDR4 target data rate at 400M
60
61config ASPEED_DDR4_800
62 bool "800Mbps"
63 help
64 select DDR4 target data rate at 800M
65
66config ASPEED_DDR4_1333
67 bool "1333Mbps"
68 help
69 select DDR4 target data rate at 1333M
70
71config ASPEED_DDR4_1600
72 bool "1600Mbps"
73 help
74 select DDR4 target data rate at 1600M
75endchoice
76
77endif # End of ASPEED_RAM