
On Tue, Feb 16, 2016 at 09:00:28AM -0700, Simon Glass wrote:
On 11 February 2016 at 12:00, Jagan Teki jteki@openedev.com wrote:
After this conversion the driver will able to support both dm and non-dm and code is more extensible like we can remove the non-dm part simply without touching anycode if all the boards which are using this driver become dm driven.
Cc: Tom Rini trini@konsulko.com Cc: Simon Glass sjg@chromium.org Cc: Christophe Ricard christophe-h.ricard@st.com Signed-off-by: Jagan Teki jteki@openedev.com
drivers/spi/omap3_spi.c | 678 +++++++++++++++++++++++++++++------------------- 1 file changed, 407 insertions(+), 271 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org
Can CONFIG_OMAP3_SPI_D0_D1_SWAPPED be moved to device tree for the DM version?
Yes, there is already a binding for this: - ti,pindir-d0-out-d1-in: Select the D0 pin as output and D1 as input. The default is D0 as input and D1 as output.