All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4C8F2B1B.7090003@gmail.com>

diff --git a/a/1.txt b/N1/1.txt
index 459c18f..7c3d816 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -4,3 +4,218 @@ Please find updated flexibity board support patch below.
 
 Kind regards,
 Maxim
+
+>From 1fe2aaae2574a4eabda2547ecad0bd0085e3ca3e Mon Sep 17 00:00:00 2001
+From: Maxim Osipov <maxim.osipov@gmail.com>
+Date: Sun, 12 Sep 2010 16:23:48 +0400
+Subject: [PATCH] AT91: Add flexibity board support
+
+Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>
+---
+ arch/arm/mach-at91/Kconfig           |    6 ++
+ arch/arm/mach-at91/Makefile          |    1 +
+ arch/arm/mach-at91/board-flexibity.c |  164 ++++++++++++++++++++++++++++++++++
+ 3 files changed, 171 insertions(+), 0 deletions(-)
+ create mode 100644 arch/arm/mach-at91/board-flexibity.c
+
+diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
+index 939bccd..ca33862 100644
+--- a/arch/arm/mach-at91/Kconfig
++++ b/arch/arm/mach-at91/Kconfig
+@@ -248,6 +248,12 @@ config MACH_CPU9260
+ 	  Select this if you are using a Eukrea Electromatique's
+ 	  CPU9260 Board <http://www.eukrea.com/>
+ 
++config MACH_FLEXIBITY
++	bool "Flexibity Connect board"
++	help
++	  Select this if you are using Flexibity Connect board
++	  <http://www.flexibity.com>
++
+ endif
+ 
+ # ----------------------------------------------------------
+diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
+index ca2ac00..7cbe06d 100644
+--- a/arch/arm/mach-at91/Makefile
++++ b/arch/arm/mach-at91/Makefile
+@@ -46,6 +46,7 @@ obj-$(CONFIG_MACH_USB_A9260)	+= board-usb-a9260.o
+ obj-$(CONFIG_MACH_QIL_A9260)	+= board-qil-a9260.o
+ obj-$(CONFIG_MACH_AFEB9260)	+= board-afeb-9260v1.o
+ obj-$(CONFIG_MACH_CPU9260)	+= board-cpu9krea.o
++obj-$(CONFIG_MACH_FLEXIBITY)	+= board-flexibity.o
+ 
+ # AT91SAM9261 board-specific support
+ obj-$(CONFIG_MACH_AT91SAM9261EK) += board-sam9261ek.o
+diff --git a/arch/arm/mach-at91/board-flexibity.c b/arch/arm/mach-at91/board-flexibity.c
+new file mode 100644
+index 0000000..216c8ca
+--- /dev/null
++++ b/arch/arm/mach-at91/board-flexibity.c
+@@ -0,0 +1,164 @@
++/*
++ * linux/arch/arm/mach-at91/board-flexibity.c
++ *
++ *  Copyright (C) 2010 Flexibity
++ *  Copyright (C) 2005 SAN People
++ *  Copyright (C) 2006 Atmel
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License as published by
++ * the Free Software Foundation; either version 2 of the License, or
++ * (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
++ */
++
++#include <linux/init.h>
++#include <linux/platform_device.h>
++#include <linux/spi/spi.h>
++#include <linux/input.h>
++#include <linux/gpio.h>
++
++#include <asm/mach-types.h>
++
++#include <asm/mach/arch.h>
++#include <asm/mach/map.h>
++#include <asm/mach/irq.h>
++
++#include <mach/hardware.h>
++#include <mach/board.h>
++
++#include "generic.h"
++
++static void __init flexibity_map_io(void)
++{
++	/* Initialize processor: 18.432 MHz crystal */
++	at91sam9260_initialize(18432000);
++
++	/* DBGU on ttyS0. (Rx & Tx only) */
++	at91_register_uart(0, 0, 0);
++
++	/* set serial console to ttyS0 (ie, DBGU) */
++	at91_set_serial_console(0);
++}
++
++static void __init flexibity_init_irq(void)
++{
++	at91sam9260_init_interrupts(NULL);
++}
++
++/* USB Host port */
++static struct at91_usbh_data __initdata flexibity_usbh_data = {
++	.ports		= 2,
++};
++
++/* USB Device port */
++static struct at91_udc_data __initdata flexibity_udc_data = {
++	.vbus_pin	= AT91_PIN_PC5,
++	.pullup_pin	= 0,		/* pull-up driven by UDC */
++};
++
++/* SPI devices */
++static struct spi_board_info flexibity_spi_devices[] = {
++	{	/* DataFlash chip */
++		.modalias	= "mtd_dataflash",
++		.chip_select	= 1,
++		.max_speed_hz	= 15 * 1000 * 1000,
++		.bus_num	= 0,
++	},
++};
++
++/* MCI (SD/MMC) */
++static struct at91_mmc_data __initdata flexibity_mmc_data = {
++	.slot_b		= 0,
++	.wire4		= 1,
++	.det_pin	= AT91_PIN_PC9,
++	.wp_pin		= AT91_PIN_PC4,
++};
++
++/* LEDs */
++static struct gpio_led flexibity_leds[] = {
++	{
++		.name			= "usb1:green",
++		.gpio			= AT91_PIN_PA12,
++		.active_low		= 1,
++		.default_trigger	= "default-on",
++	},
++	{
++		.name			= "usb1:red",
++		.gpio			= AT91_PIN_PA13,
++		.active_low		= 1,
++		.default_trigger	= "default-on",
++	},
++	{
++		.name			= "usb2:green",
++		.gpio			= AT91_PIN_PB26,
++		.active_low		= 1,
++		.default_trigger	= "default-on",
++	},
++	{
++		.name			= "usb2:red",
++		.gpio			= AT91_PIN_PB27,
++		.active_low		= 1,
++		.default_trigger	= "default-on",
++	},
++	{
++		.name			= "usb3:green",
++		.gpio			= AT91_PIN_PC8,
++		.active_low		= 1,
++		.default_trigger	= "default-on",
++	},
++	{
++		.name			= "usb3:red",
++		.gpio			= AT91_PIN_PC6,
++		.active_low		= 1,
++		.default_trigger	= "default-on",
++	},
++	{
++		.name			= "usb4:green",
++		.gpio			= AT91_PIN_PB4,
++		.active_low		= 1,
++		.default_trigger	= "default-on",
++	},
++	{
++		.name			= "usb4:red",
++		.gpio			= AT91_PIN_PB5,
++		.active_low		= 1,
++		.default_trigger	= "default-on",
++	}
++};
++
++static void __init flexibity_board_init(void)
++{
++	/* Serial */
++	at91_add_device_serial();
++	/* USB Host */
++	at91_add_device_usbh(&flexibity_usbh_data);
++	/* USB Device */
++	at91_add_device_udc(&flexibity_udc_data);
++	/* SPI */
++	at91_add_device_spi(flexibity_spi_devices,
++		ARRAY_SIZE(flexibity_spi_devices));
++	/* MMC */
++	at91_add_device_mmc(0, &flexibity_mmc_data);
++	/* LEDs */
++	at91_gpio_leds(flexibity_leds, ARRAY_SIZE(flexibity_leds));
++}
++
++MACHINE_START(FLEXIBITY, "Flexibity Connect")
++	/* Maintainer: Maxim Osipov */
++	.phys_io	= AT91_BASE_SYS,
++	.io_pg_offst	= (AT91_VA_BASE_SYS >> 18) & 0xfffc,
++	.boot_params	= AT91_SDRAM_BASE + 0x100,
++	.timer		= &at91sam926x_timer,
++	.map_io		= flexibity_map_io,
++	.init_irq	= flexibity_init_irq,
++	.init_machine	= flexibity_board_init,
++MACHINE_END
+-- 
+1.7.1
diff --git a/a/content_digest b/N1/content_digest
index 5e2240e..1161cbd 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,16 @@
- "From\0maxim.osipov@gmail.com (Maxim Osipov)\0"
+ "From\0Maxim Osipov <maxim.osipov@gmail.com>\0"
  "Subject\0[PATCH v3] AT91: Add flexibity board support\0"
  "Date\0Tue, 14 Sep 2010 11:58:19 +0400\0"
