aboutsummaryrefslogtreecommitdiff
path: root/include/asm-powerpc/cpm2.h
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-10-11 09:13:41 -0500
committerKumar Gala <galak@kernel.crashing.org>2007-10-11 09:14:31 -0500
commit0bfd5df53a99809f60e12bda9c5ef5d8f14ef2e3 (patch)
tree91e769edc55db8fc8fc26942686ea2f74e206da3 /include/asm-powerpc/cpm2.h
parentab9683ca8162f9d4b38e04b956278d8cc647dcfc (diff)
[POWERPC] 85xx: Killed <asm/mpc85xx.h>
asm-powerpc/mpc85xx.h was really a hold over from arch/ppc. Now that more decoupling has occurred we can remove <asm/mpc85xx.h> and some of its legacy. As part of this we moved the definition of CPM_MAP_ADDR into cpm2.h for 85xx platforms. This is a stop gap until drivers stop using CPM_MAP_ADDR. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc/cpm2.h')
-rw-r--r--include/asm-powerpc/cpm2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/cpm2.h b/include/asm-powerpc/cpm2.h
index e698b1d09dc..f1112c15ef9 100644
--- a/include/asm-powerpc/cpm2.h
+++ b/include/asm-powerpc/cpm2.h
@@ -13,6 +13,10 @@
#include <asm/immap_cpm2.h>
#include <asm/cpm.h>
+#ifdef CONFIG_PPC_85xx
+#define CPM_MAP_ADDR (get_immrbase() + 0x80000)
+#endif
+
/* CPM Command register.
*/
#define CPM_CR_RST ((uint)0x80000000)