/* This function gets the u-boot flash sector protection status (flash_info_t.protect) in sync with the sector protection status stored in hardware.  */
static void flash_sync_real_protect(flash_info_t *info)
/* This function gets the u-boot flash sector protection status (flash_info_t.protect) in sync with the sector protection status stored in hardware.  */
static void flash_sync_real_protect(flash_info_t *info)
{
	int i;
	switch (info->flash_id & FLASH_TYPEMASK) {
	case FLASH_28F128J3A:
		for (i = 0; i < info->sector_count; ++i) {
			info->protect[i] = intel_sector_protected(info, i);
		}
		break;
	case FLASH_AM040:
	default:
		break;
	}
}