]> git.sur5r.net Git - u-boot/commitdiff
mpc86xx: Add generic POST word read/write support
authorPeter Tyser <ptyser@xes-inc.com>
Fri, 22 Oct 2010 05:20:32 +0000 (00:20 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 22 Oct 2010 08:04:34 +0000 (03:04 -0500)
The PIC's TFRR register doesn't affect hardware and is generally unused,
so use as storage for the POST word.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
include/post.h

index daa9047118e7de85e4ebf329c6439189c4b340b0..abe47da53bf1d986ee2630df94e09f5482e9ee3c 100644 (file)
 #include <asm/immap_85xx.h>
 #define _POST_WORD_ADDR        (CONFIG_SYS_IMMR + 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))
+
 #elif defined (CONFIG_4xx)
 #define _POST_WORD_ADDR \
        (CONFIG_SYS_OCM_DATA_ADDR + CONFIG_SYS_GBL_DATA_OFFSET - 0x4)