projects
/
ls2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06ae00e
)
quick memory test increasing by power-2 each time shows all 32 mbytes of
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 28 Mar 2022 14:16:45 +0000
(15:16 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 28 Mar 2022 14:16:45 +0000
(15:16 +0100)
hyperram ICs are accessible
coldboot/coldboot.c
patch
|
blob
|
history
diff --git
a/coldboot/coldboot.c
b/coldboot/coldboot.c
index 8000d0540e6356a835a506538e87b5989f16562d..16b7780fdf778257dea49e9e4d75d11ec88fb3e9 100644
(file)
--- a/
coldboot/coldboot.c
+++ b/
coldboot/coldboot.c
@@
-77,9
+77,11
@@
int main(void) {
if (c == 13) { // if CR send LF
// quick write/read
- writel(0xDEAF0123+i, (unsigned long)&(hyperram[
0
]));
- tmp = readl((unsigned long)&(hyperram[
0
]));
+ writel(0xDEAF0123+i, (unsigned long)&(hyperram[
1<<i
]));
+ tmp = readl((unsigned long)&(hyperram[
1<<i
]));
puts("read ");
+ uart_writeuint32(1<<i);
+ puts(" ");
uart_writeuint32(tmp);
putchar(10);
i++;