summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-01-17 16:38:16 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-21 08:25:58 +0100
commit396b1516e318d4918a5de5ffc21e32d9cac34f24 (patch)
treebdeb6c0c8fb5f5a826b5974219ed808232fd5b7a /arch/arm/cpu
parent453d3e63fa5987c7b011ab04cd4f7d6a72e932a7 (diff)
downloadbarebox-396b1516e318d4918a5de5ffc21e32d9cac34f24.tar.gz
barebox-396b1516e318d4918a5de5ffc21e32d9cac34f24.tar.xz
ARM: mmu: Drop custom virt_to_phys/phys_to_virt
Neither ARM nor ARM64 define any address mapping functions that differ from default provided for no-MMU configuration. Drop all the extra code and just rely on functions provided in asm/io.h Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/mmu.c10
-rw-r--r--arch/arm/cpu/mmu_64.c10
2 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c
index fc48376f66..2b7b9e30a2 100644
--- a/arch/arm/cpu/mmu.c
+++ b/arch/arm/cpu/mmu.c
@@ -524,16 +524,6 @@ void *dma_alloc_writecombine(size_t size, dma_addr_t *dma_handle)
return dma_alloc_map(size, dma_handle, ARCH_MAP_WRITECOMBINE);
}
-unsigned long virt_to_phys(volatile void *virt)
-{
- return (unsigned long)virt;
-}
-
-void *phys_to_virt(unsigned long phys)
-{
- return (void *)phys;
-}
-
void dma_free_coherent(void *mem, dma_addr_t dma_handle, size_t size)
{
size = PAGE_ALIGN(size);
diff --git a/arch/arm/cpu/mmu_64.c b/arch/arm/cpu/mmu_64.c
index 99ddd5a441..b6f30d1b39 100644
--- a/arch/arm/cpu/mmu_64.c
+++ b/arch/arm/cpu/mmu_64.c
@@ -252,16 +252,6 @@ void mmu_disable(void)
isb();
}
-unsigned long virt_to_phys(volatile void *virt)
-{
- return (unsigned long)virt;
-}
-
-void *phys_to_virt(unsigned long phys)
-{
- return (void *)phys;
-}
-
void *dma_alloc_coherent(size_t size, dma_addr_t *dma_handle)
{
void *ret;