bdk: mc: always enable ahb redirection

This commit is contained in:
CTCaer
2026-02-25 13:32:18 +02:00
parent e883d8644f
commit 392cda96d9
2 changed files with 1 additions and 6 deletions

View File

@@ -149,9 +149,6 @@ void mc_enable()
CLOCK(CLK_RST_CONTROLLER_RST_DEV_H_CLR) = BIT(CLK_H_EMC) | BIT(CLK_H_MEM); CLOCK(CLK_RST_CONTROLLER_RST_DEV_H_CLR) = BIT(CLK_H_EMC) | BIT(CLK_H_MEM);
usleep(5); usleep(5);
#ifdef BDK_MC_ENABLE_AHB_REDIRECT // Enable redirection by default.
mc_enable_ahb_redirect(); mc_enable_ahb_redirect();
#else
mc_disable_ahb_redirect();
#endif
} }

View File

@@ -307,10 +307,8 @@ out:
bpmp_mmu_enable(); bpmp_mmu_enable();
bpmp_clk_rate_relaxed(false); bpmp_clk_rate_relaxed(false);
#ifdef BDK_MC_ENABLE_AHB_REDIRECT
// Re-enable AHB aperture. // Re-enable AHB aperture.
mc_enable_ahb_redirect(); mc_enable_ahb_redirect();
#endif
return res; return res;
} }