10 #include <linux/kernel.h>
11 #include <linux/export.h>
20 static const char *part_probe_types[] = {
22 #ifdef CONFIG_MTD_REDBOOT_PARTS
41 if (region_cfg.s.en) {
51 flash_map.name =
"phys_mapped_flash";
52 flash_map.phys = region_cfg.s.base << 16;
53 flash_map.size = 0x1fc00000 - flash_map.phys;
54 flash_map.bankwidth = 1;
55 flash_map.virt =
ioremap(flash_map.phys, flash_map.size);
56 pr_notice(
"Bootbus flash: Setting flash for %luMB flash at "
57 "0x%08llx\n", flash_map.size >> 20, flash_map.phys);
65 pr_err(
"Failed to register MTD device for flash\n");