AT91: update cpu.c to use GPBR definitions from at91_gpbr.h
Subsystems (2)
PATCH 2/3 AT91: update cpu.c to use GPBR definitions from at91_gpbr.h
no functional change, just make use of at91_gpbr.h
Signed-off-by Reinhard Meyer <[email protected]>
--- arch/arm/cpu/arm926ejs/at91/cpu.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/cpu/arm926ejs/at91/cpu.c +4 -4
@@ -28,6 +28,7 @@#include <asm/arch/hardware.h> #include <asm/arch/at91_pmc.h> +#include <asm/arch/at91_gpbr.h> #include <asm/arch/clk.h> #include <asm/arch/io.h>
@@ -36,11 +37,10 @@#endif /* -* The at91sam9260 has 4 GPBR (0-3), we'll use the last one, nr 3, -* to keep track of the bootcount. +* The at91sam9260 has 4 GPBR (0-3). +* For their typical use see at91_gpbr.h ! */ -#define AT91_GPBR_BOOTCOUNT_REGISTER 3 -#define AT91_BOOTCOUNT_ADDRESS (AT91_GPBR + 4*AT91_GPBR_BOOTCOUNT_REGISTER) +#define AT91_BOOTCOUNT_ADDRESS (AT91_GPBR + 4*AT91_GPBR_INDEX_BOOTCOUNT)int arch_cpu_init (void ) {
Signature · 1 line
1.5.6.5