diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-ledge/0006-arm-omap2-remove-arm_init_domains.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ledge/0006-arm-omap2-remove-arm_init_domains.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ledge/0006-arm-omap2-remove-arm_init_domains.patch b/recipes-bsp/u-boot/u-boot-ledge/0006-arm-omap2-remove-arm_init_domains.patch new file mode 100644 index 0000000..55ccb15 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ledge/0006-arm-omap2-remove-arm_init_domains.patch @@ -0,0 +1,49 @@ +From e24deaac3f92c5d147f3fa1fd772f92ab9e85cff Mon Sep 17 00:00:00 2001 +From: Patrick Delaunay <patrick.delaunay@foss.st.com> +Date: Fri, 5 Feb 2021 13:53:37 +0100 +Subject: [PATCH 6/8] arm: omap2: remove arm_init_domains + +Remove the arm_init_domains and the DACR update, as it is now done +in ARMv7 CP15 level. + +Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> +Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> +--- + arch/arm/mach-omap2/omap-cache.c | 17 ----------------- + 1 file changed, 17 deletions(-) + +diff --git a/arch/arm/mach-omap2/omap-cache.c b/arch/arm/mach-omap2/omap-cache.c +index 502ea6987ab7..451d8e4542b5 100644 +--- a/arch/arm/mach-omap2/omap-cache.c ++++ b/arch/arm/mach-omap2/omap-cache.c +@@ -40,9 +40,6 @@ DECLARE_GLOBAL_DATA_PTR; + #define ARMV7_DCACHE_POLICY DCACHE_WRITEBACK & ~TTB_SECT_XN_MASK + #endif + +-#define ARMV7_DOMAIN_CLIENT 1 +-#define ARMV7_DOMAIN_MASK (0x3 << 0) +- + void enable_caches(void) + { + +@@ -66,17 +63,3 @@ void dram_bank_mmu_setup(int bank) + for (i = start; i < end; i++) + set_section_dcache(i, ARMV7_DCACHE_POLICY); + } +- +-void arm_init_domains(void) +-{ +- u32 reg; +- +- reg = get_dacr(); +- /* +- * Set DOMAIN to client access so that all permissions +- * set in pagetables are validated by the mmu. +- */ +- reg &= ~ARMV7_DOMAIN_MASK; +- reg |= ARMV7_DOMAIN_CLIENT; +- set_dacr(reg); +-} +-- +2.30.1 + |