activity-led.patch no longer required
[openwrt.git] / target / linux / ixp4xx-2.6 / patches / 420-pronghorn_metro_mtd_microcode.patch
1 diff -Nur linux-2.6.19.2/arch/arm/mach-ixp4xx/pronghornmetro-setup.c linux-2.6.19.2-owrt/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
2 --- linux-2.6.19.2/arch/arm/mach-ixp4xx/pronghornmetro-setup.c 2007-04-04 11:48:14.000000000 +0200
3 +++ linux-2.6.19.2-owrt/arch/arm/mach-ixp4xx/pronghornmetro-setup.c 2007-04-04 11:52:09.000000000 +0200
4 @@ -14,6 +14,7 @@
5 #include <linux/serial.h>
6 #include <linux/tty.h>
7 #include <linux/serial_8250.h>
8 +#include <linux/mtd/mtd.h>
9 #include <linux/slab.h>
10
11 #include <asm/types.h>
12 @@ -133,12 +134,35 @@
13 .resource = &res_mac1,
14 };
15
16 +struct npe_ucode_platform_data pronghornmetro_npe_ucode_data = {
17 + .mtd_partition = "RedBoot",
18 +};
19 +
20 +static struct platform_device pronghornmetro_npe_ucode = {
21 + .name = "ixp4xx_npe_ucode",
22 + .id = 0,
23 + .dev.platform_data = &pronghornmetro_npe_ucode_data,
24 +};
25 +
26 static struct platform_device *pronghornmetro_devices[] __initdata = {
27 &pronghornmetro_i2c_controller,
28 &pronghornmetro_flash,
29 &pronghornmetro_uart,
30 &mac0,
31 &mac1,
32 + &pronghornmetro_npe_ucode,
33 +};
34 +
35 +static void pronghornmetro_flash_add(struct mtd_info *mtd)
36 +{
37 +}
38 +
39 +static void pronghornmetro_flash_remove(struct mtd_info *mtd) {
40 +}
41 +
42 +static struct mtd_notifier pronghornmetro_flash_notifier = {
43 + .add = pronghornmetro_flash_add,
44 + .remove = pronghornmetro_flash_remove,
45 };
46
47 static void __init pronghornmetro_init(void)
48 @@ -152,6 +176,8 @@
49 *IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
50
51 platform_add_devices(pronghornmetro_devices, ARRAY_SIZE(pronghornmetro_devices));
52 +
53 + register_mtd_user(&pronghornmetro_flash_notifier);
54 }
55
56 #ifdef CONFIG_MACH_PRONGHORNMETRO
This page took 0.042424 seconds and 5 git commands to generate.