06 Apr, 2013
1 commit
-
Use the wrapper functions for getting and setting the driver data using
spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we
can directly pass a struct spi_device.Signed-off-by: Jingoo Han
Signed-off-by: Greg Kroah-Hartman
18 Jan, 2013
2 commits
-
These are now removed from the kernel, so remove them to allow the
driver to build properly.Cc: Stefan Roese
Signed-off-by: Greg Kroah-Hartman -
This patch adds support for bitstream configuration (programming /
loading) of the Lattice ECP3 FPGA's via the SPI bus.Here an example on my custom MPC5200 based board:
$ echo 1 > /sys/class/firmware/spi0.0/loading
$ cat fpga_a4m2k.bit > /sys/class/firmware/spi0.0/data
$ echo 0 > /sys/class/firmware/spi0.0/loadingleads to these messages:
lattice-ecp3 spi0.0: FPGA Lattice ECP3-35 detected
lattice-ecp3 spi0.0: Configuring the FPGA...
lattice-ecp3 spi0.0: FPGA succesfully configured!Signed-off-by: Stefan Roese
Acked-by: Ming Lei
Reviewed-by: Grant Likely
Cc: Arnd Bergmann
Signed-off-by: Greg Kroah-Hartman