Skip to contentSkip to conversation

at91 machine configuration files

PATCH New Ulf Samuelsson 1 participant 1 message Mar 16, 2010 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 at91 machine configuration files

Introduce a new structure for easier maintenance of at91 boards
-------------------------------------------------------------------
Configuration files include a common kernel version dependent file,

I.E:
* at91-2.6.30.inc
* at91-2.6.32.inc

If the part has an LCD controller, include:
* at91-lcd.inc

The following MACHINEs adapt to the new structure
+ conf/machine/at91-l9260.conf
+ conf/machine/at91sam9g10ek.conf
+ conf/machine/at91sam9g20ek.conf
+ conf/machine/at91sam9g45ek.conf
+ conf/machine/at91sam9g45ekes.conf
+ conf/machine/at91sam9m10ekes .conf
+ conf/machine/at91sam9m10g45ek.conf

---
 conf/machine/at91sam9g10ek.conf      |   21 +++----------
 conf/machine/at91sam9g20ek.conf      |   26 ++++------------
 conf/machine/at91sam9g45ek.conf      |   11 ++----
 conf/machine/at91sam9g45ekes.conf    |   31 +++++++++++---------
 conf/machine/at91sam9m10ekes .conf   |   22 ++++++++++++++
 conf/machine/at91sam9m10g45ek.conf   |   22 ++++++++++++++
 conf/machine/include/AT91-LCD.inc    |   15 ----------
 conf/machine/include/AT91.inc        |   51 ----------------------------------
 conf/machine/include/at91-2.6.30.inc |   39 ++++++++++++++++++++++++++
 conf/machine/include/at91-2.6.32.inc |   41 +++++++++++++++++++++++++++
 conf/machine/include/at91-lcd.inc    |   30 ++++++++++++++++++++
 11 files changed, 187 insertions(+), 122 deletions(-)
 create mode 100644 conf/machine/at91sam9m10ekes .conf
 create mode 100644 conf/machine/at91sam9m10g45ek.conf
 delete mode 100644 conf/machine/include/AT91-LCD.inc
 delete mode 100644 conf/machine/include/AT91.inc
 create mode 100644 conf/machine/include/at91-2.6.30.inc
 create mode 100644 conf/machine/include/at91-2.6.32.inc
 create mode 100644 conf/machine/include/at91-lcd.inc
conf/machine/at91sam9g10ek.conf +5 -16
index 9f41fd9..82775b6 100644
@@ -2,22 +2,11 @@
 #@Name: Atmel AT91SAM9G10EK Development Platform
 #@DESCRIPTION: Machine configuration for the at91sam9g10ek development board with a at91sam9g10 processor
 
-TARGET_ARCH = "arm"
-#PACKAGE_EXTRA_ARCHS = "armv4t armv5te"
+include conf/machine/include/at91-2.6.30.inc
+include conf/machine/include/at91-lcd.inc
 
-PREFERRED_PROVIDER_virtual/kernel = "linux"
-PREFERRED_PROVIDER_xserver = "xserver-kdrive"
+UBOOT_MACHINE = "at91sam9g10ek_dataflash_cs0_config"
+AT91BOOTSTRAP_BOARD = "at91sam9g10ek at91sam9g10df at91sam9g10nf"
 
-KERNEL_IMAGETYPE = "uImage"
+MACHINE_FEATURES += "usbhost"
 
-#don't try to access tty1
-USE_VT = "0"
-
-MACHINE_FEATURES = "kernel26 alsa ext2 usbhost usbgadget screen touchscreen"
-
-# used by sysvinit_2
-SERIAL_CONSOLE = "115200 ttyS0"
-IMAGE_FSTYPES ?= "jffs2"
-EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
-
-require conf/machine/include/tune-arm926ejs.inc
conf/machine/at91sam9g20ek.conf +7 -19
index 59c5a42..f63d75e 100644
@@ -2,25 +2,13 @@
 #@Name: Atmel AT91SAM9G20EK Development Platform
 #@DESCRIPTION: Machine configuration for the at91sam9g20ek development board with a at91sam9g20 processor
 
-TARGET_ARCH = "arm"
+include conf/machine/include/at91-2.6.30.inc
 
-PREFERRED_PROVIDER_virtual/kernel = "linux"
-PREFERRED_VERSION_linux = "2.6.28"
+# UBOOT_MACHINE = "at91sam9g20ek_nandflash_config"
+# UBOOT_MACHINE = "at91sam9g20ek_dataflash_cs0_config"
+UBOOT_MACHINE = "at91sam9g20ek_dataflash_cs1_config"
+# UBOOT_MACHINE = "at91sam9g20ek_config"
 
-KERNEL_IMAGETYPE = "uImage"
-UBOOT_MACHINE = "at91sam9g20ek_config"
+AT91BOOTSTRAP_BOARD = "at91sam9g20ek at91sam9g20df at91sam9g20nf"
 
