On Sat, Apr 04, 2020 at 12:14:33PM -0700, Andrey Smirnov wrote: > On Wed, Mar 25, 2020 at 1:36 AM Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> wrote: > > > > The fsl-dspi is found on Freescale Vybrid, Coldfire and Layerscape SoCs. > > This adds the driver based on the Linux driver as of v5.5. Coldfire > > support has been dropped as it's rather obsolete. Vybrid support has > > been dropped because it needs the DMA engine support we do not have in > > barebox. What's left is support for Layerscape where this driver has > > been tested on. > > > > Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> > > --- > > drivers/spi/Kconfig | 7 + > > drivers/spi/Makefile | 1 + > > drivers/spi/spi-fsl-dspi.c | 655 +++++++++++++++++++++++++++++++++++++ > > 3 files changed, 663 insertions(+) > > create mode 100644 drivers/spi/spi-fsl-dspi.c > > > > diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig > > index 3758a0fad9..96235a1be2 100644 > > --- a/drivers/spi/Kconfig > > +++ b/drivers/spi/Kconfig > > @@ -44,6 +44,13 @@ config DRIVER_SPI_FSL_QUADSPI > > This controller does not support generic SPI messages. It only > > supports the high-level SPI memory interface. > > > > +config SPI_FSL_DSPI > > + bool "Freescale DSPI controller" > > + depends on ARCH_LAYERSCAPE > > + help > > + This enables support for the Freescale DSPI controller in master > > + mode. VF610, LS1021A and ColdFire platforms uses the controller. > > Sorry I didn't notice this patch earlier. Maybe we should drop the > wording about VF610 here since there a separate DSPI driver for Vybrid > as well: https://git.pengutronix.de/cgit/barebox/tree/drivers/spi/Kconfig?h=next#n90 So there already is a driver for this hardware in barebox. I missed that :( I dropped the wording about VF610 for now, but the real solution should be to use the existing driver or at least merge them. I'll see when and if I can find time for this. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox