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