summaryrefslogtreecommitdiffstats
path: root/include/mtd
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2010-10-25 18:31:48 +0200
committerStefan Roese <sr@denx.de>2010-12-17 09:56:05 +0100
commit6f726f9584eb19e7bcef435eef8b3f8a0838e6e0 (patch)
treeab5d4680f6bfd619e0b7a00fb188f779fc399c74 /include/mtd
parent4d2ca9d6a0452edeaf5922cbae3b939974114214 (diff)
downloadbootable_bootloader_goldelico_gta04-6f726f9584eb19e7bcef435eef8b3f8a0838e6e0.zip
bootable_bootloader_goldelico_gta04-6f726f9584eb19e7bcef435eef8b3f8a0838e6e0.tar.gz
bootable_bootloader_goldelico_gta04-6f726f9584eb19e7bcef435eef8b3f8a0838e6e0.tar.bz2
cfi_flash: Add optional config register write to cfi-detection
This patch adds the possibility to (optinally) write to the flash configuration register. The Intel style CFI chips support such a register that can be used to configure the operation mode to a non-default value. This method will be used by the t3corp board, which needs to configure the DS617 Xilinx flash for async read mode. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/mtd')
-rw-r--r--include/mtd/cfi_flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mtd/cfi_flash.h b/include/mtd/cfi_flash.h
index 2ff00f2..3245b44 100644
--- a/include/mtd/cfi_flash.h
+++ b/include/mtd/cfi_flash.h
@@ -32,6 +32,8 @@
#define FLASH_CMD_ERASE_CONFIRM 0xD0
#define FLASH_CMD_WRITE 0x40
#define FLASH_CMD_PROTECT 0x60
+#define FLASH_CMD_SETUP 0x60
+#define FLASH_CMD_SET_CR_CONFIRM 0x03
#define FLASH_CMD_PROTECT_SET 0x01
#define FLASH_CMD_PROTECT_CLEAR 0xD0
#define FLASH_CMD_CLEAR_STATUS 0x50