* Handle mapping of the flash memory access routines
* on TQM8xxL based devices.
*
- * $Id: tqm8xxl.c,v 1.9 2003/06/23 11:48:18 dwmw2 Exp $
+ * $Id: tqm8xxl.c,v 1.11 2004/07/12 21:59:45 dwmw2 Exp $
*
* based on rpxlite.c
*
static struct map_info* map_banks[FLASH_BANK_MAX];
static struct mtd_part_def part_banks[FLASH_BANK_MAX];
static unsigned long num_banks;
-static unsigned long start_scan_addr;
+static void __iomem *start_scan_addr;
/*
* Here are partition information for all known TQM8xxL series devices.
.name = "jffs",
.offset = 0x00200000,
.size = 0x00200000,
- .//size = MTDPART_SIZ_FULL,
+ //.size = MTDPART_SIZ_FULL,
}
};
#endif
flash_size = bd->bi_flashsize;
//request maximum flash size address space
- start_scan_addr = (unsigned long)ioremap(flash_addr, flash_size);
+ start_scan_addr = ioremap(flash_addr, flash_size);
if (!start_scan_addr) {
printk(KERN_WARNING "%s:Failed to ioremap address:0x%x\n", __FUNCTION__, flash_addr);
return -EIO;
sprintf(map_banks[idx]->name, "TQM8xxL%d", idx);
map_banks[idx]->size = flash_size;
- map_banks[idx]->buswidth = 4;
+ map_banks[idx]->bankwidth = 4;
simple_map_init(map_banks[idx]);
}
}
error:
- iounmap((void *)start_scan_addr);
+ iounmap(start_scan_addr);
return ret;
}
}
if (start_scan_addr) {
- iounmap((void *)start_scan_addr);
+ iounmap(start_scan_addr);
start_scan_addr = 0;
}
}