179088fd5SDylan Hungchoice 279088fd5SDylan Hung prompt "DDR4 target data rate" 379088fd5SDylan Hung default ASPEED_DDR4_1600 479088fd5SDylan Hung 5489b054eSDylan Hungconfig ASPEED_DDR4_400 6489b054eSDylan Hung bool "DDR4 targets at 400Mbps" 7489b054eSDylan Hung depends on DM && OF_CONTROL && ARCH_ASPEED 8489b054eSDylan Hung select RAM 9489b054eSDylan Hung select SPL_RAM if SPL 10489b054eSDylan Hung help 11489b054eSDylan Hung select DDR4 target data rate at 400M 12489b054eSDylan Hung 1379088fd5SDylan Hungconfig ASPEED_DDR4_800 1479088fd5SDylan Hung bool "DDR4 targets at 800Mbps" 1579088fd5SDylan Hung depends on DM && OF_CONTROL && ARCH_ASPEED 1679088fd5SDylan Hung select RAM 1779088fd5SDylan Hung select SPL_RAM if SPL 1879088fd5SDylan Hung help 1979088fd5SDylan Hung select DDR4 target data rate at 800M 2079088fd5SDylan Hung 2179088fd5SDylan Hungconfig ASPEED_DDR4_1600 2279088fd5SDylan Hung bool "DDR4 targets at 1600Mbps" 2379088fd5SDylan Hung depends on DM && OF_CONTROL && ARCH_ASPEED 2479088fd5SDylan Hung select RAM 2579088fd5SDylan Hung select SPL_RAM if SPL 2679088fd5SDylan Hung help 2779088fd5SDylan Hung select DDR4 target data rate at 1600M 2879088fd5SDylan Hungendchoice 2979088fd5SDylan Hung 3079088fd5SDylan Hungconfig ASPEED_DDR4_DUALX8 3179088fd5SDylan Hung bool "dual X8 DDR4 die" 3279088fd5SDylan Hung depends on DM && OF_CONTROL && ARCH_ASPEED 3379088fd5SDylan Hung select RAM 3479088fd5SDylan Hung select SPL_RAM if SPL 3579088fd5SDylan Hung default n 3679088fd5SDylan Hung help 3779088fd5SDylan Hung select dual X8 DDR4 die 38420e65f8SDylan Hung 39420e65f8SDylan Hungconfig ASPEED_PALLADIUM 40420e65f8SDylan Hung bool "aspeed palladium RAM model" 41857027a2SDylan Hung select RAM 42857027a2SDylan Hung select SPL_RAM if SPL 43857027a2SDylan Hung default n 44420e65f8SDylan Hung help 45420e65f8SDylan Hung Say Y here to enable the Aspeed Palladium driver 46420e65f8SDylan Hung 47420e65f8SDylan Hung This provides configurations specific for Aspeed Palladium SDRAM 48420e65f8SDylan Hung model 49d6f57adbSDylan Hung 50d6f57adbSDylan Hungconfig ASPEED_ECC 51d6f57adbSDylan Hung bool "aspeed SDRAM error correcting code" 52d6f57adbSDylan Hung depends on DM && OF_CONTROL && ARCH_ASPEED 53d6f57adbSDylan Hung select RAM 54d6f57adbSDylan Hung select SPL_RAM if SPL 55ecb4ad9fSDylan Hung default n 56d6f57adbSDylan Hung help 57d6f57adbSDylan Hung enable SDRAM ECC function 580bef06a6SDylan Hung 59*cbb11045SDylan Hungif ASPEED_ECC 60*cbb11045SDylan Hungconfig ASPEED_ECC_SIZE 61*cbb11045SDylan Hung int "ECC size: 0=driver auto-caluated" 620bef06a6SDylan Hung depends on ASPEED_ECC 63*cbb11045SDylan Hung default 0 640bef06a6SDylan Hung help 65*cbb11045SDylan Hung SDRAM size with the error correcting code enabled. The unit is 66*cbb11045SDylan Hung in Megabytes. Noted that only the 8/9 of the configured size 67*cbb11045SDylan Hung can be used by the system. The remaining 1/9 will be used by 68*cbb11045SDylan Hung the ECC engine. If the size is set to 0, the sdram driver will 69*cbb11045SDylan Hung calculate the SDRAM size and set the whole range be ECC enabled. 70*cbb11045SDylan Hungendif 710bef06a6SDylan Hung 72