AT91: fix at91sam9260.h for AT91SAM9XE
authorReinhard Meyer <u-boot@emk-elektronik.de>
Tue, 24 Aug 2010 09:18:09 +0000 (11:18 +0200)
committerReinhard Meyer <u-boot@emk-elektronik.de>
Fri, 3 Sep 2010 09:21:02 +0000 (11:21 +0200)
Define the different location of the GPBRs for the 9XE
Define the proper CPU Name

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
arch/arm/include/asm/arch-at91/at91sam9260.h

index ec0431803696fdfcc356f736c4f25b6ec7d9a131..cb34a94a3b396d4f21a3a4aa8f404c6085c2dc96 100644 (file)
 #define AT91_RTT_BASE          0xfffffd20
 #define AT91_PIT_BASE          0xfffffd30
 #define AT91_WDT_BASE          0xfffffd40
-#define AT91_GPR_BASE          0xfffffd50
+/*
+ * The AT91SAM9XE has the GPBRs at a different address than
+ * the AT91SAM9260/9G20.
+ */
+#ifdef CONFIG_AT91SAM9XE
+# define AT91_GPR_BASE         0xfffffd60
+#else
+# define AT91_GPR_BASE         0xfffffd50
+#endif
 
 #ifdef CONFIG_AT91_LEGACY
 
 /*
  * Cpu Name
  */
-#if defined(CONFIG_AT91SAM9260)
-#define CONFIG_SYS_AT91_CPU_NAME       "AT91SAM9260"
+#if defined(CONFIG_AT91SAM9XE)
+# define CONFIG_SYS_AT91_CPU_NAME      "AT91SAM9XE"
+#elif defined(CONFIG_AT91SAM9260)
+# define CONFIG_SYS_AT91_CPU_NAME      "AT91SAM9260"
 #elif defined(CONFIG_AT91SAM9G20)
-#define CONFIG_SYS_AT91_CPU_NAME       "AT91SAM9G20"
+# define CONFIG_SYS_AT91_CPU_NAME      "AT91SAM9G20"
 #endif
 
 #endif