summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNick Spence <nick.spence@freescale.com>2008-08-19 22:21:16 -0700
committerStefan Roese <sr@denx.de>2008-08-20 14:24:08 +0200
commit9e8e63cce69556aef10b58bcbc56d324f570ec3a (patch)
tree82982190ca5a50dbc6fa5d20d31415fde8b79448 /drivers
parent4e00acded2e6a8d663e12690a0f0f08f5bec5a58 (diff)
CFI: Add CFI_CMDSET_INTEL_EXTENDED to fix flash_real_protect()
This patch fixes a missing vendor code in the flash_real_protect() function. Signed-off-by: Nick Spence <nick.spence@freescale.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/cfi_flash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index a41293871e2..03ea2d040d7 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -1357,6 +1357,7 @@ int flash_real_protect (flash_info_t * info, long sector, int prot)
switch (info->vendor) {
case CFI_CMDSET_INTEL_PROG_REGIONS:
case CFI_CMDSET_INTEL_STANDARD:
+ case CFI_CMDSET_INTEL_EXTENDED:
flash_write_cmd (info, sector, 0,
FLASH_CMD_CLEAR_STATUS);
flash_write_cmd (info, sector, 0, FLASH_CMD_PROTECT);