uboot-mt623x/arch
Stefan Roese e4a95d112e powerpc: Consolidate bootcount_{store|load} for PowerPC
This patch consolidates bootcount_{store|load} for PowerPC by
implementing a common version in arch/powerpc/lib/bootcount.c. This
code is now used by all PowerPC variants that currently have these
functions implemented.

The functions now use the proper IO-accessor functions to read/write the
values.

This code also supports two different bootcount versions:

a) Use 2 separate words (2 * 32bit) to store the bootcounter
b) Use only 1 word (2 * 16bit) to store the bootcounter

Version b) was already used by MPC5xxx.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
          for 83xx parts
Cc: Michael Zaidman <michael.zaidman@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Anatolij Gustschin <agust@denx.de>
2010-05-06 23:28:48 +02:00
..
arm at91: define matrix registers bit fields 2010-04-30 05:23:26 -05:00
avr32 avr32: Move cpu/at32ap/* to arch/avr32/cpu/* 2010-04-13 09:13:25 +02:00
blackfin blackfin: Move cpu/blackfin/* to arch/blackfin/cpu/* 2010-04-13 09:13:25 +02:00
i386 sc520: Fix minor DRAM Controller Setup bug 2010-05-06 00:20:56 +02:00
m68k m68k: Move cpu/$CPU to arch/m68k/cpu/$CPU 2010-04-13 09:13:24 +02:00
microblaze microblaze: Consolidate cache code 2010-04-16 12:56:33 +02:00
mips mips: Move cpu/mips/* to arch/mips/cpu/* 2010-04-13 09:13:25 +02:00
nios nios: Move cpu/nios/* to arch/nios/cpu/* 2010-04-13 09:13:27 +02:00
nios2 nios2: fix no flash, add nand and mmc init in board.c 2010-04-24 18:21:23 -04:00
powerpc powerpc: Consolidate bootcount_{store|load} for PowerPC 2010-05-06 23:28:48 +02:00
sh sh: Move cpu/$CPU to arch/sh/cpu/$CPU 2010-04-13 09:13:17 +02:00
sparc sparc: Move cpu/leon[23] to arch/sparc/cpu/leon[23] 2010-04-13 09:13:26 +02:00