diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2020-06-03 14:43:42 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-10 14:10:43 -0400 |
commit | d877f8fd0f0973451f5c48d37c5d7fb761075765 (patch) | |
tree | 389ce395c457618bb3c8fad142f14f585c47850f /arch/arm/include/asm/system.h | |
parent | f5a9fcc602dddc80051f265898ef1f8275a58fdb (diff) |
arm: provide a function for boards init code to modify MMU virtual-physical map
Provide function for setting arbitrary virtual-physical MMU mapping
and cache settings for the given region.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/include/asm/system.h')
-rw-r--r-- | arch/arm/include/asm/system.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index f51ee44720..37c1bfd726 100644 --- a/arch/arm/include/asm/system.h +++ b/arch/arm/include/asm/system.h @@ -588,6 +588,19 @@ s32 psci_features(u32 function_id, u32 psci_fid); void save_boot_params_ret(void); /** + * mmu_set_region_dcache_behaviour_phys() - set virt/phys mapping + * + * Change the virt/phys mapping and cache settings for a region. + * + * @virt: virtual start address of memory region to change + * @phys: physical address for the memory region to set + * @size: size of memory region to change + * @option: dcache option to select + */ +void mmu_set_region_dcache_behaviour_phys(phys_addr_t virt, phys_addr_t phys, + size_t size, enum dcache_option option); + +/** * mmu_set_region_dcache_behaviour() - set cache settings * * Change the cache settings for a region. |