diff mbox series

riscv: remove CONFIG_ARCH_MAP_SYSMEM from io.h

Message ID 7811e3536a38a6baf186c9925f010c565aad6cdc.1652871239.git.michal.simek@amd.com
State Accepted
Commit 8ac37b461c90987f02f011d17145f8d6ff484bc7
Delegated to: Andes
Headers show
Series riscv: remove CONFIG_ARCH_MAP_SYSMEM from io.h | expand

Commit Message

Michal Simek May 18, 2022, 10:54 a.m. UTC
Commit ba1ed5b022c6 ("Convert CONFIG_ARCH_MAP_SYSMEM to Kconfig") clearly
defined that this option is available for SANDBOX (was also for already
removed NDS32). That's why there is no way how this code can be enabled
with current Kconfig layout for riscv.
Based on this removing this code.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 arch/riscv/include/asm/io.h | 22 ----------------------
 1 file changed, 22 deletions(-)

Comments

Bin Meng May 18, 2022, 1:24 p.m. UTC | #1
On Wed, May 18, 2022 at 6:54 PM Michal Simek <monstr@monstr.eu> wrote:
>
> Commit ba1ed5b022c6 ("Convert CONFIG_ARCH_MAP_SYSMEM to Kconfig") clearly
> defined that this option is available for SANDBOX (was also for already
> removed NDS32). That's why there is no way how this code can be enabled
> with current Kconfig layout for riscv.
> Based on this removing this code.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
>  arch/riscv/include/asm/io.h | 22 ----------------------
>  1 file changed, 22 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff mbox series

Patch

diff --git a/arch/riscv/include/asm/io.h b/arch/riscv/include/asm/io.h
index fc39bb2c701e..431cf1389d1d 100644
--- a/arch/riscv/include/asm/io.h
+++ b/arch/riscv/include/asm/io.h
@@ -17,28 +17,6 @@  static inline void sync(void)
 {
 }
 
-#ifdef CONFIG_ARCH_MAP_SYSMEM
-static inline void *map_sysmem(phys_addr_t paddr, unsigned long len)
-{
-	if (paddr < PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE)
-		paddr = paddr | 0x40000000;
-	return (void *)(uintptr_t)paddr;
-}
-
-static inline void *unmap_sysmem(const void *vaddr)
-{
-	phys_addr_t paddr = (phys_addr_t)vaddr;
-
-	paddr = paddr & ~0x40000000;
-	return (void *)(uintptr_t)paddr;
-}
-
-static inline phys_addr_t map_to_sysmem(const void *ptr)
-{
-	return (phys_addr_t)(uintptr_t)ptr;
-}
-#endif
-
 /*
  * Generic virtual read/write.  Note that we don't support half-word
  * read/writes.  We define __arch_*[bl] here, and leave __arch_*w