WIP (temporary): green band at board_init_f entry for bring-up

This commit is contained in:
vhaudiquet
2026-08-30 15:26:47 +02:00
parent 46283a7722
commit a85281a550
+20
View File
@@ -1074,6 +1074,26 @@ void board_init_f(ulong boot_flags)
{
struct board_f boardf;
/* TEMPORARY bring-up diagnostics (krane Round 22) — do not
* upstream: green band = board_init_f entered (start.S/crt0 and
* the PIE fixup all completed). */
{
u32 base = readl((void __iomem *)0x14008f40);
if (base >= 0x40000000) {
u32 *p = (u32 *)(uintptr_t)(base + 400ULL * 4800);
int i;
if (dcache_status())
mmu_map_region(base, 0x8ca000, false);
for (i = 0; i < 60 * 1200; i++)
p[i] = 0x0000ff00;
if (dcache_status())
flush_dcache_range((uintptr_t)p,
(uintptr_t)(p + 60 * 1200));
}
}
/* end TEMPORARY diagnostics */
gd->flags = boot_flags;
gd->flags &= ~GD_FLG_HAVE_CONSOLE;
gd->boardf = &boardf;