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);
////////////////////////////////////////////////////////////////////////////////////////////////////////////
最後更新:2017-04-03 08:26:12