void
flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
{
void
flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
{
debug ("flash_protect %s: from 0x%08lX to 0x%08lX\n",
(flag & FLAG_PROTECT_SET) ? "ON" :
(flag & FLAG_PROTECT_CLEAR) ? "OFF" : "???",
debug ("flash_protect %s: from 0x%08lX to 0x%08lX\n",
(flag & FLAG_PROTECT_SET) ? "ON" :
(flag & FLAG_PROTECT_CLEAR) ? "OFF" : "???",
debug ("protect off %d\n", i);
}
else if (flag & FLAG_PROTECT_SET) {
debug ("protect off %d\n", i);
}
else if (flag & FLAG_PROTECT_SET) {
if (info->flash_id != FLASH_UNKNOWN &&
addr >= info->start[0] &&
/* WARNING - The '- 1' is needed if the flash
if (info->flash_id != FLASH_UNKNOWN &&
addr >= info->start[0] &&
/* WARNING - The '- 1' is needed if the flash