From: Luke Kenneth Casson Leighton Date: Tue, 29 Mar 2022 12:45:32 +0000 (+0100) Subject: quick-and-dirty QSPI read test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ce704dea301fad5df46cdb4f7feb6472fbc7330;p=ls2.git quick-and-dirty QSPI read test --- diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 16b7780..5017c39 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -68,6 +68,28 @@ int main(void) { puts("fw.."); #if 1 + volatile uint32_t *qspi = (uint32_t*)0x10000000; + // let's not, eh? writel(0xDEAF0123, (unsigned long)&(qspi[0])); + // tmp = readl((unsigned long)&(qspi[0])); + while (1) { + unsigned char c = getchar(); + putchar(c); + if (c == 13) { // if CR send LF + + // quick read + tmp = readl((unsigned long)&(qspi[1<