* [U-Boot] [PATCH] sf: Make IO modes at last in read modes
@ 2015-12-28 12:20 Jagan Teki
2015-12-29 6:29 ` Bin Meng
0 siblings, 1 reply; 2+ messages in thread
From: Jagan Teki @ 2015-12-28 12:20 UTC (permalink / raw)
To: u-boot
SLOW, FAST, DUAL, DUAL_IO, QUAD, QUAD_IO changed order to
SLOW, FAST, DUAL, QUAD, DUAL_IO, QUAD_IO
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>
Tested-by: Jagan Teki <jteki@openedev.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
---
drivers/mtd/spi/sf_internal.h | 4 ++--
drivers/mtd/spi/spi_flash.c | 2 +-
include/spi.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h
index 55ba81e..007a5a0 100644
--- a/drivers/mtd/spi/sf_internal.h
+++ b/drivers/mtd/spi/sf_internal.h
@@ -25,8 +25,8 @@ enum spi_read_cmds {
ARRAY_SLOW = BIT(0),
ARRAY_FAST = BIT(1),
DUAL_OUTPUT_FAST = BIT(2),
- DUAL_IO_FAST = BIT(3),
- QUAD_OUTPUT_FAST = BIT(4),
+ QUAD_OUTPUT_FAST = BIT(3),
+ DUAL_IO_FAST = BIT(4),
QUAD_IO_FAST = BIT(5),
};
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index 691be1a..e92f729 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -975,8 +975,8 @@ int spi_flash_scan(struct spi_flash *flash)
CMD_READ_ARRAY_SLOW,
CMD_READ_ARRAY_FAST,
CMD_READ_DUAL_OUTPUT_FAST,
- CMD_READ_DUAL_IO_FAST,
CMD_READ_QUAD_OUTPUT_FAST,
+ CMD_READ_DUAL_IO_FAST,
CMD_READ_QUAD_IO_FAST };
/* Read the ID codes */
diff --git a/include/spi.h b/include/spi.h
index 803fb40..d09c901 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -105,7 +105,7 @@ struct spi_slave {
#define SPI_RX_SLOW BIT(0) /* receive with 1 wire slow */
#define SPI_RX_FAST BIT(1) /* receive with 1 wire fast */
#define SPI_RX_DUAL BIT(2) /* receive with 2 wires */
-#define SPI_RX_QUAD BIT(4) /* receive with 4 wires */
+#define SPI_RX_QUAD BIT(3) /* receive with 4 wires */
unsigned int wordlen;
unsigned int max_write_size;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] sf: Make IO modes at last in read modes
2015-12-28 12:20 [U-Boot] [PATCH] sf: Make IO modes at last in read modes Jagan Teki
@ 2015-12-29 6:29 ` Bin Meng
0 siblings, 0 replies; 2+ messages in thread
From: Bin Meng @ 2015-12-29 6:29 UTC (permalink / raw)
To: u-boot
On Mon, Dec 28, 2015 at 8:20 PM, Jagan Teki <jteki@openedev.com> wrote:
> SLOW, FAST, DUAL, DUAL_IO, QUAD, QUAD_IO changed order to
> SLOW, FAST, DUAL, QUAD, DUAL_IO, QUAD_IO
>
> 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>
> Tested-by: Jagan Teki <jteki@openedev.com>
> Signed-off-by: Jagan Teki <jteki@openedev.com>
> ---
> drivers/mtd/spi/sf_internal.h | 4 ++--
> drivers/mtd/spi/spi_flash.c | 2 +-
> include/spi.h | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-29 6:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-28 12:20 [U-Boot] [PATCH] sf: Make IO modes at last in read modes Jagan Teki
2015-12-29 6:29 ` Bin Meng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.