linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC 1/2] AT91: Support SAM9260 and SAM9G20-based boards in the same kernel image
@ 2011-01-15 17:50 Albin Tonnerre
  2011-01-15 17:50 ` [RFC 2/2] AT91: Update board-cpu9krea to support the 9260/9G20 variants in a single image Albin Tonnerre
  2011-01-17  7:57 ` [RFC 1/2] AT91: Support SAM9260 and SAM9G20-based boards in the same kernel image Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 12+ messages in thread
From: Albin Tonnerre @ 2011-01-15 17:50 UTC (permalink / raw)
  To: linux-arm-kernel

Nothing actually prevents support for boards based on these SoCs to be
compiled in the same kernel image, since the SAM9260 and SAM9G20 are
almost identical (AT91SAM9G20 adds some new features, but is otherwise
compatible with the AT91SAM9260).

Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
---
 arch/arm/mach-at91/Kconfig |   31 +++++++++++++------------------
 1 files changed, 13 insertions(+), 18 deletions(-)

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index c015b68..d1eda58 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -26,8 +26,8 @@ config ARCH_AT91RM9200
 	select GENERIC_CLOCKEVENTS
 	select HAVE_AT91_USART3
 
-config ARCH_AT91SAM9260
-	bool "AT91SAM9260 or AT91SAM9XE"
+config ARCH_AT91SAM9260_VARIANTS
+	bool "AT91SAM9260 / AT91SAM9XE and AT91SAM9G20"
 	select CPU_ARM926T
 	select GENERIC_CLOCKEVENTS
 	select HAVE_AT91_USART3
@@ -61,15 +61,6 @@ config ARCH_AT91SAM9RL
 	select HAVE_AT91_USART3
 	select HAVE_FB_ATMEL
 
-config ARCH_AT91SAM9G20
-	bool "AT91SAM9G20"
-	select CPU_ARM926T
-	select GENERIC_CLOCKEVENTS
-	select HAVE_AT91_USART3
-	select HAVE_AT91_USART4
-	select HAVE_AT91_USART5
-	select HAVE_NET_MACB
-
 config ARCH_AT91SAM9G45
 	bool "AT91SAM9G45"
 	select CPU_ARM926T
@@ -193,15 +184,19 @@ endif
 
 # ----------------------------------------------------------
 
-if ARCH_AT91SAM9260
+if ARCH_AT91SAM9260_VARIANTS
 
-comment "AT91SAM9260 Variants"
+menu "AT91SAM9260 Variants"
 
-config ARCH_AT91SAM9260_SAM9XE
-	bool "AT91SAM9XE"
-	help
-	  Select this if you are using Atmel's AT91SAM9XE System-on-Chip.
-	  They are basically AT91SAM9260s with various sizes of embedded Flash.
+config ARCH_AT91SAM9260
+	bool "AT91SAM9260 / AT91SAM9XE"
+	default y
+
+config ARCH_AT91SAM9G20
+	bool "AT91SAM9G20"
+	default y
+
+endmenu
 
 comment "AT91SAM9260 / AT91SAM9XE Board Type"
 
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-01-18 19:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-15 17:50 [RFC 1/2] AT91: Support SAM9260 and SAM9G20-based boards in the same kernel image Albin Tonnerre
2011-01-15 17:50 ` [RFC 2/2] AT91: Update board-cpu9krea to support the 9260/9G20 variants in a single image Albin Tonnerre
2011-01-17  7:50   ` Jean-Christophe PLAGNIOL-VILLARD
2011-01-17  9:02     ` Eric Bénard
2011-01-17  7:57 ` [RFC 1/2] AT91: Support SAM9260 and SAM9G20-based boards in the same kernel image Jean-Christophe PLAGNIOL-VILLARD
2011-01-18  7:00   ` Albin Tonnerre
2011-01-18 15:00     ` Jean-Christophe PLAGNIOL-VILLARD
2011-01-18 15:32       ` Russell King - ARM Linux
2011-01-18 17:18         ` Gilles Chanteperdrix
2011-01-18 17:43           ` Russell King - ARM Linux
2011-01-18 18:52           ` Jean-Christophe PLAGNIOL-VILLARD
2011-01-18 19:35             ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).