[U-Boot] [PATCH 3/3] spi: omap3: Convert to driver model

Tom Rini trini at konsulko.com
Tue Feb 16 17:28:45 CET 2016


On Tue, Feb 16, 2016 at 09:00:28AM -0700, Simon Glass wrote:
> On 11 February 2016 at 12:00, Jagan Teki <jteki at 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 at konsulko.com>
> > Cc: Simon Glass <sjg at chromium.org>
> > Cc: Christophe Ricard <christophe-h.ricard at st.com>
> > Signed-off-by: Jagan Teki <jteki at openedev.com>
> > ---
> >  drivers/spi/omap3_spi.c | 678 +++++++++++++++++++++++++++++-------------------
> >  1 file changed, 407 insertions(+), 271 deletions(-)
> 
> Reviewed-by: Simon Glass <sjg at 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.


-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160216/abdb7d7e/attachment.sig>


More information about the U-Boot mailing list