summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2013-05-10 05:05:30 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-05-12 16:49:14 +0200
commitd0a51373131c4ba565a2391d5ed78b87c406ce98 (patch)
tree1fd5c4ce96a9d4667e423f01e065dd56aebe85b5 /include
parent93e3236ccbd37369ed309bef5d77761e63d1759c (diff)
at91sam9260ek: move board id setup to config header
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> Acked-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/at91sam9260ek.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/configs/at91sam9260ek.h b/include/configs/at91sam9260ek.h
index 7846d0b94f..43289446b1 100644
--- a/include/configs/at91sam9260ek.h
+++ b/include/configs/at91sam9260ek.h
@@ -130,6 +130,24 @@
(ATMEL_BASE_SRAM1 + 0x1000 - GENERATED_GBL_DATA_SIZE)
#endif
+/*
+ * The (arm)linux board id set by generic code depending on configured board
+ * (see boards.cfg for different boards)
+ */
+#ifdef CONFIG_AT91SAM9G20
+ /* the sam9g20 variants have two different board ids */
+# ifdef CONFIG_AT91SAM9G20EK_2MMC
+ /* we may be setup for the 2MMC variant of at91sam9g20ek */
+# define CONFIG_MACH_TYPE MACH_TYPE_AT91SAM9G20EK_2MMC
+# else
+ /* or the normal at91sam9g20ek */
+# define CONFIG_MACH_TYPE MACH_TYPE_AT91SAM9G20EK
+# endif
+#else
+ /* otherwise default to good old at91sam9260ek */
+# define CONFIG_MACH_TYPE MACH_TYPE_AT91SAM9260EK
+#endif
+
/* DataFlash */
#ifndef CONFIG_AT91SAM9G20EK_2MMC
#define CONFIG_ATMEL_DATAFLASH_SPI