Am Donnerstag, den 30.07.2020, 13:56 +0200 schrieb Stefan Roese: > From: Suneel Garapati <sgarap...@marvell.com> > > Adds support for SPI controllers found on Octeon II/III and Octeon TX > TX2 SoC platforms. > > Signed-off-by: Aaron Williams <awilli...@marvell.com> > Signed-off-by: Suneel Garapati <sgarap...@marvell.com> > Signed-off-by: Stefan Roese <s...@denx.de> > Cc: Daniel Schwierzeck <daniel.schwierz...@gmail.com> > Cc: Aaron Williams <awilli...@marvell.com> > Cc: Chandrakala Chavva <ccha...@marvell.com> > Cc: Jagan Teki <ja...@amarulasolutions.com> > > --- > > Changes in v3: > - Removed 2nd ops struct for Octeon TX2 and removed "const" from the > octeon_spi_ops declaration. This makes a more elegant switch to the > Octeon TX2 functions possible, as suggested by Daniel > - Remove driver_data struct, as its not needed. The distinction between > PCI based on non-PCI based probing can be made via a common Octeon TX > & TX2 DT property can be made. > > Changes in v2: > - Newly added to this series > - Removed inclusion of "common.h" > - Added "depends on DM_PCI" to Kconfig > - Tested on MIPS Octeon and ARM Octeon TX2 > - Fixed issues with Octeon TX2 registration. Now only one driver is > registered and the "ops" is overwritten in the Octeon TX2 case. > - Use dev_get_driver_data() to get the driver data struct > - Removed "struct pci_device_id" definition and U_BOOT_PCI_DEVICE() > as its not needed for the PCI based probing on Octeon TX2 > > drivers/spi/Kconfig | 8 + > drivers/spi/Makefile | 1 + > drivers/spi/octeon_spi.c | 615 +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 624 insertions(+) > create mode 100644 drivers/spi/octeon_spi.c > >
Reviewed-by: Daniel Schwierzeck <daniel.schwierz...@gmail.com> -- - Daniel