Hi Pavel
Thanks for your reply.
I own the LS1043ARDB board.
How do I read/write into memory of FPGA or CPLD on the LS1043ARDB, from Linux application?
See the follwoing NXP community about CPLD reading/writing under Linux:
Thanks I've asked the question in the thread you mentioned.
I still wonder why isn't there an out-of-the-box driver for IFC bus?
I only found the fsl_ifc.c driver code but I don't understand how is it useful for accessing CPLD or SRAM for that matter on the LS1043ARDB reference board...
Do you have an example of using the CPLD on the LS1043ARDB?
If I understand correctly I need to
1. Use ioremap with the CPLD address from DTSI file.
2. Then use writeb or writew
I would appreciate if you can send both kernel driver and user space examples.
Thanks
Below is example for CPLD reading on the LS1043ARDB board under Linux:
root@TinyLinux:~# devmem
BusyBox v1.31.0 (2020-09-17 08:00:32 UTC) multi-call binary.
Usage: devmem ADDRESS [WIDTH [VALUE]]
root@TinyLinux:~# devmem 0x7fb00000 8
0x01
root@TinyLinux:~# devmem 0x7fb00001 8
0x04
root@TinyLinux:~# devmem 0x7fb00002 8
0x02
root@TinyLinux:~# devmem 0x7fb00003 8
0x00
root@TinyLinux:~# devmem 0x7fb0000f 8
0x01
root@TinyLinux:~#
How do I read say version number from CPLD on LS1043ARDB reference board?
How do I use the fcl_ifc driver to get virtual addresses?
Base address of CPLD on the LS1043ARDB board is 7fb00000.
See the Section 6,1 in the LS1043ARDB Reference Manual:
NXP offers the LS1043ARDB board:
There is the LS1043ARDB Reference Manual:
https://www.nxp.com/webapp/Download?colCode=LS1043ARDBRM
There is the LS1043ARDB schematic:
https://www.nxp.com/downloads/en/printed-circuit-boards/LS1043ARDB_PD-39019-DF.zip
Use this board as example for FPGA connection to the LS1043a.