xref: /openbmc/u-boot/drivers/ram/aspeed/Kconfig (revision c3d7eb06)
192a5848dSChia-Wei, Wangif RAM || SPL_RAM
292a5848dSChia-Wei, Wang
3*c3d7eb06SDylan Hungif ASPEED_AST2600
479088fd5SDylan Hungchoice
579088fd5SDylan Hung	prompt "DDR4 target data rate"
679088fd5SDylan Hung	default ASPEED_DDR4_1600
779088fd5SDylan Hung
8489b054eSDylan Hungconfig ASPEED_DDR4_400
9489b054eSDylan Hung	bool "DDR4 targets at 400Mbps"
10489b054eSDylan Hung	depends on DM && OF_CONTROL && ARCH_ASPEED
11489b054eSDylan Hung	help
12489b054eSDylan Hung	  select DDR4 target data rate at 400M
13489b054eSDylan Hung
1479088fd5SDylan Hungconfig ASPEED_DDR4_800
1579088fd5SDylan Hung	bool "DDR4 targets at 800Mbps"
1679088fd5SDylan Hung	depends on DM && OF_CONTROL && ARCH_ASPEED
1779088fd5SDylan Hung	help
1879088fd5SDylan Hung	  select DDR4 target data rate at 800M
1979088fd5SDylan Hung
20fd8b1ad3SDylan Hungconfig ASPEED_DDR4_1333
21fd8b1ad3SDylan Hung	bool "DDR4 targets at 1333Mbps"
22fd8b1ad3SDylan Hung	depends on DM && OF_CONTROL && ARCH_ASPEED
23fd8b1ad3SDylan Hung	help
24fd8b1ad3SDylan Hung	  select DDR4 target data rate at 1333M
25fd8b1ad3SDylan Hung
2679088fd5SDylan Hungconfig ASPEED_DDR4_1600
2779088fd5SDylan Hung	bool "DDR4 targets at 1600Mbps"
2879088fd5SDylan Hung	depends on DM && OF_CONTROL && ARCH_ASPEED
2979088fd5SDylan Hung	help
3079088fd5SDylan Hung	  select DDR4 target data rate at 1600M
3179088fd5SDylan Hungendchoice
3279088fd5SDylan Hung
3379088fd5SDylan Hungconfig ASPEED_DDR4_DUALX8
3479088fd5SDylan Hung	bool "dual X8 DDR4 die"
3579088fd5SDylan Hung	depends on DM && OF_CONTROL && ARCH_ASPEED
3679088fd5SDylan Hung	default n
3779088fd5SDylan Hung	help
3879088fd5SDylan Hung	  select dual X8 DDR4 die
39420e65f8SDylan Hung
4023156602SDylan Hungconfig ASPEED_BYPASS_SELFTEST
4123156602SDylan Hung	bool "bypass self test during DRAM initialization"
4223156602SDylan Hung	default n
4323156602SDylan Hung	help
4423156602SDylan Hung	  Say Y here to bypass DRAM self test to speed up the boot time
45*c3d7eb06SDylan Hungendif
4623156602SDylan Hung
47d6f57adbSDylan Hungconfig ASPEED_ECC
48d6f57adbSDylan Hung	bool "aspeed SDRAM error correcting code"
49d6f57adbSDylan Hung	depends on DM && OF_CONTROL && ARCH_ASPEED
50ecb4ad9fSDylan Hung	default n
51d6f57adbSDylan Hung	help
52d6f57adbSDylan Hung	  enable SDRAM ECC function
530bef06a6SDylan Hung
54cbb11045SDylan Hungif ASPEED_ECC
55cbb11045SDylan Hungconfig ASPEED_ECC_SIZE
56cbb11045SDylan Hung	int "ECC size: 0=driver auto-caluated"
570bef06a6SDylan Hung	depends on ASPEED_ECC
58cbb11045SDylan Hung	default 0
590bef06a6SDylan Hung	help
60cbb11045SDylan Hung	  SDRAM size with the error correcting code enabled. The unit is
61cbb11045SDylan Hung	  in Megabytes.  Noted that only the 8/9 of the configured size
62cbb11045SDylan Hung	  can be used by the system.  The remaining 1/9 will be used by
63cbb11045SDylan Hung	  the ECC engine.  If the size is set to 0, the sdram driver will
64cbb11045SDylan Hung	  calculate the SDRAM size and set the whole range be ECC enabled.
65cbb11045SDylan Hungendif
6692a5848dSChia-Wei, Wangendif
67