Hi Greg, Here is a patch for downloading xilinx fpga program image: * Download Xilinx FPGA image * This module downloads Xilinx FPGA image using gpio pins. ------------------------------------------------------------------------------ Patch checklist: ------------------------------------------------------------------------------ [x] run checkpatch [x] specify where to apply the patch [x] build test using "ppc64e_defconfig" [x] running test, running code is built with 3.8.13 kernel due to target specific kernel Thank you, Insop Song ------------------------------------------------------------------------------ 1. SUMMARY ------------------------------------------------------------------------------ * Download Xilinx FPGA image * This module downloads Xilinx FPGA image using gpio pins. ------------------------------------------------------------------------------ 1.b Patch is prepared at: ------------------------------------------------------------------------------ - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git - branch: staging-next - after 98e54917311609d29d4a0aae3a4a08f8ab502984 (latest as of when sending this) ------------------------------------------------------------------------------ 2. BACKGROUND ------------------------------------------------------------------------------ An FPGA (Field Programmable Gate Array) is a programmable hardware that is used in various applications. Hardware design needs to programmed through a dedicated device or CPU assisted way (serial or parallel). This driver provides a way to download FPGA image. ------------------------------------------------------------------------------ 3. DESIGN ------------------------------------------------------------------------------ * load Xilinx FPGA bitstream format[1] image using kernel firmware framework, request_firmware() * program the Xilinx FPGA using SelectMAP (parallel) mode [2] * FPGA prgram is done by gpio based bit-banging, as an example * platform independent file: gs_fpgaboot.c * platform dependent file: io.c ------------------------------------------------------------------------------ 4. HOW TO USE ------------------------------------------------------------------------------ $ insmod gs_fpga.ko file="xlinx_fpga_top_bitstream.bit" $ rmmod gs_fpga ------------------------------------------------------------------------------ 5. REFERENCE ------------------------------------------------------------------------------ 1. Xilinx APP NOTE XAPP583: http://www.xilinx.com/support/documentation/application_notes/xapp583-fpga-configuration.pdf 2. bitstream file info: http://home.earthlink.net/~davesullins/software/bitinfo.html Insop Song (1): Download Xilinx FPGA image drivers/staging/Kconfig | 2 + drivers/staging/Makefile | 1 + drivers/staging/gs_fpgaboot/Kconfig | 8 + drivers/staging/gs_fpgaboot/Makefile | 4 + drivers/staging/gs_fpgaboot/README | 60 ++++ drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 505 +++++++++++++++++++++++++++++ drivers/staging/gs_fpgaboot/gs_fpgaboot.h | 56 ++++ drivers/staging/gs_fpgaboot/io.c | 331 +++++++++++++++++++ drivers/staging/gs_fpgaboot/io.h | 90 +++++ 9 files changed, 1057 insertions(+) create mode 100644 drivers/staging/gs_fpgaboot/Kconfig create mode 100644 drivers/staging/gs_fpgaboot/Makefile create mode 100644 drivers/staging/gs_fpgaboot/README create mode 100644 drivers/staging/gs_fpgaboot/gs_fpgaboot.c create mode 100644 drivers/staging/gs_fpgaboot/gs_fpgaboot.h create mode 100644 drivers/staging/gs_fpgaboot/io.c create mode 100644 drivers/staging/gs_fpgaboot/io.h -- 1.7.9.5 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel