hi3531的pcie atu资源重投射

hi3531的pcie atu资源重映射

1. 设置ATU 区域号寄存器为需要配置的地址转换区编号。
2. 设置ATU Region Lower Base Address Register 和ATU Region Upper Base Address
Register。(在此区域内的目标地址将由区域号寄存器所在的ATU 转换)
3. 设置ATU Region Limit Address Register。
4. 设置ATU Region Lower Target Address Register 和ATU Region Upper Target Address
Register。
5. 设置ATU Region Control 1 Register。
6. 设置ATU Region Control 2 Register 并使能此ATU Region.。

 

 /////////////////////////映射:map bar0 to 0xc000000//////////////////////

 HI_MPI_SYS_SetReg(0x20800900,0x80000000);

 

HI_MPI_SYS_SetReg(0x20800918,0xc0000000);

 

HI_MPI_SYS_SetReg(0x20800908,0xc0000000);

////////////////////////////////////////////////////////////////////////////////////////////////////////////