mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
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>
This commit is contained in:
parent
bd7b26f879
commit
955ea6fc27
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue