Commit 07d67493 authored by Luis de Arquer's avatar Luis de Arquer Committed by Mark Brown
parent 5c018e37
...@@ -160,8 +160,7 @@ ...@@ -160,8 +160,7 @@
*/ */
#define ROCKCHIP_SPI_MAX_TRANLEN 0xffff #define ROCKCHIP_SPI_MAX_TRANLEN 0xffff
/* 2 for native cs, 2 for cs-gpio */ #define ROCKCHIP_SPI_MAX_NATIVE_CS_NUM 2
#define ROCKCHIP_SPI_MAX_CS_NUM 4
#define ROCKCHIP_SPI_VER2_TYPE1 0x05EC0002 #define ROCKCHIP_SPI_VER2_TYPE1 0x05EC0002
#define ROCKCHIP_SPI_VER2_TYPE2 0x00110002 #define ROCKCHIP_SPI_VER2_TYPE2 0x00110002
...@@ -839,7 +838,7 @@ static int rockchip_spi_probe(struct platform_device *pdev) ...@@ -839,7 +838,7 @@ static int rockchip_spi_probe(struct platform_device *pdev)
ctlr->target_abort = rockchip_spi_target_abort; ctlr->target_abort = rockchip_spi_target_abort;
} else { } else {
ctlr->flags = SPI_CONTROLLER_GPIO_SS; ctlr->flags = SPI_CONTROLLER_GPIO_SS;
ctlr->max_native_cs = ROCKCHIP_SPI_MAX_CS_NUM; ctlr->max_native_cs = ROCKCHIP_SPI_MAX_NATIVE_CS_NUM;
/* /*
* rk spi0 has two native cs, spi1..5 one cs only * rk spi0 has two native cs, spi1..5 one cs only
* if num-cs is missing in the dts, default to 1 * if num-cs is missing in the dts, default to 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment