From: Luke Kenneth Casson Leighton Date: Mon, 11 Apr 2022 15:54:16 +0000 (+0100) Subject: annoying, read from wrong offset in SPI FLASH X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41108652d405e674f516499ac53172545bc490f3;p=ls2.git annoying, read from wrong offset in SPI FLASH --- diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 4f699a5..d725c83 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -257,7 +257,7 @@ int main(void) { puts("\n"); } #endif - volatile uint32_t *qspi = (uint32_t*)spi_offs; + volatile uint32_t *qspi = (uint32_t*)SPI_FLASH_BASE+spi_offs; //volatile uint8_t *qspi_bytes = (uint8_t*)spi_offs; // let's not, eh? writel(0xDEAF0123, (unsigned long)&(qspi[0])); // tmp = readl((unsigned long)&(qspi[0]));