-PREFERRED_VERSION_at91bootstrap = "2.10"
-
-#don't try to access tty1
-USE_VT = "0"
-
-MACHINE_FEATURES = "kernel26 alsa ext2 usbhost usbgadget"
-EXTRA_IMAGEDEPENDS += "at91bootstrap u-boot"
-
-# used by sysvinit_2
-SERIAL_CONSOLE = "115200 ttyS0"
-IMAGE_FSTYPES ?= "jffs2"
-EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
-
-require conf/machine/include/tune-arm926ejs.inc
+MACHINE_FEATURES += "usbhost"
conf/machine/at91sam9g45ek.conf +4 -7
index 98fd711..79afb30 100644
@@ -1,10 +1,9 @@
 #@TYPE: Machine
 #@Name: Atmel AT91SAM9G45EK Development Platform
-#@DESCRIPTION: Machine configuration for the at91sam9g45ek development board with a at91sam9g45-ES2 processor
-# Once a at91sam9g45ek development board with a production at91sam9g45 processor
-# is available we should change the recipe to use the at91sam9m10g45ek_defconfig
+#@DESCRIPTION: Machine configuration for the at91sam9m10g45ek board with a at91sam9g45 processor
 
-include conf/machine/include/AT91-LCD.inc
+include conf/machine/include/at91-2.6.30.inc
+include conf/machine/include/at91-lcd.inc
 
 # Has linux config file in OpenEmbedded
 # 
@@ -21,9 +20,7 @@ UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config"
 #UBOOT_MACHINE = "at91sam9g45ekes_dataflash_cs0_config"
 #UBOOT_MACHINE = "at91sam9g45ekes_config"
 
-# Boot from Dataflash, so we do not have to reprogram
-# At91bootstrap/U-Boot everytime we erase the NAND flash
-AT91BOOTSTRAP_BOARD = "at91sam9g45df"
+AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"
 
 MACHINE_FEATURES += "usbhost"
 
conf/machine/at91sam9g45ekes.conf +17 -14
index 2d962ef..8497e81 100644
@@ -2,22 +2,25 @@
 #@Name: Atmel AT91SAM9G45EKES Development Platform
 #@DESCRIPTION: Machine configuration for the at91sam9g45ekes development board with a at91sam9g45-es processor
 
-TARGET_ARCH = "arm"
-#PACKAGE_EXTRA_ARCHS = "armv4t armv5te"
+include conf/machine/include/at91-2.6.30.inc
+include conf/machine/include/at91-lcd.inc
 
-PREFERRED_PROVIDER_virtual/kernel = "linux"
-PREFERRED_PROVIDER_xserver = "xserver-kdrive"
+# Has linux config file in OpenEmbedded
+# 
+# LINUX26_DEFCONFIG = "at91sam9g45ek_defconfig"
+# LINUX26_DEFCONFIG = "at91sam9m10g45ek_defconfig"
 
-KERNEL_IMAGETYPE = "uImage"
+# Supported u-boot machines
+#UBOOT_MACHINE = "at91sam9m10g45ek_nandflash_config"
+#UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_config"
+UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config"
+#UBOOT_MACHINE = "at91sam9m10g45ek_config"
+#UBOOT_MACHINE = "at91sam9g45ekes_nandflash_config"
+#UBOOT_MACHINE = "at91sam9g45ekes_dataflash_config"
+#UBOOT_MACHINE = "at91sam9g45ekes_dataflash_cs0_config"
+#UBOOT_MACHINE = "at91sam9g45ekes_config"
 
-#don't try to access tty1
-USE_VT = "0"
+AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"
 
-MACHINE_FEATURES = "kernel26 alsa ext2 usbhost usbgadget screen touchscreen"
+MACHINE_FEATURES += "usbhost"
 
