arm: cp15: remove weak function arm_init_domains

Remove the unused weak function arm_init_domains used to change the
DACR value.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:
Patrick Delaunay 2021-02-05 13:53:38 +01:00 committed by Tom Rini
parent cd3eadc2bb
commit 8ca0f51c59
3 changed files with 0 additions and 10 deletions

View File

@ -176,9 +176,6 @@ void mmu_page_table_flush(unsigned long start, unsigned long stop)
{
}
void arm_init_domains(void)
{
}
#endif /* #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) */
#if !CONFIG_IS_ENABLED(SYS_ICACHE_OFF)

View File

@ -35,7 +35,6 @@ void l2_cache_disable(void);
void set_section_dcache(int section, enum dcache_option option);
void arm_init_before_mmu(void);
void arm_init_domains(void);
void cpu_cache_initialization(void);
void dram_bank_mmu_setup(int bank);

View File

@ -22,10 +22,6 @@ __weak void arm_init_before_mmu(void)
{
}
__weak void arm_init_domains(void)
{
}
static void set_section_phys(int section, phys_addr_t phys,
enum dcache_option option)
{
@ -210,8 +206,6 @@ static inline void mmu_setup(void)
asm volatile("mcr p15, 0, %0, c3, c0, 0"
: : "r" (0x55555555));
arm_init_domains();
/* and enable the mmu */
reg = get_cr(); /* get control reg. */
set_cr(reg | CR_M);