diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2023-02-27 11:58:01 +0100 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2023-03-14 17:13:50 +0100 |
commit | 1e688601d18d3d872ffaad70c599e8c1a1d788a0 (patch) | |
tree | 91d0b57d399b4807cb3c4e9e6e137e9512bb80f3 /arch/mips/include | |
parent | 2165248f68b5f3e27faac844795e6691e1ee7777 (diff) | |
download | lwn-1e688601d18d3d872ffaad70c599e8c1a1d788a0.tar.gz lwn-1e688601d18d3d872ffaad70c599e8c1a1d788a0.zip |
mips: ralink: rt288x: define RT2880_SYSC_BASE with __iomem
So that RT2880_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/rt288x.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mach-ralink/rt288x.h b/arch/mips/include/asm/mach-ralink/rt288x.h index 5f213534f0f5..66a999cd1d80 100644 --- a/arch/mips/include/asm/mach-ralink/rt288x.h +++ b/arch/mips/include/asm/mach-ralink/rt288x.h @@ -11,7 +11,8 @@ #ifndef _RT288X_REGS_H_ #define _RT288X_REGS_H_ -#define RT2880_SYSC_BASE 0x00300000 +#define IOMEM(x) ((void __iomem *)(KSEG1ADDR(x))) +#define RT2880_SYSC_BASE IOMEM(0x00300000) #define SYSC_REG_CHIP_NAME0 0x00 #define SYSC_REG_CHIP_NAME1 0x04 |