summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/sf_ops.c
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-11 09:40:28 (GMT)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2014-01-11 09:40:28 (GMT)
commit4e09cc1e2c5d22735d0fa3d2d1eaecd27e19948e (patch)
tree756318d3d7b8fd0ba0512369cacb69f0922ed7ee /drivers/mtd/spi/sf_ops.c
parent12f00caf61677aca8f390651546f203575e20643 (diff)
downloadu-boot-4e09cc1e2c5d22735d0fa3d2d1eaecd27e19948e.tar.xz
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_ops.c')
-rw-r--r--drivers/mtd/spi/sf_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c
index e316a69..49ceef0 100644
--- a/drivers/mtd/spi/sf_ops.c
+++ b/drivers/mtd/spi/sf_ops.c
@@ -285,7 +285,7 @@ int spi_flash_cmd_read_ops(struct spi_flash *flash, u32 offset,
return 0;
}
- cmd[0] = CMD_READ_ARRAY_FAST;
+ cmd[0] = flash->read_cmd;
cmd[4] = 0x00;
while (len) {