From 8b6c68f07f0e5834bfef0e62272043d042fbe2fd Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 12 Apr 2022 14:47:55 +0100 Subject: [PATCH] GAH jump to start of SPI Flash not the offset *in* SPI --- coldboot/coldboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 1eea544..8f7559c 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -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; } -- 2.30.2