spi: fsl_qspi: Assign AMBA mem according CS num in dts
authorYuan Yao <yao.yuan@nxp.com>
Tue, 15 Mar 2016 06:36:41 +0000 (14:36 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 May 2016 15:51:06 +0000 (08:51 -0700)
commit4e14741833607f49eaccdfd4add9cb39e103c2db
tree21e2436a594e08a65518da149a263d5a285d10c6
parentbf9bffa9784411ba743b127adc031bcb6e27735d
spi: fsl_qspi: Assign AMBA mem according CS num in dts

QSPI controller automatic enable the chipselect signal according the
dest AMBA memory address. Now we distribute the AMBA memory zone
averagely to every chipselect slave device according chipselect
numbers got from dts node.

Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/spi/fsl_qspi.c