From: Luke Kenneth Casson Leighton Date: Mon, 11 Apr 2022 15:35:26 +0000 (+0100) Subject: make DRAM init conditional on whether it is detected through SYSCON X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5baf2a874d09ab864e876486c57dc2e7e7925ca8;p=ls2.git make DRAM init conditional on whether it is detected through SYSCON --- diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index b3454cb..4f699a5 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -326,7 +326,9 @@ int main(void) { return 0; #endif - for (int persistence=0; persistence < 1000; persistence++) { + // init DRAM only if SYSCON says it exists (duh) + if (ftr & SYS_REG_INFO_HAS_DRAM) + { puts("DRAM init... "); struct gramCtx ctx; @@ -471,9 +473,6 @@ int main(void) { } } } - if (failcnt == 0) { // fiinally... - break; - } } #endif puts("done\n");