Create a Linux kernel driver to program and debug the Lattice MachXO2 used as routing fabrics in the AXIOM Beta.

The two MachXO2s are located on the AXIOM Beta Main Board and each of them has a PIC16 micro-controller attached which has full control over the JTAG interface as well as some other control lines. The PIC16s themselves are connected to the ZYNQ SoC on the MicroZed via I2C.

Currently the both MachXO2 are 'programmed' with a python script which takes some time and doesn't allow easy update and development for those relatively important FPGAs. A Linux kernel driver would not just speed up things but also allow to test and even debug new code easily.