evm提供的gel文件中有一段XMC的配置代码:
#define XMPAX2_L (*(int*)(0x08000000 + 0x00000010))
#define XMPAX2_H (*(int*)(0x08000000 + 0x00000014))
xmc_setup()
{
/* mapping for ddr emif registers XMPAX*2 */
XMPAX2_L = 0x100000FF; /* replacement addr + permission fo segment*/
XMPAX2_H = 0x2100000B; /* base addr + seg size (4KB)*/
}
请问:这个XMPAX2起什么作用?
谢谢。
Andy Yin1:
将DDR EMIF的配置寄存器地址0x21000000开始的4KB映射到逻辑地址0x1000000000。