diff options
author | Kyle Moffett <Kyle.D.Moffett@boeing.com> | 2011-12-02 01:28:01 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-12-06 21:43:07 -0500 |
commit | e7a98675caf272a11dc1012c7a8c6c00cab09f5b (patch) | |
tree | 856c69993207021ffda5550d3e12d88de7381e15 /arch/powerpc/include/asm/mpic.h | |
parent | 5bdb6f2e5833c1c3e5ea21a2050fe0fada3a4a1d (diff) |
powerpc/mpic: Save computed phys_addr for board-specific code
The MPIC code can already perform an automatic OF address translation
step as part of mpic_alloc(), but several boards need to use that base
address when they perform mpic_assign_isu().
The easiest solution is to save the computed physical address into the
"struct mpic" for later use by the board code.
Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/mpic.h')
-rw-r--r-- | arch/powerpc/include/asm/mpic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mpic.h b/arch/powerpc/include/asm/mpic.h index e6fae49e0b74..ba0b2046106e 100644 --- a/arch/powerpc/include/asm/mpic.h +++ b/arch/powerpc/include/asm/mpic.h | |||
@@ -293,6 +293,9 @@ struct mpic | |||
293 | /* Register access method */ | 293 | /* Register access method */ |
294 | enum mpic_reg_type reg_type; | 294 | enum mpic_reg_type reg_type; |
295 | 295 | ||
296 | /* The physical base address of the MPIC */ | ||
297 | phys_addr_t paddr; | ||
298 | |||
296 | /* The various ioremap'ed bases */ | 299 | /* The various ioremap'ed bases */ |
297 | struct mpic_reg_bank gregs; | 300 | struct mpic_reg_bank gregs; |
298 | struct mpic_reg_bank tmregs; | 301 | struct mpic_reg_bank tmregs; |