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<<i]));
+ puts("read ");
+ uart_writeuint32(1<<i);
+ puts(" ");
+ uart_writeuint32(tmp);
+ putchar(10);
+ i++;
+ }
+ }
+
+ return 0;
+#endif
+#if 0
volatile uint32_t *hyperram = (uint32_t*)0xa0000000;
writel(0xDEAF0123, (unsigned long)&(hyperram[0]));
tmp = readl((unsigned long)&(hyperram[0]));