aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-11 15:56:34 +0000
committerJohn Crispin <blogic@openwrt.org>2015-03-11 15:56:34 +0000
commiteea98d126ce590ed304b74b3828cfbea19583426 (patch)
tree6e31b470d2d577aeed366ceda1c74e49d1518997 /target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c
parenta8a374fe68b6c6383a60fc3e04bed0c01623347c (diff)
downloadmaster-187ad058-eea98d126ce590ed304b74b3828cfbea19583426.tar.gz
master-187ad058-eea98d126ce590ed304b74b3828cfbea19583426.tar.bz2
master-187ad058-eea98d126ce590ed304b74b3828cfbea19583426.zip
ar71xx: improve WD's My Net Wi-fi Range Extender image creation
Previously, the generated images for the My Net Wi-fi Range Extender wouldn't always work (and panic) due to the fixed mtd offsets and sizes for the kernel and rootfs. This patch fixes the problem by utilizing the shared Cybertan's partition parser to recalculate the mtd partitions for every image dynamically everytime. Reported-by: Pascal Paradis <peparadis@yahoo.com> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44665 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c
index a3deed5baf..02d168ef4b 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c
@@ -55,6 +55,16 @@
#define MYNET_REXT_ART_ADDR 0x1f7f0000
+static const char *mynet_rext_part_probes[] = {
+ "cybertan",
+ NULL,
+};
+
+static struct flash_platform_data mynet_rext_flash_data = {
+ .type = "s25fl064k",
+ .part_probes = mynet_rext_part_probes,
+};
+
static struct gpio_led mynet_rext_leds_gpio[] __initdata = {
{
.name = "wd:blue:power",
@@ -130,7 +140,7 @@ static void __init mynet_rext_setup(void)
u8 *art = (u8 *) KSEG1ADDR(MYNET_REXT_ART_ADDR);
u8 tmpmac[ETH_ALEN];
- ath79_register_m25p80(NULL);
+ ath79_register_m25p80(&mynet_rext_flash_data);
/* GPIO configuration from drivers/char/GPIO8.c */