diff options
author | Jagan Teki <jteki@openedev.com> | 2016-08-08 17:12:12 +0530 |
---|---|---|
committer | Jagan Teki <jagannadh.teki@gmail.com> | 2016-09-22 01:02:28 +0530 |
commit | 08fe9c294f2d699a4e8b6b18e31169a89552f967 (patch) | |
tree | 43fa8d209a81be053746f45a334f75c5c884808f /drivers/spi/ich.c | |
parent | b3afb232f7853d078ae0f533a7af70e0b047fe18 (diff) | |
download | u-boot-imx-08fe9c294f2d699a4e8b6b18e31169a89552f967.zip u-boot-imx-08fe9c294f2d699a4e8b6b18e31169a89552f967.tar.gz u-boot-imx-08fe9c294f2d699a4e8b6b18e31169a89552f967.tar.bz2 |
spi: Use mode for rx mode flags
Make rx mode flags as generic to spi, earlier mode_rx is
maintained separately because of some flash specific code.
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/spi/ich.c')
-rw-r--r-- | drivers/spi/ich.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 00b2fed..caf0103 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -649,10 +649,8 @@ static int ich_spi_child_pre_probe(struct udevice *dev) * ICH 7 SPI controller only supports array read command * and byte program command for SST flash */ - if (plat->ich_version == ICHV_7) { - slave->mode_rx = SPI_RX_SLOW; - slave->mode = SPI_TX_BYTE; - } + if (plat->ich_version == ICHV_7) + slave->mode = SPI_RX_SLOW | SPI_TX_BYTE; return 0; } |