GAH jump to start of SPI Flash not the offset *in* SPI
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 12 Apr 2022 13:47:55 +0000 (14:47 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 12 Apr 2022 13:47:55 +0000 (14:47 +0100)
coldboot/coldboot.c

index 1eea544898f2ef666b1054c032e9f7040d6facde..8f7559cdbffbf224f3237b8747362d640d2ca829 100644 (file)
@@ -496,7 +496,7 @@ int main(void) {
     if ((ftr & SYS_REG_INFO_HAS_SPI_FLASH))
     {
         // jump to absolute address
-        mtspr(8, spi_offs); // move address to LR
+        mtspr(8, SPI_FLASH_BASE); // move address to LR
         __asm__ volatile("blr");
         return 0;
     }