]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
CFI: Add CFI_CMDSET_INTEL_EXTENDED to fix flash_real_protect()
authorNick Spence <nick.spence@freescale.com>
Wed, 20 Aug 2008 05:21:16 +0000 (22:21 -0700)
committerStefan Roese <sr@denx.de>
Wed, 20 Aug 2008 12:24:08 +0000 (14:24 +0200)
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>
drivers/mtd/cfi_flash.c

index a41293871e236ec284ce4e0ccbe21007184cf2e8..03ea2d040d7a3fda49cb6403b4f37e20b55a32bc 100644 (file)
@@ -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);