summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/sf_internal.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-11 15:10:28 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-11 15:10:28 +0530
commit4e09cc1e2c5d22735d0fa3d2d1eaecd27e19948e (patch)
tree756318d3d7b8fd0ba0512369cacb69f0922ed7ee /drivers/mtd/spi/sf_internal.h
parent12f00caf61677aca8f390651546f203575e20643 (diff)
downloadu-boot-imx-4e09cc1e2c5d22735d0fa3d2d1eaecd27e19948e.zip
u-boot-imx-4e09cc1e2c5d22735d0fa3d2d1eaecd27e19948e.tar.gz
u-boot-imx-4e09cc1e2c5d22735d0fa3d2d1eaecd27e19948e.tar.bz2
sf: Add extended read commands support
Current sf uses FAST_READ command, this patch adds support to use the different/extended read command. This implementation will determine the fastest command by taking the supported commands from the flash and the controller, controller is always been a priority. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'drivers/mtd/spi/sf_internal.h')
-rw-r--r--drivers/mtd/spi/sf_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h
index d291746..938a78e 100644
--- a/drivers/mtd/spi/sf_internal.h
+++ b/drivers/mtd/spi/sf_internal.h
@@ -36,6 +36,8 @@
/* Read commands */
#define CMD_READ_ARRAY_SLOW 0x03
#define CMD_READ_ARRAY_FAST 0x0b
+#define CMD_READ_DUAL_OUTPUT_FAST 0x3b
+#define CMD_READ_DUAL_IO_FAST 0xbb
#define CMD_READ_ID 0x9f
/* Bank addr access commands */