/* This implementation assumes that the flash chips are uniform sector devices. This is true for all likely JSE devices.  */
static void flash_get_offsets(ulong base, flash_info_t *info)
/* This implementation assumes that the flash chips are uniform sector devices. This is true for all likely JSE devices.  */
static void flash_get_offsets(ulong base, flash_info_t *info)
{
	unsigned idx;
	unsigned long sector_size = info->size / info->sector_count;
	for (idx = 0; idx < info->sector_count; idx += 1) {
		info->start[idx] = base + (idx * sector_size);
	}
}