1 Index: linux-2.6.21.7/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
2 ===================================================================
3 --- linux-2.6.21.7.orig/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
4 +++ linux-2.6.21.7/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
6 #include <linux/serial.h>
8 #include <linux/serial_8250.h>
9 +#include <linux/mtd/mtd.h>
10 #include <linux/slab.h>
12 #include <asm/types.h>
13 @@ -122,11 +123,34 @@ static struct platform_device mac1 = {
14 .resource = &res_mac1,
17 +struct npe_ucode_platform_data pronghornmetro_npe_ucode_data = {
18 + .mtd_partition = "RedBoot",
21 +static struct platform_device pronghornmetro_npe_ucode = {
22 + .name = "ixp4xx_npe_ucode",
24 + .dev.platform_data = &pronghornmetro_npe_ucode_data,
27 static struct platform_device *pronghornmetro_devices[] __initdata = {
28 &pronghornmetro_flash,
32 + &pronghornmetro_npe_ucode,
35 +static void pronghornmetro_flash_add(struct mtd_info *mtd)
39 +static void pronghornmetro_flash_remove(struct mtd_info *mtd) {
42 +static struct mtd_notifier pronghornmetro_flash_notifier = {
43 + .add = pronghornmetro_flash_add,
44 + .remove = pronghornmetro_flash_remove,
47 static void __init pronghornmetro_init(void)
48 @@ -140,6 +164,8 @@ static void __init pronghornmetro_init(v
49 *IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
51 platform_add_devices(pronghornmetro_devices, ARRAY_SIZE(pronghornmetro_devices));
53 + register_mtd_user(&pronghornmetro_flash_notifier);
56 #ifdef CONFIG_MACH_PRONGHORNMETRO