-# used by sysvinit_2
-SERIAL_CONSOLE = "115200 ttyS0"
-IMAGE_FSTYPES ?= "jffs2"
-EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
-
-require conf/machine/include/tune-arm926ejs.inc
conf/machine/at91sam9m10ekes .conf new file +22 -0
new file mode 100644
index 0000000..4fd968c
@@ -0,0 +1,22 @@
+#@TYPE: Machine
+#@Name: Atmel AT91SAM9M10EKES Development Platform
+#@DESCRIPTION: Machine configuration for the at91sam9m10ekes board with a at91sam9m10-es2 processor
+
+include conf/machine/include/at91-2.6.30.inc
+include conf/machine/include/at91-lcd.inc
+
+# Has linux config file in OpenEmbedded
+# 
+# LINUX26_DEFCONFIG = "at91sam9m10ekes_defconfig"
+# LINUX26_DEFCONFIG = "at91sam9m10g45ek_defconfig"
+
+# Supported u-boot machines
+#UBOOT_MACHINE = "at91sam9m10g45ek_nandflash_config"
+#UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_config"
+UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config"
+#UBOOT_MACHINE = "at91sam9m10g45ek_config"
+
+AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"
+
+MACHINE_FEATURES += "usbhost"
+
conf/machine/at91sam9m10g45ek.conf new file +22 -0
new file mode 100644
index 0000000..f3be65d
@@ -0,0 +1,22 @@
+#@TYPE: Machine
+#@Name: Atmel AT91SAM9M10G45EK Development Platform
+#@DESCRIPTION: Machine configuration for the at91sam9m10g45ek board with a at91sam9m10 processor
+
+include conf/machine/include/at91-2.6.30.inc
+include conf/machine/include/at91-lcd.inc
+
+# Has linux config file in OpenEmbedded
+# 
+# LINUX26_DEFCONFIG = "at91sam9m10ekes_defconfig"
+# LINUX26_DEFCONFIG = "at91sam9m10g45ek_defconfig"
+
+# Supported u-boot machines
+#UBOOT_MACHINE = "at91sam9m10g45ek_nandflash_config"
+#UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_config"
+UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config"
+#UBOOT_MACHINE = "at91sam9m10g45ek_config"
+
+AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"
+
+MACHINE_FEATURES += "usbhost"
+
conf/machine/include/AT91-LCD.inc deleted +0 -15
deleted file mode 100644
index 3036295..0000000
@@ -1,15 +0,0 @@
-# Common description for Atmel ARM processors with LCD controller
-
-include conf/machine/include/AT91.inc
-
-MACHINE_FEATURES += "screen touchscreen keyboard"
-
-# Some options we disable for now
-# MACHINE_FEATURES += "apm"
-# MACHINE_FEATURES += "lcd"
-# MACHINE_FEATURES += "bluetooth wifi irda phone gps"
-# MACHINE_FEATURES += "mmc mmcroot fat"
-# MACHINE_FEATURES += "i2c spi serial"
-# MACHINE_FEATURES += "sound libogg libvorbis"
-
-
conf/machine/include/AT91.inc deleted +0 -51

51 lines not on this page · raw message

conf/machine/include/at91-2.6.30.inc new file +39 -0
new file mode 100644
index 0000000..12a226c
@@ -0,0 +1,39 @@
+# Common description for Atmel ARM processors
+
+TARGET_ARCH = "arm"
+#PACKAGE_EXTRA_ARCHS = "armv4t armv5te"
+SOC_CLASS = "at91"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+PREFERRED_VERSION_linux = "2.6.30"
+
+PREFERRED_PROVIDER_at91bootstrap = "at91bootstrap_2.13"
+PREFERRED_VERSION_at91bootstrap = "2.13"
+
+PREFERRED_PROVIDER_u-boot = "u-boot_2009.11"
+PREFERRED_VERSION_u-boot = "2009.11"
+
+KERNEL_IMAGETYPE = "uImage"
+
+#don't try to access tty1
+USE_VT = "0"
+
+MACHINE_FEATURES = " kernel26 alsa ext2 usbgadget vfat uboot "
+EXTRA_IMAGEDEPENDS += "u-boot"
+EXTRA_IMAGEDEPENDS += "at91bootstrap"
+
+MACHINE_EXTRA_RDEPENDS += " kernel-modules "
+#MACHINE_EXTRA_RDEPENDS += " atmel-fixes "
+
+# used by sysvinit_2
+SERIAL_CONSOLE = "115200 ttyS0"
+IMAGE_FSTYPES ?= "jffs2"
+EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
+#
+# Uncomment or add kernel modules that should be autoloaded
+#module_autoload_g_file_storage = ${@base_contains('MACHINE_FEATURES', 'usbgadget',  'g_file_storage', '',d)}
+#module_autoload_g_ether        = ${@base_contains('MACHINE_FEATURES', 'usbgadget',  'g_ether', '',d)}
+module_autoload_g_serial       = ${@base_contains('MACHINE_FEATURES', 'usbgadget',  'g_serial', '',d)}
+
+require conf/machine/include/tune-arm926ejs.inc
+
conf/machine/include/at91-2.6.32.inc new file +41 -0

41 lines not on this page · raw message

conf/machine/include/at91-lcd.inc new file +30 -0
new file mode 100644
index 0000000..9611a18
@@ -0,0 +1,30 @@
+# Common description for Atmel ARM processors with LCD controller
+
+#PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
+#PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive-1300"
+#PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
+#PREFERRED_PROVIDER_xserver = "xserver-xorg"
+PREFERRED_PROVIDER_xserver = "xserver-kdrive"
+#XSERVER = "xserver-kdrive-fbdev"
+#XSERVER = "xserver-xorg \
+#           xf86-input-evdev \
+#           xf86-input-mouse \
+#           xf86-input-tslib \
+#           xf86-video-fbdev \
+#           xf86-input-keyboard"
+
+# Angstrom defines:
+#PREFERRED_VERSION_xserver-kdrive = "1.4.0.90"
+#PREFERRED_VERSION_xserver-kdrive = "1.6.1"
+
+MACHINE_FEATURES += "screen touchscreen keyboard"
+
+# Some options we disable for now
+# MACHINE_FEATURES += "apm"
+# MACHINE_FEATURES += "lcd"
+# MACHINE_FEATURES += "bluetooth wifi irda phone gps"
+# MACHINE_FEATURES += "mmc mmcroot fat"
+# MACHINE_FEATURES += "i2c spi serial"
+# MACHINE_FEATURES += "sound libogg libvorbis"
+
+
Signature · 1 line
1.6.0.2