sigh use MEMORY_BASE which is at 0x0000_0000 and coincides with DRAM_BASE
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 Apr 2022 14:21:52 +0000 (15:21 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 Apr 2022 14:21:52 +0000 (15:21 +0100)
coldboot/coldboot.c

index 777695cb17a05960507ed4781fc4962b450876d2..020d9dc8cb90a53ae07aa679654a232d79233311 100644 (file)
@@ -158,7 +158,7 @@ int main(void) {
        int res, failcnt = 0;
        uint32_t tmp;
     unsigned long ftr, spi_offs=0x0;
-       volatile uint32_t *ram = (uint32_t*)DRAM_BASE;
+       volatile uint32_t *ram = (uint32_t*)MEMORY_BASE;
 
        console_init();
        //puts("Firmware launched...\n");
@@ -293,7 +293,7 @@ for (i=0;i<1000;i++) {
         };
 #endif
         struct gramProfile profile2;
-        gram_init(&ctx, &profile, (void*)DRAM_BASE,
+        gram_init(&ctx, &profile, (void*)MEMORY_BASE,
                                   (void*)DRAM_CTRL_BASE,
                                   (void*)DRAM_INIT_BASE);
         puts("done\n");