summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-05-21 12:01:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-05-21 12:01:44 +0000
commit5e8a99b2b817c393b9f1833484ccfed2f5ee373f (patch)
tree175223b2327507a488e33578d8a605309817d16a /target
parentd21f38210aefa9ce3005540b1a3ee079633935b6 (diff)
downloadmaster-31e0f0ae-5e8a99b2b817c393b9f1833484ccfed2f5ee373f.tar.gz
master-31e0f0ae-5e8a99b2b817c393b9f1833484ccfed2f5ee373f.tar.bz2
master-31e0f0ae-5e8a99b2b817c393b9f1833484ccfed2f5ee373f.zip
brcm47xx: initialize mtd bankwidth to fix problems with DIR-320 and others (patch from #4729)
SVN-Revision: 15959
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c b/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c
index 118d4c4fc1..3ceec403cf 100644
--- a/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c
+++ b/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c
@@ -378,6 +378,7 @@ int __init init_bcm47xx_map(void)
printk("flash init: 0x%08x 0x%08x\n", window, window_size);
bcm47xx_map.phys = window;
bcm47xx_map.size = window_size;
+ bcm47xx_map.bankwidth = mcore->flash_buswidth;
bcm47xx_map.virt = ioremap_nocache(window, window_size);
#else
printk("flash init: 0x%08x 0x%08x\n", WINDOW_ADDR, WINDOW_SIZE);