mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
brcm47xx: initialize mtd bankwidth to fix problems with DIR-320 and others (patch from #4729)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15959 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
eb5911f5a2
commit
77017f727c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user