brcm47xx: initialize mtd bankwidth to fix problems with DIR-320 and others (patch from #4729)

SVN-Revision: 15959
This commit is contained in:
Felix Fietkau 2009-05-21 12:01:44 +00:00
parent d21f38210a
commit 5e8a99b2b8

View File

@ -378,6 +378,7 @@ int __init init_bcm47xx_map(void)
printk("flash init: 0x%08x 0x%08x\n", window, window_size); printk("flash init: 0x%08x 0x%08x\n", window, window_size);
bcm47xx_map.phys = window; bcm47xx_map.phys = window;
bcm47xx_map.size = window_size; bcm47xx_map.size = window_size;
bcm47xx_map.bankwidth = mcore->flash_buswidth;
bcm47xx_map.virt = ioremap_nocache(window, window_size); bcm47xx_map.virt = ioremap_nocache(window, window_size);
#else #else
printk("flash init: 0x%08x 0x%08x\n", WINDOW_ADDR, WINDOW_SIZE); printk("flash init: 0x%08x 0x%08x\n", WINDOW_ADDR, WINDOW_SIZE);