diff options
author | Stefan Roese <sr@denx.de> | 2012-12-07 03:06:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 13:25:03 -0500 |
commit | 781551df57c792aee291cd80a6aca24cd56cdd71 (patch) | |
tree | 0d50fddf9e87033b260a9aeec19f98d87798a9e0 /drivers/misc/Kconfig | |
parent | 93ce83b6e0ffe8d48dae46bc0983dd3f01ec7e32 (diff) |
misc: Add Lattice ECP3 FPGA configuration via SPI
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/loading
leads 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 <sr@denx.de>
Acked-by: Ming Lei <ming.lei@canonical.com>
Reviewed-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r-- | drivers/misc/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 264e647413b5..3ec3f9ece9d9 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
@@ -499,6 +499,17 @@ config USB_SWITCH_FSA9480 | |||
499 | stereo and mono audio, video, microphone and UART data to use | 499 | stereo and mono audio, video, microphone and UART data to use |
500 | a common connector port. | 500 | a common connector port. |
501 | 501 | ||
502 | config LATTICE_ECP3_CONFIG | ||
503 | tristate "Lattice ECP3 FPGA bitstream configuration via SPI" | ||
504 | depends on SPI && SYSFS | ||
505 | select FW_LOADER | ||
506 | default n | ||
507 | help | ||
508 | This option enables support for bitstream configuration (programming | ||
509 | or loading) of the Lattice ECP3 FPGA family via SPI. | ||
510 | |||
511 | If unsure, say N. | ||
512 | |||
502 | source "drivers/misc/c2port/Kconfig" | 513 | source "drivers/misc/c2port/Kconfig" |
503 | source "drivers/misc/eeprom/Kconfig" | 514 | source "drivers/misc/eeprom/Kconfig" |
504 | source "drivers/misc/cb710/Kconfig" | 515 | source "drivers/misc/cb710/Kconfig" |