summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2010-12-01 06:42:04 -0600
committerKumar Gala <galak@kernel.crashing.org>2010-12-01 06:45:23 -0600
commit9de0aa74471c0bd7f8b3b0e6f400df5e6c3b92c9 (patch)
tree41a23740a9522136e14459c2839f2a2b9124a6ae /include
parent49733aa0b9d29803384ad4bce74985f4bbe7e9aa (diff)
downloadu-boot-imx-9de0aa74471c0bd7f8b3b0e6f400df5e6c3b92c9.zip
u-boot-imx-9de0aa74471c0bd7f8b3b0e6f400df5e6c3b92c9.tar.gz
u-boot-imx-9de0aa74471c0bd7f8b3b0e6f400df5e6c3b92c9.tar.bz2
powerpc/8xxx: Fix _POST_WORD_ADDR on 85xx & 86xx systems
We intended to use the PIC TFRR register however we where missing adding in the PIC register base offset from IMMR when we defined _POST_WORD_ADDR. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/post.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/post.h b/include/post.h
index 957ce3b..519cef1 100644
--- a/include/post.h
+++ b/include/post.h
@@ -58,11 +58,13 @@
#elif defined (CONFIG_MPC85xx)
#include <asm/immap_85xx.h>
-#define _POST_WORD_ADDR (CONFIG_SYS_IMMR + offsetof(ccsr_pic_t, tfrr))
+#define _POST_WORD_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PIC_OFFSET + \
+ offsetof(ccsr_pic_t, tfrr))
#elif defined (CONFIG_MPC86xx)
#include <asm/immap_86xx.h>
-#define _POST_WORD_ADDR (CONFIG_SYS_IMMR + offsetof(ccsr_pic_t, tfrr))
+#define _POST_WORD_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PIC_OFFSET + \
+ offsetof(ccsr_pic_t, tfrr))
#elif defined (CONFIG_4xx)
#define _POST_WORD_ADDR \