summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib
diff options
context:
space:
mode:
authorMichael Weiss <michael.weiss@ifm.com>2010-05-20 16:09:34 +0200
committerWolfgang Denk <wd@denx.de>2010-06-29 23:13:35 +0200
commit955ea6fc2749a4305395758fc797cf8c11dcbed7 (patch)
tree7a06784565a6ad7a6ad7d5932ed779be98533a89 /arch/powerpc/lib
parentbd7b26f879413aa5a662718c09dab65d3a24a201 (diff)
downloadu-boot-imx-955ea6fc2749a4305395758fc797cf8c11dcbed7.zip
u-boot-imx-955ea6fc2749a4305395758fc797cf8c11dcbed7.tar.gz
u-boot-imx-955ea6fc2749a4305395758fc797cf8c11dcbed7.tar.bz2
powerpc/bootcount: Add bootcount support for MPC512x
This also uses the breadcrumb register as on MPC5200. Signed-off-by: Michael Weiss <michael.weiss@ifm.com> Signed-off-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'arch/powerpc/lib')
-rw-r--r--arch/powerpc/lib/bootcount.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/lib/bootcount.c b/arch/powerpc/lib/bootcount.c
index 338c848..07ef28d 100644
--- a/arch/powerpc/lib/bootcount.c
+++ b/arch/powerpc/lib/bootcount.c
@@ -35,6 +35,11 @@
#define CONFIG_SYS_BOOTCOUNT_SINGLEWORD
#endif /* defined(CONFIG_MPC5xxx) */
+#if defined(CONFIG_MPC512X)
+#define CONFIG_SYS_BOOTCOUNT_ADDR (&((immap_t *)CONFIG_SYS_IMMR)->clk.bcr)
+#define CONFIG_SYS_BOOTCOUNT_SINGLEWORD
+#endif /* defined(CONFIG_MPC512X) */
+
#if defined(CONFIG_8xx)
#define CONFIG_SYS_BOOTCOUNT_ADDR (((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_dpmem + \
CPM_BOOTCOUNT_ADDR)