mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user