aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-ap96.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-27 19:38:07 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-27 19:38:07 +0000
commitbc6cbb564450b22c7f5d98f1ee36140c7fae76a3 (patch)
tree469ca8fa428b87d0a826a281b9f3cad130607f07 /target/linux/ar71xx/files/arch/mips/ath79/mach-ap96.c
parent35c72f864eb82ea3a1d66723c277b558c4ac2cf3 (diff)
downloadmaster-187ad058-bc6cbb564450b22c7f5d98f1ee36140c7fae76a3.tar.gz
master-187ad058-bc6cbb564450b22c7f5d98f1ee36140c7fae76a3.tar.bz2
master-187ad058-bc6cbb564450b22c7f5d98f1ee36140c7fae76a3.zip
ar71xx: remove the built-in MTD map of the AP96 board
Pass the mtd_layout via the kernel command line instead. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31112 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-ap96.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-ap96.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-ap96.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ap96.c
index 9ab36cc1cb..35120d3e2e 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ap96.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ap96.c
@@ -11,8 +11,6 @@
*/
#include <linux/platform_device.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/partitions.h>
#include <linux/delay.h>
#include <asm/mach-ath79/ath79.h>
@@ -45,38 +43,6 @@
#define AP96_CALDATA0_OFFSET 0x1000
#define AP96_CALDATA1_OFFSET 0x5000
-static struct mtd_partition ap96_partitions[] = {
- {
- .name = "uboot",
- .offset = 0,
- .size = 0x030000,
- .mask_flags = MTD_WRITEABLE,
- }, {
- .name = "env",
- .offset = 0x030000,
- .size = 0x010000,
- .mask_flags = MTD_WRITEABLE,
- }, {
- .name = "rootfs",
- .offset = 0x040000,
- .size = 0x600000,
- }, {
- .name = "uImage",
- .offset = 0x640000,
- .size = 0x1b0000,
- }, {
- .name = "caldata",
- .offset = 0x7f0000,
- .size = 0x010000,
- .mask_flags = MTD_WRITEABLE,
- }
-};
-
-static struct flash_platform_data ap96_flash_data = {
- .parts = ap96_partitions,
- .nr_parts = ARRAY_SIZE(ap96_partitions),
-};
-
/*
* AP96 has 12 unlabeled leds in the front; these are numbered from 1 to 12
* below (from left to right on the board). Led 1 seems to be on whenever the
@@ -158,7 +124,7 @@ static void __init ap96_setup(void)
ath79_register_usb();
- ath79_register_m25p80(&ap96_flash_data);
+ ath79_register_m25p80(NULL);
ath79_register_leds_gpio(-1, ARRAY_SIZE(ap96_leds_gpio),
ap96_leds_gpio);