spi: imx: introduce fifo_size and has_dmamode in spi_imx_devtype_data
authorjiada wang <jiada_wang@mentor.com>
Thu, 8 Jun 2017 05:16:00 +0000 (14:16 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2017 11:09:47 +0000 (12:09 +0100)
commitfd8d4e2d1f20e9a5dbbdb16ee9b594726a7c5a2d
tree73dc3126e084db0aeb749036c046368c02876ed6
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
spi: imx: introduce fifo_size and has_dmamode in spi_imx_devtype_data

Different ECSPI controller has different fifosize and DMA capability,
instead of calling functions to identify these information by check
devtype. add fifo_size and has_dmamode to spi_imx_devtype_data.
so that these information can be directly accessed.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c