diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-03-27 19:38:01 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-03-27 19:38:01 +0000 |
commit | e27017a7280e64c09b8e74e702610e7a6688a130 (patch) | |
tree | 89873a9483cd1ad2fb3504d61b099353b22fd064 /target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c | |
parent | 603bb2bb6eb39ac30cf4a71f3727bc15b4ee45a1 (diff) |
ar71xx: remove the built-in MTD maps of several boards
We are passing the MTD layout via the kernel command line, so
it makes no sense to duplicate it in mach-* files. The patch
removes the built-in MTD maps of the following boards:
* AP113
* ALFA N2/N5
* DIR-600
* DIR-615
* DIR-825
* TEW-6{3,5}2BRP
* TEW-673GRU
* WHR-G301N
* WHR-HP-GN
* WHR-HP-G300N
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31108 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c index 178815cf91..9b38faa47c 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ap113.c @@ -8,10 +8,6 @@ * by the Free Software Foundation. */ -#include <linux/mtd/mtd.h> -#include <linux/mtd/partitions.h> -#include <linux/spi/flash.h> - #include "dev-eth.h" #include "dev-gpio-buttons.h" #include "dev-leds-gpio.h" @@ -29,42 +25,6 @@ #define AP113_KEYS_POLL_INTERVAL 20 /* msecs */ #define AP113_KEYS_DEBOUNCE_INTERVAL (3 * AP113_KEYS_POLL_INTERVAL) -static struct mtd_partition ap113_parts[] = { - { - .name = "u-boot", - .offset = 0, - .size = 0x010000, - .mask_flags = MTD_WRITEABLE, - }, - { - .name = "rootfs", - .offset = 0x010000, - .size = 0x300000, - }, - { - .name = "uImage", - .offset = 0x300000, - .size = 0x3e0000, - }, - { - .name = "NVRAM", - .offset = 0x3e0000, - .size = 0x010000, - }, - { - .name = "ART", - .offset = 0x3f0000, - .size = 0x010000, - .mask_flags = MTD_WRITEABLE, - }, -}; -#define ap113_nr_parts ARRAY_SIZE(ap113_parts) - -static struct flash_platform_data ap113_flash_data = { - .parts = ap113_parts, - .nr_parts = ap113_nr_parts, -}; - static struct gpio_led ap113_leds_gpio[] __initdata = { { .name = "ap113:green:usb", @@ -98,7 +58,7 @@ static void __init ap113_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000); - ath79_register_m25p80(&ap113_flash_data); + ath79_register_m25p80(NULL); ath79_register_mdio(0, ~BIT(0)); ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0); |