spi: cadence_qspi: support FIFO width other than 4 bytes
authorVikas Manocha <vikas.manocha@st.com>
Fri, 3 Jul 2015 01:29:45 +0000 (18:29 -0700)
committerJagan Teki <jteki@openedev.com>
Fri, 3 Jul 2015 08:20:53 +0000 (13:50 +0530)
commit70bb2b141573afd75cbc4b448e430814f3990b28
treec58a65b9f56e793f611f3ff4eee3cb73b048df5b
parent90a2f7171182f3b96c28b2dcff67b02a3164cdb1
spi: cadence_qspi: support FIFO width other than 4 bytes

This patch makes the code compatible with FIFO depths other than 4
bytes. It also simplify read/write FIFO loops.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Tested-by: Stefan Roese <sr@denx.de>
Reviewed-by: Jagannadh Teki <jteki@openedev.com>
drivers/spi/cadence_qspi_apb.c