Hi jingyang
m4 can use eim in the same manner as a9, only
from m4 side module addresses can be different, use Table 2-2. CM4
memory map i.MX6SX Reference Manual
http://www.nxp.com/docs/en/reference-manual/IMX6SXRM.pdf
dts file with eim
linux-imx.git - i.MX Linux Kernel
modules which may conflict with eim should be disabled in a9 dts
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,igor
I want both a9 and M4 can access fpga,can this do?
yes it is possible, please check permissions defined in
rdc, described in Chapter 52 Resource Domain Controller (RDC)
i.MX6SX Reference Manual.
Best regards
igor
Hi,igor
what the address I can use to access EIM on M4,when on A9,I can use mmap() to map the 0x50000000(EIM addr) to 0(virtual addr),how can this do on M4?
one can look at m4 qspi examples in i.MX7D FreeRTOS, for eim this
should be the same only with different addresses
Board Support Packages (3)
FreeRTOS_iMX7D_1.0.1_LINUX
https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applicatio...
Best regards
igor
Hi,igor
does this mean that the EIM should be enabled in uboot?the qspi examples in i.MX7D FreeRTOS say that " To start this demo, the QSPI Flash in U-Boot should be enabled." if so ,I should configure EIM pins and clock in uboot? that's very strange,I think M4 can access EIM not only in uboot system startup,is this right?
you are right eim can be configured later, in linux.
Best regards
igor
Hi,igor
I'm a little confused. Is there any specific solution for M4 accessing EIM? For example, like A9, first configuring the pin function, then configuring the clock, configuring control registers (EIM_CSnGCR1, EIM_CSnGCR2, EIM_CSnRCR1...), and finally making memory mapping (mmap) to access EIM.
17702710280@163.com
Hi,igor
I have read the 6sx RM,I have some questions:
what does this mean? and does it have anything to do with EIM memory (0x50000000-0x57FFFFFF)?
If I want use function(RDC_SetMrAccess(RDC_Type * base, uint32_t mr, uint32_t startAddr, uint32_t endAddr,
uint8_t perm, bool enable, bool lock) on M4 to access EIM(FPGA),how can I choose the startAddr and endAddr?