Skip to contentSkip to conversation

AT91: update cpu.c to use GPBR definitions from at91_gpbr.h

PATCH New Reinhard Meyer (-VC) 1 participant 1 message Jul 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---
 arch/arm/cpu/arm926ejs/at91/cpu.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/cpu/arm926ejs/at91/cpu.c +4 -4
index 141a7d1..1a7e99f 100644
@@ -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