14 #include <linux/kernel.h>
33 static const char *bcm63xx_part_types[] = {
"bcm63xxpart",
NULL };
37 .parts = mtd_partitions,
38 .part_probe_types = bcm63xx_part_types,
41 static struct resource mtd_resources[] = {
50 .name =
"physmap-flash",
51 .resource = mtd_resources,
54 .platform_data = &flash_data,
58 static int __init bcm63xx_detect_flash_type(
void)
62 switch (bcm63xx_get_cpu_id()) {
100 flash_type = bcm63xx_detect_flash_type();
102 switch (flash_type) {
109 mtd_resources[0].
end = 0x1FFFFFFF;
113 pr_warn(
"unsupported serial flash detected\n");
116 pr_warn(
"unsupported NAND flash detected\n");
119 pr_err(
"flash detection failed for BCM%x: %d\n",
120 bcm63xx_get_cpu_id(), flash_type);