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
5 @@ -77,6 +77,35 @@ static struct platform_device pronghornm
6 .resource = &pronghornmetro_uart_resource,
9 +static struct resource pronghornmetro_pata_resources[] = {
11 + .flags = IORESOURCE_MEM
14 + .flags = IORESOURCE_MEM,
18 + .start = IRQ_IXP4XX_GPIO0,
19 + .end = IRQ_IXP4XX_GPIO0,
20 + .flags = IORESOURCE_IRQ,
24 +static struct ixp4xx_pata_data pronghornmetro_pata_data = {
25 + .cs0_bits = 0xbfff0043,
26 + .cs1_bits = 0xbfff0043,
29 +static struct platform_device pronghornmetro_pata = {
30 + .name = "pata_ixp4xx_cf",
32 + .dev.platform_data = &pronghornmetro_pata_data,
33 + .num_resources = ARRAY_SIZE(pronghornmetro_pata_resources),
34 + .resource = pronghornmetro_pata_resources,
38 static struct resource res_mac0 = {
39 .start = IXP4XX_EthB_BASE_PHYS,
40 .end = IXP4XX_EthB_BASE_PHYS + 0x1ff,
41 @@ -165,6 +194,17 @@ static void __init pronghornmetro_init(v
43 platform_add_devices(pronghornmetro_devices, ARRAY_SIZE(pronghornmetro_devices));
45 + pronghornmetro_pata_resources[0].start = IXP4XX_EXP_BUS_BASE(1);
46 + pronghornmetro_pata_resources[0].end = IXP4XX_EXP_BUS_END(1);
48 + pronghornmetro_pata_resources[1].start = IXP4XX_EXP_BUS_BASE(2);
49 + pronghornmetro_pata_resources[1].end = IXP4XX_EXP_BUS_END(2);
51 + pronghornmetro_pata_data.cs0_cfg = IXP4XX_EXP_CS1;
52 + pronghornmetro_pata_data.cs1_cfg = IXP4XX_EXP_CS2;
54 + platform_device_register(&pronghornmetro_pata);
56 register_mtd_user(&pronghornmetro_flash_notifier);