From a02624cd39d1576e6ebb93feb6b2223408a2ded3 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Wed, 25 Feb 2026 13:49:33 +0200 Subject: [PATCH] bdk: mc: reduce ahb aperture by 4KB The state machine automatically uses TOM + 4KB as real top address. This can cause issues with HW that accesses that low RAM range, since once the request enters ARC can't be redirected to MC and can hang. --- bdk/mem/mc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdk/mem/mc.c b/bdk/mem/mc.c index 89ac582e..7e1a054e 100644 --- a/bdk/mem/mc.c +++ b/bdk/mem/mc.c @@ -113,7 +113,7 @@ void mc_enable_ahb_redirect() CLOCK(CLK_RST_CONTROLLER_LVL2_CLK_GATE_OVRD) |= BIT(19); //MC(MC_IRAM_REG_CTRL) &= ~BIT(0); MC(MC_IRAM_BOM) = IRAM_BASE; - MC(MC_IRAM_TOM) = DRAM_START; // Default is only IRAM: 0x4003F000. + MC(MC_IRAM_TOM) = DRAM_START - 1; // Default is only IRAM: 0x4003F000. } void mc_disable_ahb_redirect()