From: Luke Kenneth Casson Leighton Date: Mon, 28 Mar 2022 14:16:45 +0000 (+0100) Subject: quick memory test increasing by power-2 each time shows all 32 mbytes of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df68c1901168e82d056f36b66ddd9bdc92630094;p=ls2.git quick memory test increasing by power-2 each time shows all 32 mbytes of hyperram ICs are accessible --- diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 8000d05..16b7780 100644 --- 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<