summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2005-12-06 15:02:31 +0100
committerWolfgang Denk <wd@pollux.(none)>2005-12-06 15:02:31 +0100
commita889bd27ef2a9c01eb5b10d067765545781efa0a (patch)
treee42a6a0dadc6ea2b90c1850030e30241920fe844 /include
parent41253be442e35f71fdf26dac71d78451858a1fc7 (diff)
downloadu-boot-imx-a889bd27ef2a9c01eb5b10d067765545781efa0a.zip
u-boot-imx-a889bd27ef2a9c01eb5b10d067765545781efa0a.tar.gz
u-boot-imx-a889bd27ef2a9c01eb5b10d067765545781efa0a.tar.bz2
Fix DPRAM offset/size for MPC8541/8555.
Simplify TQM85xx Makefile handling.
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/cpm_85xx.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/asm-ppc/cpm_85xx.h b/include/asm-ppc/cpm_85xx.h
index 885663f..a74a3a1 100644
--- a/include/asm-ppc/cpm_85xx.h
+++ b/include/asm-ppc/cpm_85xx.h
@@ -77,9 +77,14 @@
* downloading RAM microcode.
*/
#define CPM_DATAONLY_BASE ((uint)128)
+#define CPM_DP_NOSPACE ((uint)0x7FFFFFFF)
+#if defined(CONFIG_MPC8541) || defined(CONFIG_MPC8555)
+#define CPM_FCC_SPECIAL_BASE ((uint)0x00009000)
+#define CPM_DATAONLY_SIZE ((uint)(8 * 1024) - CPM_DATAONLY_BASE)
+#else /* MPC8540, MPC8560 */
+#define CPM_FCC_SPECIAL_BASE ((uint)0x0000B000)
#define CPM_DATAONLY_SIZE ((uint)(16 * 1024) - CPM_DATAONLY_BASE)
-#define CPM_DP_NOSPACE ((uint)0x7fffffff)
-#define CPM_FCC_SPECIAL_BASE ((uint)0x0000b000)
+#endif
/* The number of pages of host memory we allocate for CPM. This is
* done early in kernel initialization to get physically contiguous