/* Manufacturer-specific quirks. Add workarounds for geometry reversal, etc. here.  */
static void flash_fixup_amd(flash_info_t *info, struct cfi_qry *qry)
/* Manufacturer-specific quirks. Add workarounds for geometry reversal, etc. here.  */
static void flash_fixup_amd(flash_info_t *info, struct cfi_qry *qry)
{
	if (qry->num_erase_regions > 1) {
		if (info->cfi_version < 0x3131) {
			if ((info->device_id & 0x80) != 0)
				cfi_reverse_geometry(qry);
		} else if (flash_read_uchar(info, info->ext_addr + 0xf) == 3) {
			cfi_reverse_geometry(qry);
		}
	}
}