Merge pull request #656 from kbeckmann/fix_sdram_leveling

Fix build issue where sdram_leveling is not found
This commit is contained in:
enjoy-digital 2020-09-30 09:57:54 +02:00 committed by GitHub
commit 96976941b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -801,7 +801,9 @@ int sdram_init(void)
ddrctrl_init_error_write(0); ddrctrl_init_error_write(0);
#endif #endif
init_sequence(); init_sequence();
#if defined(SDRAM_PHY_WRITE_LEVELING_CAPABLE) || defined(SDRAM_PHY_READ_LEVELING_CAPABLE)
sdram_leveling(); sdram_leveling();
#endif
sdram_software_control_off(); sdram_software_control_off();
if(!memtest((unsigned int *) MAIN_RAM_BASE, MAIN_RAM_SIZE)) { if(!memtest((unsigned int *) MAIN_RAM_BASE, MAIN_RAM_SIZE)) {
#ifdef CSR_DDRCTRL_BASE #ifdef CSR_DDRCTRL_BASE