|
@@ -51,7 +51,8 @@ static int __init flash_init(void)
|
|
|
flash_map.name = "phys_mapped_flash";
|
|
|
flash_map.phys = region_cfg.s.base << 16;
|
|
|
flash_map.size = 0x1fc00000 - flash_map.phys;
|
|
|
- flash_map.bankwidth = 1;
|
|
|
+ /* 8-bit bus (0 + 1) or 16-bit bus (1 + 1) */
|
|
|
+ flash_map.bankwidth = region_cfg.s.width + 1;
|
|
|
flash_map.virt = ioremap(flash_map.phys, flash_map.size);
|
|
|
pr_notice("Bootbus flash: Setting flash for %luMB flash at "
|
|
|
"0x%08llx\n", flash_map.size >> 20, flash_map.phys);
|