[Armadeus-commitlog] SF.net SVN: armadeus:[1245] trunk/buildroot/target/device/armadeus/linux/ ker
Brought to you by:
sszy
|
From: <ar...@us...> - 2009-04-30 14:59:15
|
Revision: 1245
http://armadeus.svn.sourceforge.net/armadeus/?rev=1245&view=rev
Author: artemys
Date: 2009-04-30 14:59:09 +0000 (Thu, 30 Apr 2009)
Log Message:
-----------
[LINUX] Puts MTD physmap declaration in apf9328.c (seems to be the standard now in 2.6.29)
Modified Paths:
--------------
trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/021-armadeus-apf9328.patch
Modified: trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/021-armadeus-apf9328.patch
===================================================================
--- trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/021-armadeus-apf9328.patch 2009-04-30 14:03:03 UTC (rev 1244)
+++ trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/021-armadeus-apf9328.patch 2009-04-30 14:59:09 UTC (rev 1245)
@@ -4,8 +4,8 @@
Index: linux-2.6.29/arch/arm/mach-imx/apf9328.c
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.29/arch/arm/mach-imx/apf9328.c 2009-04-29 17:01:46.000000000 +0200
-@@ -0,0 +1,730 @@
++++ linux-2.6.29/arch/arm/mach-imx/apf9328.c 2009-04-30 16:33:54.000000000 +0200
+@@ -0,0 +1,758 @@
+/*
+ * linux/arch/arm/mach-imx/apf9328.c
+ *
@@ -28,6 +28,8 @@
+ */
+
+#include <linux/device.h>
++#include <linux/platform_device.h>
++#include <linux/mtd/physmap.h>
+#include <linux/init.h>
+#include <linux/interrupt.h>
+#include <linux/serial_8250.h>
@@ -621,6 +623,30 @@
+};
+#endif // CONFIG_IMX_BACKLIGHT
+
++/*
++ * The APF9328 can have up to 32MB NOR
++ */
++static struct resource flash_resource = {
++ .start = IMX_CS0_PHYS,
++ .end = IMX_CS0_PHYS + (32 * 1024 * 1024) - 1,
++ .flags = IORESOURCE_MEM,
++};
++
++static struct physmap_flash_data apf9328_flash_data = {
++ .width = 2,
++};
++
++static struct platform_device apf9328_flash_device = {
++ .name = "physmap-flash",
++ .id = 0,
++ .dev = {
++ .platform_data = &apf9328_flash_data,
++ },
++ .resource = &flash_resource,
++ .num_resources = 1,
++};
++
++
+static struct platform_device *devices[] __initdata = {
+ &imx_uart1_device,
+ &imx_uart2_device,
@@ -642,13 +668,14 @@
+#ifdef CONFIG_ARMADEUS_ISP1761
+ &devfull_isp1761_device,
+#endif
++ &apf9328_flash_device,
+};
+
+static void __init apf9328_init(void)
+{
-+ printk("--- Registering APF9328 ressources\n");
++ printk("--- Registering APF9328 ressources\n");
+
-+ // Serial
++ // Serial
+ imx_gpio_mode(PC9_PF_UART1_CTS);
+ imx_gpio_mode(PC10_PF_UART1_RTS);
+ imx_gpio_mode(PC11_PF_UART1_TXD);
@@ -736,6 +763,7 @@
+ .timer = &imx_timer,
+ .init_machine = apf9328_init,
+MACHINE_END
++
Index: linux-2.6.29/arch/arm/mach-imx/apf9328_lcd_config.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|