Commit ae04aad7 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

ARM: shmobile: r8a7778: Introduce HPBREG_BASE

Replace the hardcoded address of the HPB Register block by a macro.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201117103022.2136527-2-geert+renesas@glider.be
parent 3650b228
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#include "common.h" #include "common.h"
#define HPBREG_BASE 0xfe700000
#define INT2SMSKCR0 0x82288 /* 0xfe782288 */ #define INT2SMSKCR0 0x82288 /* 0xfe782288 */
#define INT2SMSKCR1 0x8228c /* 0xfe78228c */ #define INT2SMSKCR1 0x8228c /* 0xfe78228c */
...@@ -22,7 +24,7 @@ ...@@ -22,7 +24,7 @@
static void __init r8a7778_init_irq_dt(void) static void __init r8a7778_init_irq_dt(void)
{ {
void __iomem *base = ioremap(0xfe700000, 0x00100000); void __iomem *base = ioremap(HPBREG_BASE, 0x00100000);
BUG_ON(!base); BUG_ON(!base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment