From 2ce704dea301fad5df46cdb4f7feb6472fbc7330 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 29 Mar 2022 13:45:32 +0100 Subject: [PATCH] quick-and-dirty QSPI read test --- coldboot/coldboot.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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<