We are going to attach an SRAM on the IFC interface of T1042 processor. I want to know how can we configure IFC in u-boot to support SRAM in addition to other NOR flashes already present on difference chip selects of IFC controller.
In addition to that, how can I access the SRAM afterwards in Linux? Is there any existing generic driver for SRAMs, do I need to write my own driver or can I access the memory mapped SRAM from /dev/mem in userspace? Which one of the mentioned three options is feasible?
Look at attached file it is .dts file for the T1042d4rdb board.
Find the localbus alias in this file.
See the AN5125 about changing the "ranges":
https://www.nxp.com/docs/en/application-note/AN5125.pdf
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------