Commit a021b2dd authored by André Przywara's avatar André Przywara Committed by TrustedFirmware Code Review
Browse files

Merge "allwinner: Disable NS access to PRCM power control registers" into integration

parents edd8188d 506ffe50
...@@ -39,8 +39,8 @@ void sunxi_security_setup(void) ...@@ -39,8 +39,8 @@ void sunxi_security_setup(void)
/* set MBUS clocks, bus clocks (AXI/AHB/APB) and PLLs to non-secure */ /* set MBUS clocks, bus clocks (AXI/AHB/APB) and PLLs to non-secure */
mmio_write_32(SUNXI_CCU_SEC_SWITCH_REG, 0x7); mmio_write_32(SUNXI_CCU_SEC_SWITCH_REG, 0x7);
/* set R_PRCM clocks to non-secure */ /* Set R_PRCM bus clocks to non-secure */
mmio_write_32(SUNXI_R_PRCM_BASE + R_PRCM_SEC_SWITCH_REG, 0x7); mmio_write_32(SUNXI_R_PRCM_BASE + R_PRCM_SEC_SWITCH_REG, 0x1);
/* Set all DMA channels (16 max.) to non-secure */ /* Set all DMA channels (16 max.) to non-secure */
mmio_write_32(SUNXI_DMA_BASE + DMA_SEC_REG, 0xffff); mmio_write_32(SUNXI_DMA_BASE + DMA_SEC_REG, 0xffff);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment