Patchwork [U-Boot,2/3] AT91: update cpu.c to use GPBR definitions from at91_gpbr.h

login
register
mail settings
Submitter Reinhard Meyer (-VC)
Date July 5, 2010, 4:47 p.m.
Message ID <4C320C9A.5090905@emk-elektronik.de>
Download mbox | patch
Permalink /patch/71796/
State Accepted
Delegated to: Reinhard Meyer
Headers show

Comments

Reinhard Meyer (-VC) - July 5, 2010, 4:47 p.m.
no functional change, just make use of at91_gpbr.h

Signed-off-by: Reinhard Meyer <reinhard.meyer@emk-elektronik.de>
---
 arch/arm/cpu/arm926ejs/at91/cpu.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/arch/arm/cpu/arm926ejs/at91/cpu.c b/arch/arm/cpu/arm926ejs/at91/cpu.c
index 141a7d1..1a7e99f 100644
--- a/arch/arm/cpu/arm926ejs/at91/cpu.c
+++ b/arch/arm/cpu/arm926ejs/at91/cpu.c
@@ -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)
 {