- "To\0linux-arm-kernel@lists.infradead.org\0"
+ "To\0Russell King <linux@arm.linux.org.uk>"
+  Andrew Victor <linux@maxim.org.za>
+  Nicolas Ferre <nicolas.ferre@atmel.com>
+  Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+  Antonio R. Costa <costa.antonior@gmail.com>
+  Ernst Schwab <eschwab@online.de>
+  Andrew Morton <akpm@linux-foundation.org>
+  Maxim Osipov <maxim.osipov@gmail.com>
+  linux-arm-kernel@lists.infradead.org
+ " linux-kernel@vger.kernel.org\0"
  "\00:1\0"
  "b\0"
  "Hello,\n"
@@ -9,6 +18,221 @@
  "Please find updated flexibity board support patch below.\n"
  "\n"
  "Kind regards,\n"
- Maxim
+ "Maxim\n"
+ "\n"
+ ">From 1fe2aaae2574a4eabda2547ecad0bd0085e3ca3e Mon Sep 17 00:00:00 2001\n"
+ "From: Maxim Osipov <maxim.osipov@gmail.com>\n"
+ "Date: Sun, 12 Sep 2010 16:23:48 +0400\n"
+ "Subject: [PATCH] AT91: Add flexibity board support\n"
+ "\n"
+ "Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>\n"
+ "---\n"
+ " arch/arm/mach-at91/Kconfig           |    6 ++\n"
+ " arch/arm/mach-at91/Makefile          |    1 +\n"
+ " arch/arm/mach-at91/board-flexibity.c |  164 ++++++++++++++++++++++++++++++++++\n"
+ " 3 files changed, 171 insertions(+), 0 deletions(-)\n"
+ " create mode 100644 arch/arm/mach-at91/board-flexibity.c\n"
+ "\n"
+ "diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig\n"
+ "index 939bccd..ca33862 100644\n"
+ "--- a/arch/arm/mach-at91/Kconfig\n"
+ "+++ b/arch/arm/mach-at91/Kconfig\n"
+ "@@ -248,6 +248,12 @@ config MACH_CPU9260\n"
+ " \t  Select this if you are using a Eukrea Electromatique's\n"
+ " \t  CPU9260 Board <http://www.eukrea.com/>\n"
+ " \n"
+ "+config MACH_FLEXIBITY\n"
+ "+\tbool \"Flexibity Connect board\"\n"
+ "+\thelp\n"
+ "+\t  Select this if you are using Flexibity Connect board\n"
+ "+\t  <http://www.flexibity.com>\n"
+ "+\n"
+ " endif\n"
+ " \n"
+ " # ----------------------------------------------------------\n"
+ "diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile\n"
+ "index ca2ac00..7cbe06d 100644\n"
+ "--- a/arch/arm/mach-at91/Makefile\n"
+ "+++ b/arch/arm/mach-at91/Makefile\n"
+ "@@ -46,6 +46,7 @@ obj-$(CONFIG_MACH_USB_A9260)\t+= board-usb-a9260.o\n"
+ " obj-$(CONFIG_MACH_QIL_A9260)\t+= board-qil-a9260.o\n"
+ " obj-$(CONFIG_MACH_AFEB9260)\t+= board-afeb-9260v1.o\n"
+ " obj-$(CONFIG_MACH_CPU9260)\t+= board-cpu9krea.o\n"
+ "+obj-$(CONFIG_MACH_FLEXIBITY)\t+= board-flexibity.o\n"
+ " \n"
+ " # AT91SAM9261 board-specific support\n"
+ " obj-$(CONFIG_MACH_AT91SAM9261EK) += board-sam9261ek.o\n"
+ "diff --git a/arch/arm/mach-at91/board-flexibity.c b/arch/arm/mach-at91/board-flexibity.c\n"
+ "new file mode 100644\n"
+ "index 0000000..216c8ca\n"
+ "--- /dev/null\n"
+ "+++ b/arch/arm/mach-at91/board-flexibity.c\n"
+ "@@ -0,0 +1,164 @@\n"
+ "+/*\n"
+ "+ * linux/arch/arm/mach-at91/board-flexibity.c\n"
+ "+ *\n"
+ "+ *  Copyright (C) 2010 Flexibity\n"
+ "+ *  Copyright (C) 2005 SAN People\n"
+ "+ *  Copyright (C) 2006 Atmel\n"
+ "+ *\n"
+ "+ * This program is free software; you can redistribute it and/or modify\n"
+ "+ * it under the terms of the GNU General Public License as published by\n"
+ "+ * the Free Software Foundation; either version 2 of the License, or\n"
+ "+ * (at your option) any later version.\n"
+ "+ *\n"
+ "+ * This program is distributed in the hope that it will be useful,\n"
+ "+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
+ "+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
+ "+ * GNU General Public License for more details.\n"
+ "+ *\n"
+ "+ * You should have received a copy of the GNU General Public License\n"
+ "+ * along with this program; if not, write to the Free Software\n"
+ "+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\n"
+ "+ */\n"
+ "+\n"
+ "+#include <linux/init.h>\n"
+ "+#include <linux/platform_device.h>\n"
+ "+#include <linux/spi/spi.h>\n"
+ "+#include <linux/input.h>\n"
+ "+#include <linux/gpio.h>\n"
+ "+\n"
+ "+#include <asm/mach-types.h>\n"
+ "+\n"
+ "+#include <asm/mach/arch.h>\n"
+ "+#include <asm/mach/map.h>\n"
+ "+#include <asm/mach/irq.h>\n"
+ "+\n"
+ "+#include <mach/hardware.h>\n"
+ "+#include <mach/board.h>\n"
+ "+\n"
+ "+#include \"generic.h\"\n"
+ "+\n"
+ "+static void __init flexibity_map_io(void)\n"
+ "+{\n"
+ "+\t/* Initialize processor: 18.432 MHz crystal */\n"
+ "+\tat91sam9260_initialize(18432000);\n"
+ "+\n"
+ "+\t/* DBGU on ttyS0. (Rx & Tx only) */\n"
+ "+\tat91_register_uart(0, 0, 0);\n"
+ "+\n"
+ "+\t/* set serial console to ttyS0 (ie, DBGU) */\n"
+ "+\tat91_set_serial_console(0);\n"
+ "+}\n"
+ "+\n"
+ "+static void __init flexibity_init_irq(void)\n"
+ "+{\n"
+ "+\tat91sam9260_init_interrupts(NULL);\n"
+ "+}\n"
+ "+\n"
+ "+/* USB Host port */\n"
+ "+static struct at91_usbh_data __initdata flexibity_usbh_data = {\n"
+ "+\t.ports\t\t= 2,\n"
+ "+};\n"
+ "+\n"
+ "+/* USB Device port */\n"
+ "+static struct at91_udc_data __initdata flexibity_udc_data = {\n"
+ "+\t.vbus_pin\t= AT91_PIN_PC5,\n"
+ "+\t.pullup_pin\t= 0,\t\t/* pull-up driven by UDC */\n"
+ "+};\n"
+ "+\n"
+ "+/* SPI devices */\n"
+ "+static struct spi_board_info flexibity_spi_devices[] = {\n"
+ "+\t{\t/* DataFlash chip */\n"
+ "+\t\t.modalias\t= \"mtd_dataflash\",\n"
+ "+\t\t.chip_select\t= 1,\n"
+ "+\t\t.max_speed_hz\t= 15 * 1000 * 1000,\n"
+ "+\t\t.bus_num\t= 0,\n"
+ "+\t},\n"
+ "+};\n"
+ "+\n"
+ "+/* MCI (SD/MMC) */\n"
+ "+static struct at91_mmc_data __initdata flexibity_mmc_data = {\n"
+ "+\t.slot_b\t\t= 0,\n"
+ "+\t.wire4\t\t= 1,\n"
+ "+\t.det_pin\t= AT91_PIN_PC9,\n"
+ "+\t.wp_pin\t\t= AT91_PIN_PC4,\n"
+ "+};\n"
+ "+\n"
+ "+/* LEDs */\n"
+ "+static struct gpio_led flexibity_leds[] = {\n"
+ "+\t{\n"
+ "+\t\t.name\t\t\t= \"usb1:green\",\n"
+ "+\t\t.gpio\t\t\t= AT91_PIN_PA12,\n"
+ "+\t\t.active_low\t\t= 1,\n"
+ "+\t\t.default_trigger\t= \"default-on\",\n"
+ "+\t},\n"
+ "+\t{\n"
+ "+\t\t.name\t\t\t= \"usb1:red\",\n"
+ "+\t\t.gpio\t\t\t= AT91_PIN_PA13,\n"
+ "+\t\t.active_low\t\t= 1,\n"
+ "+\t\t.default_trigger\t= \"default-on\",\n"
+ "+\t},\n"
+ "+\t{\n"
+ "+\t\t.name\t\t\t= \"usb2:green\",\n"
+ "+\t\t.gpio\t\t\t= AT91_PIN_PB26,\n"
+ "+\t\t.active_low\t\t= 1,\n"
+ "+\t\t.default_trigger\t= \"default-on\",\n"
+ "+\t},\n"
+ "+\t{\n"
+ "+\t\t.name\t\t\t= \"usb2:red\",\n"
+ "+\t\t.gpio\t\t\t= AT91_PIN_PB27,\n"
+ "+\t\t.active_low\t\t= 1,\n"
+ "+\t\t.default_trigger\t= \"default-on\",\n"
+ "+\t},\n"
+ "+\t{\n"
+ "+\t\t.name\t\t\t= \"usb3:green\",\n"
+ "+\t\t.gpio\t\t\t= AT91_PIN_PC8,\n"
+ "+\t\t.active_low\t\t= 1,\n"
+ "+\t\t.default_trigger\t= \"default-on\",\n"
+ "+\t},\n"
+ "+\t{\n"
+ "+\t\t.name\t\t\t= \"usb3:red\",\n"
+ "+\t\t.gpio\t\t\t= AT91_PIN_PC6,\n"
+ "+\t\t.active_low\t\t= 1,\n"
+ "+\t\t.default_trigger\t= \"default-on\",\n"
+ "+\t},\n"
+ "+\t{\n"
+ "+\t\t.name\t\t\t= \"usb4:green\",\n"
+ "+\t\t.gpio\t\t\t= AT91_PIN_PB4,\n"
+ "+\t\t.active_low\t\t= 1,\n"
+ "+\t\t.default_trigger\t= \"default-on\",\n"
+ "+\t},\n"
+ "+\t{\n"
+ "+\t\t.name\t\t\t= \"usb4:red\",\n"
+ "+\t\t.gpio\t\t\t= AT91_PIN_PB5,\n"
+ "+\t\t.active_low\t\t= 1,\n"
+ "+\t\t.default_trigger\t= \"default-on\",\n"
+ "+\t}\n"
+ "+};\n"
+ "+\n"
+ "+static void __init flexibity_board_init(void)\n"
+ "+{\n"
+ "+\t/* Serial */\n"
+ "+\tat91_add_device_serial();\n"
+ "+\t/* USB Host */\n"
+ "+\tat91_add_device_usbh(&flexibity_usbh_data);\n"
+ "+\t/* USB Device */\n"
+ "+\tat91_add_device_udc(&flexibity_udc_data);\n"
+ "+\t/* SPI */\n"
+ "+\tat91_add_device_spi(flexibity_spi_devices,\n"
+ "+\t\tARRAY_SIZE(flexibity_spi_devices));\n"
+ "+\t/* MMC */\n"
+ "+\tat91_add_device_mmc(0, &flexibity_mmc_data);\n"
+ "+\t/* LEDs */\n"
+ "+\tat91_gpio_leds(flexibity_leds, ARRAY_SIZE(flexibity_leds));\n"
+ "+}\n"
+ "+\n"
+ "+MACHINE_START(FLEXIBITY, \"Flexibity Connect\")\n"
+ "+\t/* Maintainer: Maxim Osipov */\n"
+ "+\t.phys_io\t= AT91_BASE_SYS,\n"
+ "+\t.io_pg_offst\t= (AT91_VA_BASE_SYS >> 18) & 0xfffc,\n"
+ "+\t.boot_params\t= AT91_SDRAM_BASE + 0x100,\n"
+ "+\t.timer\t\t= &at91sam926x_timer,\n"
+ "+\t.map_io\t\t= flexibity_map_io,\n"
+ "+\t.init_irq\t= flexibity_init_irq,\n"
+ "+\t.init_machine\t= flexibity_board_init,\n"
+ "+MACHINE_END\n"
+ "-- \n"
+ 1.7.1
 
-c6cb842b3b63c67876a90a27cabb1f2e225b00bfc14ef38b3f4ada6b058bc373
+5b0a5c0eefb8af44409a5ae9929efb2052b2dac8c3bbafb8915e65e3b650bb55

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.