Commit dc7246e725cda125382df548115e73e7e000728c

Authored by Masahiro Yamada
1 parent 230ce30a51

ARM: UniPhier: extend register area of init page table for PH1-sLD3

0x20000000-0x2fffffff: assigned to ARM mpcore (sLD3 only)
0xf0000000-0xffffffff: assigned to Denali NAND controller (sLD3 only)

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff

arch/arm/cpu/armv7/uniphier/init_page_table.c
... ... @@ -28,7 +28,12 @@
28 28 #define IS_SSC(x) ((IS_SPL_TEXT_AREA(x)) || \
29 29 (IS_INIT_STACK_AREA(x)))
30 30 #define IS_EXT(x) ((x) < 0x100)
31   -#define IS_REG(x) (0x500 <= (x) && (x) < 0x700)
  31 +
  32 +/* 0x20000000-0x2fffffff, 0xf0000000-0xffffffff are only used by PH1-sLD3 */
  33 +#define IS_REG(x) (0x200 <= (x) && (x) < 0x300) || \
  34 + (0x500 <= (x) && (x) < 0x700) || \
  35 + (0xf00 <= (x))
  36 +
32 37 #define IS_DDR(x) (0x800 <= (x) && (x) < 0xf00)
33 38  
34 39 #define MMU_FLAGS(x) (IS_SSC(x)) ? SSC : \