xref: /openbmc/u-boot/drivers/ram/aspeed/Kconfig (revision a79412d2)
1if RAM || SPL_RAM
2
3config AST2600_SDRAMMC_MANUAL_CLK
4	bool "AST2600 SDRAM manual clock rate selection"
5	help
6	 In order to speed up DRAM init time, write pre-defined values to
7	 registers directly. This skips devce tree based detection.
8
9choice
10	prompt "DDR4 target data rate"
11	depends on AST2600_SDRAMMC_MANUAL_CLK
12	default ASPEED_DDR4_1600
13
14config ASPEED_DDR4_400
15	bool "DDR4 targets at 400Mbps"
16	depends on DM && OF_CONTROL && ARCH_ASPEED
17	help
18	  select DDR4 target data rate at 400M
19
20config ASPEED_DDR4_800
21	bool "DDR4 targets at 800Mbps"
22	depends on DM && OF_CONTROL && ARCH_ASPEED
23	help
24	  select DDR4 target data rate at 800M
25
26config ASPEED_DDR4_1333
27	bool "DDR4 targets at 1333Mbps"
28	depends on DM && OF_CONTROL && ARCH_ASPEED
29	help
30	  select DDR4 target data rate at 1333M
31
32config ASPEED_DDR4_1600
33	bool "DDR4 targets at 1600Mbps"
34	depends on DM && OF_CONTROL && ARCH_ASPEED
35	help
36	  select DDR4 target data rate at 1600M
37endchoice
38
39config ASPEED_DDR4_DUALX8
40	bool "dual X8 DDR4 die"
41	depends on DM && OF_CONTROL && ARCH_ASPEED
42	default n
43	help
44	  select dual X8 DDR4 die
45
46config ASPEED_BYPASS_SELFTEST
47	bool "bypass self test during DRAM initialization"
48	default n
49	help
50	  Say Y here to bypass DRAM self test to speed up the boot time
51
52config ASPEED_ECC
53	bool "aspeed SDRAM error correcting code"
54	depends on DM && OF_CONTROL && ARCH_ASPEED
55	default n
56	help
57	  enable SDRAM ECC function
58
59if ASPEED_ECC
60config ASPEED_ECC_SIZE
61	int "ECC size: 0=driver auto-caluated"
62	depends on ASPEED_ECC
63	default 0
64	help
65	  SDRAM size with the error correcting code enabled. The unit is
66	  in Megabytes.  Noted that only the 8/9 of the configured size
67	  can be used by the system.  The remaining 1/9 will be used by
68	  the ECC engine.  If the size is set to 0, the sdram driver will
69	  calculate the SDRAM size and set the whole range be ECC enabled.
70endif
71endif
72