From: Kumar Gala Date: Wed, 1 Dec 2010 12:42:04 +0000 (-0600) Subject: powerpc/8xxx: Fix _POST_WORD_ADDR on 85xx & 86xx systems X-Git-Tag: v2010.12-rc3~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9de0aa74471c0bd7f8b3b0e6f400df5e6c3b92c9;p=u-boot 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 --- diff --git a/include/post.h b/include/post.h index 957ce3b161..519cef1612 100644 --- a/include/post.h +++ b/include/post.h @@ -58,11 +58,13 @@ #elif defined (CONFIG_MPC85xx) #include -#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 -#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 \