summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/sf_internal.h
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2016-08-08 16:50:45 +0530
committerJagan Teki <jagannadh.teki@gmail.com>2016-09-22 01:02:28 +0530
commitedd35f712ec74f7d34702ba891d8e1fdc8a9955f (patch)
tree4156c2d28e008086d0144a79b48ece94e3dc0f10 /drivers/mtd/spi/sf_internal.h
parent28b69f64886c89d463ebe380f87f858f7362be36 (diff)
downloadu-boot-imx-edd35f712ec74f7d34702ba891d8e1fdc8a9955f.zip
u-boot-imx-edd35f712ec74f7d34702ba891d8e1fdc8a9955f.tar.gz
u-boot-imx-edd35f712ec74f7d34702ba891d8e1fdc8a9955f.tar.bz2
sf: Simplify fastest read cmd code
Fastest read command code look for fastest read command taking inputs from spi->mode_rx and flags from param table and controller mode_rx is always been a priority. Since mode_rx is always set from controller side this optimized code doesn't require much and this code required exctra overhead like 1) Maintain e_rx_cmd in param table 2) Maintain mode_rx in spi_slave {} Hence removed this code, and look for read command from normal spi->mode from spi_slave{} and params->flags Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Cc: Vignesh R <vigneshr@ti.com> Cc: Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/mtd/spi/sf_internal.h')
-rw-r--r--drivers/mtd/spi/sf_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h
index da2bb7b..c5cb791 100644
--- a/drivers/mtd/spi/sf_internal.h
+++ b/drivers/mtd/spi/sf_internal.h
@@ -46,6 +46,10 @@ enum {
E_FSR = BIT(2),
SST_WR = BIT(3),
WR_QPP = BIT(4),
+ RD_QUAD = BIT(5),
+ RD_DUAL = BIT(6),
+ RD_QUADIO = BIT(7),
+ RD_DUALIO = BIT(8),
};
enum spi_nor_option_flags {