From: Michael Weiss Date: Thu, 20 May 2010 14:09:34 +0000 (+0200) Subject: powerpc/bootcount: Add bootcount support for MPC512x X-Git-Tag: v2010.09-rc1~107^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=955ea6fc2749a4305395758fc797cf8c11dcbed7;p=oweals%2Fu-boot.git powerpc/bootcount: Add bootcount support for MPC512x This also uses the breadcrumb register as on MPC5200. Signed-off-by: Michael Weiss Signed-off-by: Detlev Zundel --- diff --git a/arch/powerpc/lib/bootcount.c b/arch/powerpc/lib/bootcount.c index 338c8486d7..07ef28d1b4 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)