diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-04-25 12:57:33 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-04-25 12:57:33 +0000 |
commit | 05735d303b93c2a1050ef515e8c67e393ae3987f (patch) | |
tree | 2a4d205fd4cde0b74a467cf30081e0ab4c627ba9 /target/linux/adm5120/patches-3.3/a03-adm5120-remove-CONFIG_MTD_PARTITIONS.patch | |
parent | 0e8ddda2ee6ce7ba23b4a92b4c01e01aa424050b (diff) |
adm5120: add 3.3 support
Partially based on the 3.1 patches by Hartmut Knaack <knaack.h [at] gmx.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31474 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-3.3/a03-adm5120-remove-CONFIG_MTD_PARTITIONS.patch')
-rw-r--r-- | target/linux/adm5120/patches-3.3/a03-adm5120-remove-CONFIG_MTD_PARTITIONS.patch | 306 |
1 files changed, 306 insertions, 0 deletions
diff --git a/target/linux/adm5120/patches-3.3/a03-adm5120-remove-CONFIG_MTD_PARTITIONS.patch b/target/linux/adm5120/patches-3.3/a03-adm5120-remove-CONFIG_MTD_PARTITIONS.patch new file mode 100644 index 0000000000..4ee4af6efd --- /dev/null +++ b/target/linux/adm5120/patches-3.3/a03-adm5120-remove-CONFIG_MTD_PARTITIONS.patch @@ -0,0 +1,306 @@ +--- a/arch/mips/include/asm/mach-adm5120/adm5120_platform.h ++++ b/arch/mips/include/asm/mach-adm5120/adm5120_platform.h +@@ -28,10 +28,8 @@ struct adm5120_flash_platform_data { + void (*set_vpp)(struct map_info *, int); + void (*switch_bank)(unsigned); + u32 window_size; +-#ifdef CONFIG_MTD_PARTITIONS + unsigned int nr_parts; + struct mtd_partition *parts; +-#endif + }; + + struct adm5120_switch_platform_data { +--- a/arch/mips/adm5120/infineon/infineon.c ++++ b/arch/mips/adm5120/infineon/infineon.c +@@ -16,7 +16,6 @@ + #define EASY_CONFIG_OFFSET 0x10000 + #define EASY_CONFIG_SIZE 0x1000 + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition easy_partitions[] = { + { + .name = "admboot", +@@ -33,7 +32,6 @@ static struct mtd_partition easy_partiti + .size = MTDPART_SIZ_FULL, + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + static __init void easy_setup_mac(void) + { +@@ -68,10 +66,8 @@ void __init easy_setup_pqfp(void) + gpio_direction_output(ADM5120_GPIO_PIN3, 0); + adm5120_flash0_data.switch_bank = switch_bank_gpio3; + +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(easy_partitions); + adm5120_flash0_data.parts = easy_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + + adm5120_add_device_uart(0); + adm5120_add_device_uart(1); +@@ -100,10 +96,8 @@ void __init easy_setup_bga(void) + gpio_direction_output(ADM5120_GPIO_PIN5, 0); + adm5120_flash0_data.switch_bank = switch_bank_gpio5; + +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(easy_partitions); + adm5120_flash0_data.parts = easy_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + + adm5120_add_device_uart(0); + adm5120_add_device_uart(1); +--- a/arch/mips/adm5120/cellvision/cellvision.c ++++ b/arch/mips/adm5120/cellvision/cellvision.c +@@ -19,7 +19,6 @@ + #define CELLVISION_CONFIG_OFFSET 0x8000 + #define CELLVISION_CONFIG_SIZE 0x1000 + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition cas6xx_partitions[] = { + { + .name = "admboot", +@@ -65,7 +64,6 @@ static struct mtd_partition cas7xx_parti + .size = MTDPART_SIZ_FULL, + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + static void switch_bank_gpio5(unsigned bank) + { +@@ -105,20 +103,16 @@ void __init cellvision_mac_setup(void) + + void __init cas6xx_flash_setup(void) + { +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(cas6xx_partitions); + adm5120_flash0_data.parts = cas6xx_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + + cellvision_flash_setup(); + } + + void __init cas7xx_flash_setup(void) + { +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(cas7xx_partitions); + adm5120_flash0_data.parts = cas7xx_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + + cellvision_flash_setup(); + } +--- a/arch/mips/adm5120/edimax/br-61xx.c ++++ b/arch/mips/adm5120/edimax/br-61xx.c +@@ -18,7 +18,6 @@ + #define BR61XX_CONFIG_OFFSET 0x8000 + #define BR61XX_CONFIG_SIZE 0x1000 + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition br61xx_partitions[] = { + { + .name = "admboot", +@@ -35,7 +34,6 @@ static struct mtd_partition br61xx_parti + .size = MTDPART_SIZ_FULL, + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + static struct gpio_button br61xx_gpio_buttons[] __initdata = { + { +@@ -68,10 +66,8 @@ static void __init br61xx_mac_setup(void + void __init br61xx_generic_setup(void) + { + +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(br61xx_partitions); + adm5120_flash0_data.parts = br61xx_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + adm5120_add_device_flash(0); + + adm5120_add_device_gpio(BR61XX_GPIO_DEV_MASK); +--- a/arch/mips/adm5120/mikrotik/rb-1xx.c ++++ b/arch/mips/adm5120/mikrotik/rb-1xx.c +@@ -25,7 +25,6 @@ static struct adm5120_pci_irq rb1xx_pci_ + PCIIRQ(3, 0, 1, ADM5120_IRQ_PCI2) + }; + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition rb1xx_nor_parts[] = { + { + .name = "booter", +@@ -50,7 +49,6 @@ static struct mtd_partition rb1xx_nand_p + .size = MTDPART_SIZ_FULL + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + /* + * We need to use the OLD Yaffs-1 OOB layout, otherwise the RB bootloader +@@ -79,10 +77,8 @@ static int rb1xx_nand_fixup(struct mtd_i + struct platform_nand_data rb1xx_nand_data __initdata = { + .chip = { + .nr_chips = 1, +-#ifdef CONFIG_MTD_PARTITIONS + .nr_partitions = ARRAY_SIZE(rb1xx_nand_parts), + .partitions = rb1xx_nand_parts, +-#endif /* CONFIG_MTD_PARTITIONS */ + .chip_delay = RB1XX_NAND_CHIP_DELAY, + .options = NAND_NO_AUTOINCR, + .chip_fixup = rb1xx_nand_fixup, +@@ -114,10 +110,8 @@ static void __init rb1xx_mac_setup(void) + void __init rb1xx_add_device_flash(void) + { + /* setup data for flash0 device */ +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(rb1xx_nor_parts); + adm5120_flash0_data.parts = rb1xx_nor_parts; +-#endif /* CONFIG_MTD_PARTITIONS */ + adm5120_flash0_data.window_size = 128*1024; + + adm5120_add_device_flash(0); +--- a/arch/mips/adm5120/compex/wp54.c ++++ b/arch/mips/adm5120/compex/wp54.c +@@ -11,7 +11,6 @@ + + #include "compex.h" + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition wp54g_wrt_partitions[] = { + { + .name = "cfe", +@@ -28,7 +27,6 @@ static struct mtd_partition wp54g_wrt_pa + .size = 0x010000, + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + static struct adm5120_pci_irq wp54_pci_irqs[] __initdata = { + PCIIRQ(2, 0, 1, ADM5120_IRQ_PCI0), +@@ -83,10 +81,8 @@ MIPS_MACHINE(MACH_ADM5120_WP54, "WP54", + + static void __init wp54_wrt_setup(void) + { +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(wp54g_wrt_partitions); + adm5120_flash0_data.parts = wp54g_wrt_partitions; +-#endif + + wp54_setup(); + } +--- a/arch/mips/adm5120/zyxel/p-33x.c ++++ b/arch/mips/adm5120/zyxel/p-33x.c +@@ -16,7 +16,6 @@ + #define P33X_GPIO_FLASH_A20 ADM5120_GPIO_PIN5 + #define P33X_GPIO_DEV_MASK (1 << P33X_GPIO_FLASH_A20) + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition p33x_partitions[] = { + { + .name = "bootbase", +@@ -46,7 +45,6 @@ static struct mtd_partition p33x_partiti + .size = MTDPART_SIZ_FULL, + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + static struct adm5120_pci_irq p33x_pci_irqs[] __initdata = { + PCIIRQ(2, 0, 1, ADM5120_IRQ_PCI0), +@@ -75,10 +73,8 @@ void __init p33x_generic_setup(void) + gpio_request(P33X_GPIO_FLASH_A20, NULL); /* for flash A20 line */ + gpio_direction_output(P33X_GPIO_FLASH_A20, 0); + adm5120_flash0_data.switch_bank = switch_bank_gpio5; +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(p33x_partitions); + adm5120_flash0_data.parts = p33x_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + adm5120_add_device_flash(0); + + adm5120_add_device_uart(0); +--- a/arch/mips/adm5120/generic/eb-214a.c ++++ b/arch/mips/adm5120/generic/eb-214a.c +@@ -28,7 +28,6 @@ + #define EB214A_GPIO_DEV_MASK 0 + #define EB214A_CONFIG_OFFSET 0x4000 + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition eb214a_partitions[] = { + { + .name = "bootloader", +@@ -45,7 +44,6 @@ static struct mtd_partition eb214a_parti + .size = MTDPART_SIZ_FULL, + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + static struct adm5120_pci_irq eb214a_pci_irqs[] __initdata = { + PCIIRQ(4, 0, 1, ADM5120_IRQ_PCI0), +@@ -94,10 +92,8 @@ static void __init eb214a_mac_setup(void + + static void __init eb214a_setup(void) + { +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(eb214a_partitions); + adm5120_flash0_data.parts = eb214a_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + adm5120_add_device_flash(0); + + adm5120_add_device_gpio(EB214A_GPIO_DEV_MASK); +--- a/arch/mips/adm5120/motorola/pmugw.c ++++ b/arch/mips/adm5120/motorola/pmugw.c +@@ -26,7 +26,6 @@ + #define PMUGW_CONFIG_OFFSET 0x10000 + #define PMUGW_CONFIG_SIZE 0x1000 + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition pmugw_partitions[] = { + { + .name = "admboot", +@@ -43,7 +42,6 @@ static struct mtd_partition pmugw_partit + .size = MTDPART_SIZ_FULL, + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + static u8 pmugw_vlans[6] __initdata = { + 0x41, 0x42, 0x44, 0x48, 0x50, 0x00 +@@ -82,10 +80,8 @@ void __init pmugw_setup(void) + gpio_direction_output(ADM5120_GPIO_PIN5, 0); + adm5120_flash0_data.switch_bank = switch_bank_gpio5; + +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(pmugw_partitions); + adm5120_flash0_data.parts = pmugw_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + + adm5120_add_device_uart(1); /* ttyS0 */ + adm5120_add_device_uart(0); /* ttyS1 */ +--- a/arch/mips/adm5120/osbridge/5gxi.c ++++ b/arch/mips/adm5120/osbridge/5gxi.c +@@ -20,7 +20,6 @@ + #include <asm/mach-adm5120/adm5120_platform.h> + #include <asm/mach-adm5120/adm5120_info.h> + +-#ifdef CONFIG_MTD_PARTITIONS + static struct mtd_partition osbridge_5gxi_partitions[] = { + { + .name = "bootloader", +@@ -37,7 +36,6 @@ static struct mtd_partition osbridge_5gx + .size = MTDPART_SIZ_FULL, + } + }; +-#endif /* CONFIG_MTD_PARTITIONS */ + + static struct gpio_led osbridge_5gxi_gpio_leds[] __initdata = { + GPIO_LED_INV(ADM5120_GPIO_PIN6, "5gxi:green:user", NULL), +@@ -54,10 +52,8 @@ static u8 osbridge_5gxi_vlans[6] __initd + + static void __init osbridge_5gxi_setup(void) + { +-#ifdef CONFIG_MTD_PARTITIONS + adm5120_flash0_data.nr_parts = ARRAY_SIZE(osbridge_5gxi_partitions); + adm5120_flash0_data.parts = osbridge_5gxi_partitions; +-#endif /* CONFIG_MTD_PARTITIONS */ + + adm5120_add_device_uart(0); + adm5120_add_device_uart(1); |