mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
spi: spi-rockchip-sfc: Support SFC_VER_9
Change-Id: I44b99cae8bbe1d23a48a65b5435456a070e76fca Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -122,6 +122,7 @@
|
||||
#define SFC_VER_5 0x5
|
||||
#define SFC_VER_6 0x6
|
||||
#define SFC_VER_8 0x8
|
||||
#define SFC_VER_9 0x9
|
||||
|
||||
/* Ext ctrl */
|
||||
#define SFC_EXT_CTRL 0x34
|
||||
@@ -999,6 +1000,8 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
|
||||
goto err_irq;
|
||||
|
||||
sfc->version = rockchip_sfc_get_version(sfc);
|
||||
if (sfc->version == SFC_VER_9)
|
||||
sfc->version = SFC_VER_6;
|
||||
sfc->max_iosize = rockchip_sfc_get_max_iosize(sfc);
|
||||
|
||||
master->mode_bits = SPI_TX_QUAD | SPI_TX_DUAL | SPI_RX_QUAD | SPI_RX_DUAL;
|
||||
|
||||
Reference in New Issue
Block a user