From a85281a5505bc6a5015012639a14b646482dcdc1 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Sun, 30 Aug 2026 15:26:47 +0200 Subject: [PATCH] WIP (temporary): green band at board_init_f entry for bring-up --- common/board_f.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/common/board_f.c b/common/board_f.c index 9efcd9499a9..eb73e1717c2 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -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;