Manage LX16 and LX45 at runtime
We have a product based on MityDSP-L138F using either LX16 and LX45 fpga cores.
Q1) Can we detect which FPGA core is running at runtime from Linux?
Q2) Is program_fpga.sh script and fpga_ctrl.ko module are able to handle both at runtime?
RE: Manage LX16 and LX45 at runtime - Added by Michael Williamson almost 8 years ago
The model number for the part should be readable in the factory configuration information in the I2C prom. The model number includes a letter code for the FPGA type for the SOM. There is a factoryconfig utility program that can be run in linux to get the FPGA type or you can read the information off of the I2C prom directly using the correct MTD device. Source for the factoryconfig program should be included in the MDK and the executable should be included with the reference filesystems.
The programming script and the control module can be used to program either FPGA if provided with the correct programming bitstream.