summaryrefslogtreecommitdiff
path: root/arch/mips/include
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2023-02-27 13:57:58 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-03-14 19:13:50 +0300
commit7edb1775846ebc5a7f4d5085ff6d712ed137a460 (patch)
tree6516051a613c117cffe804f0498c26f32bb75a20 /arch/mips/include
parentbf27860fcabdd61d4bd33ce9488dc68bae5c7107 (diff)
downloadlinux-7edb1775846ebc5a7f4d5085ff6d712ed137a460.tar.xz
mips: ralink: rt3883: define RT3883_SYSC_BASE with __iomem
So that RT3883_SYSC_BASE can be used later in multiple functions without needing to repeat this __iomem declaration each time Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/mach-ralink/rt3883.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mach-ralink/rt3883.h b/arch/mips/include/asm/mach-ralink/rt3883.h
index f250de9c055b..ad25d5e8d2dc 100644
--- a/arch/mips/include/asm/mach-ralink/rt3883.h
+++ b/arch/mips/include/asm/mach-ralink/rt3883.h
@@ -10,8 +10,10 @@
#include <linux/bitops.h>
+#define IOMEM(x) ((void __iomem *)(KSEG1ADDR(x)))
+
#define RT3883_SDRAM_BASE 0x00000000
-#define RT3883_SYSC_BASE 0x10000000
+#define RT3883_SYSC_BASE IOMEM(0x10000000)
#define RT3883_TIMER_BASE 0x10000100
#define RT3883_INTC_BASE 0x10000200
#define RT3883_MEMC_BASE 0x10000300