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)
downloadu-boot-imx-9e8e63cce69556aef10b58bcbc56d324f570ec3a.zip
u-boot-imx-9e8e63cce69556aef10b58bcbc56d324f570ec3a.tar.gz
u-boot-imx-9e8e63cce69556aef10b58bcbc56d324f570ec3a.tar.bz2
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 a412938..03ea2d0 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);