summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2020-11-17 11:30:16 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2020-11-23 09:53:59 +0100
commitae04aad75b3718b84df559bb0352f27695045fe0 (patch)
tree1b746e7338448f3bf7f5b058ade14b007541a79c /arch/arm/mach-shmobile
parentLinux 5.10-rc1 (diff)
downloadlinux-ae04aad75b3718b84df559bb0352f27695045fe0.tar.xz
linux-ae04aad75b3718b84df559bb0352f27695045fe0.zip
ARM: shmobile: r8a7778: Introduce HPBREG_BASE
Replace the hardcoded address of the HPB Register block by a macro. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20201117103022.2136527-2-geert+renesas@glider.be
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7778.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index 2bc93f391bcf..819dbda47298 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -14,6 +14,8 @@
#include "common.h"
+#define HPBREG_BASE 0xfe700000
+
#define INT2SMSKCR0 0x82288 /* 0xfe782288 */
#define INT2SMSKCR1 0x8228c /* 0xfe78228c */
@@ -22,7 +24,7 @@
static void __init r8a7778_init_irq_dt(void)
{
- void __iomem *base = ioremap(0xfe700000, 0x00100000);
+ void __iomem *base = ioremap(HPBREG_BASE, 0x00100000);
BUG_ON(!base);