Received: from smtprelay-h22.telenor.se ([195.54.99.197]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1NqDwW-0004ba-Fz for openembedded-devel@lists.openembedded.org; Sat, 13 Mar 2010 00:06:59 +0100 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id ED5D8D5D1 for ; Sat, 13 Mar 2010 00:03:56 +0100 (CET) X-SMTPAUTH-B2: X-SENDER-IP: 83.227.59.242 X-IronPort-AV: E=Sophos;i="4.49,628,1262559600"; d="scan'208";a="49457508" Received: from c-f23be353.011-39-73746f12.cust.bredbandsbolaget.se (HELO localhost.localdomain) ([83.227.59.242]) by ipb2.telenor.se with ESMTP; 13 Mar 2010 00:03:55 +0100 From: Ulf Samuelsson To: openembedded-devel@lists.openembedded.org Date: Sat, 13 Mar 2010 00:03:54 +0100 Message-Id: <1268435034-6007-1-git-send-email-ulf.samuelsson@atmel.com> X-Mailer: git-send-email 1.6.0.2 X-SA-Exim-Connect-IP: 195.54.99.197 X-SA-Exim-Mail-From: ulf.samuelsson@atmel.com X-SA-Exim-Scanned: No (on linuxtogo.org); Message bigger than SAmaxbody (256000) Cc: Ulf Samuelsson Subject: [PATCH] linux-atmel: Add support for latest AT91 kernel X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2010 23:06:59 -0000 Add support for building AT91 2.6.30 kernel Vanilla 2.6.30 recipe has moved on to 2.6.30.x Add maxim.org.za patches + Atmel experimental patches. (With the exception of the SAM9M10-EK support) Add support for configurable NAND flash partitions Add support for sam9m10g45-ek The contents of the maxim & experimental patches to the kernel has various authors. Signed-off-by: Ulf Samuelsson --- .../linux-atmel-2.6.30/at91/2.6.30-at91-exp.patch |36510 ++++++++++++++++++++ ...linux-2.6.30-at91-exp-002-NAND-partitions.patch | 100 + ...-004-NAND-001-configurable-partition-size.patch | 214 + ...-2.6.30-at91-exp-005-at91sam9m10g45ek_BSP.patch | 30 + ....30-at91-exp-006-at91sam9m10g45ek_machine.patch | 39 + .../linux-atmel-2.6.30/at91sam9g45ek/defconfig | 1798 + recipes/linux/linux-atmel_2.6.30.bb | 27 + 7 files changed, 38718 insertions(+), 0 deletions(-) create mode 100644 recipes/linux/linux-atmel-2.6.30/at91/2.6.30-at91-exp.patch create mode 100644 recipes/linux/linux-atmel-2.6.30/at91/linux-2.6.30-at91-exp-002-NAND-partitions.patch create mode 100644 recipes/linux/linux-atmel-2.6.30/at91/linux-2.6.30-at91-exp-004-NAND-001-configurable-partition-size.patch create mode 100644 recipes/linux/linux-atmel-2.6.30/at91/linux-2.6.30-at91-exp-005-at91sam9m10g45ek_BSP.patch create mode 100644 recipes/linux/linux-atmel-2.6.30/at91/linux-2.6.30-at91-exp-006-at91sam9m10g45ek_machine.patch create mode 100644 recipes/linux/linux-atmel-2.6.30/at91sam9g45ek/defconfig create mode 100644 recipes/linux/linux-atmel_2.6.30.bb diff --git a/recipes/linux/linux-atmel-2.6.30/at91/2.6.30-at91-exp.patch b/recipes/linux/linux-atmel-2.6.30/at91/2.6.30-at91-exp.patch new file mode 100644 index 0000000..3fa23df --- /dev/null +++ b/recipes/linux/linux-atmel-2.6.30/at91/2.6.30-at91-exp.patch @@ -0,0 +1,36510 @@ +From 460964e13607480ec141bd72fc76c5af52989175 Mon Sep 17 00:00:00 2001 +From: nferre +Date: Wed, 14 Oct 2009 13:31:17 +0000 +Subject: [PATCH] at91: dm9000 initialization update + +Add information in dm9000 mac/phy chip initialization: +- irq resource details +- platform data details + +Signed-off-by: Nicolas Ferre + +git-svn-id: svn://rfolxts01.rfo.atmel.com/at91_sandbox/linux-2.6.x/branches/linux-2.6.30-at91@11572 50fbe906-d41e-0410-8a96-31537896a350 +--- + arch/arm/mach-at91/board-sam9261ek.c | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/arch/arm/mach-at91/board-sam9261ek.c b/arch/arm/mach-at91/board-sam9261ek.c +index ef392bb..9d82c22 100644 +--- a/arch/arm/mach-at91/board-sam9261ek.c ++++ b/arch/arm/mach-at91/board-sam9261ek.c +@@ -93,11 +93,12 @@ static struct resource dm9000_resource[] = { + .start = AT91_PIN_PC11, + .end = AT91_PIN_PC11, + .flags = IORESOURCE_IRQ ++ | IORESOURCE_IRQ_LOWEDGE | IORESOURCE_IRQ_HIGHEDGE, + } + }; + + static struct dm9000_plat_data dm9000_platdata = { +- .flags = DM9000_PLATF_16BITONLY, ++ .flags = DM9000_PLATF_16BITONLY | DM9000_PLATF_NO_EEPROM, + }; + + static struct platform_device dm9000_device = { +-- +1.5.6.5 + +From 7ee075f18835d4ad9a7da886b26bdf306f50c00f Mon Sep 17 00:00:00 2001 +From: nferre +Date: Wed, 14 Oct 2009 13:31:18 +0000 +Subject: [PATCH] at91: add gpio button support for at91sam9g20ek + +This adds input keyboard gpio support on at91sam9g20ek board. It adds button 3 +and 4. + +Signed-off-by: Nicolas Ferre + +git-svn-id: svn://rfolxts01.rfo.atmel.com/at91_sandbox/linux-2.6.x/branches/linux-2.6.30-at91@11573 50fbe906-d41e-0410-8a96-31537896a350 +--- + arch/arm/mach-at91/board-sam9g20ek.c | 52 ++++++++++++++++++++++++++++++++++ + 1 files changed, 52 insertions(+), 0 deletions(-) + +diff --git a/arch/arm/mach-at91/board-sam9g20ek.c b/arch/arm/mach-at91/board-sam9g20ek.c +index 438efbb..88c724d 100644 +--- a/arch/arm/mach-at91/board-sam9g20ek.c ++++ b/arch/arm/mach-at91/board-sam9g20ek.c +@@ -37,6 +37,8 @@ + + #include + #include ++#include ++#include + #include + + #include "sam9_smc.h" +@@ -218,6 +220,54 @@ static struct gpio_led ek_leds[] = { + } + }; + ++/* ++ * GPIO Buttons ++ */ ++#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) ++static struct gpio_keys_button ek_buttons[] = { ++ { ++ .gpio = AT91_PIN_PA30, ++ .code = BTN_3, ++ .desc = "Button 3", ++ .active_low = 1, ++ .wakeup = 1, ++ }, ++ { ++ .gpio = AT91_PIN_PA31, ++ .code = BTN_4, ++ .desc = "Button 4", ++ .active_low = 1, ++ .wakeup = 1, ++ } ++}; ++ ++static struct gpio_keys_platform_data ek_button_data = { ++ .buttons = ek_buttons, ++ .nbuttons = ARRAY_SIZE(ek_buttons), ++}; ++ ++static struct platform_device ek_button_device = { ++ .name = "gpio-keys", ++ .id = -1, ++ .num_resources = 0, ++ .dev = { ++ .platform_data = &ek_button_data, ++ } ++}; ++ ++static void __init ek_add_device_buttons(void) ++{ ++ at91_set_gpio_input(AT91_PIN_PA30, 1); /* btn3 */ ++ at91_set_deglitch(AT91_PIN_PA30, 1); ++ at91_set_gpio_input(AT91_PIN_PA31, 1); /* btn4 */ ++ at91_set_deglitch(AT91_PIN_PA31, 1); ++ ++ platform_device_register(&ek_button_device); ++} ++#else ++static void __init ek_add_device_buttons(void) {} ++#endif ++ + static void __init ek_board_init(void) + { + /* Serial */ +@@ -238,6 +288,8 @@ static void __init ek_board_init(void) + at91_add_device_i2c(NULL, 0); + /* LEDs */ + at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); ++ /* Push Buttons */ ++ ek_add_device_buttons(); + /* PCK0 provides MCLK to the WM8731 */ + at91_set_B_periph(AT91_PIN_PC1, 0); + /* SSC (for WM8731) */ +-- +1.5.6.5 + +From b6bd69b65c722f006da46d226d6fce1644f214a8 Mon Sep 17 00:00:00 2001 +From: nferre +Date: Wed, 14 Oct 2009 13:31:18 +0000 +Subject: [PATCH] at91: add gpio button and leds support for at91sam9rlek + +This adds input keyboard gpio support on at91sam9rlek board. It adds button 1 +and 2 (left and right click). +It also adds gpio leds ds1, ds2 and ds3. + +Signed-off-by: Nicolas Ferre + +git-svn-id: svn://rfolxts01.rfo.atmel.com/at91_sandbox/linux-2.6.x/branches/linux-2.6.30-at91@11574 50fbe906-d41e-0410-8a96-31537896a350 +--- + arch/arm/mach-at91/board-sam9rlek.c | 79 +++++++++++++++++++++++++++++++++++ + 1 files changed, 79 insertions(+), 0 deletions(-) + +diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c +index d34e343..ee4137b 100644 +--- a/arch/arm/mach-at91/board-sam9rlek.c ++++ b/arch/arm/mach-at91/board-sam9rlek.c +@@ -15,6 +15,8 @@ + #include + #include + #include ++#include ++#include + + #include