hos: Hold more devices in Reset for secmon launch

This commit is contained in:
CTCaer 2020-08-15 12:31:44 +03:00
parent 78c4e6510d
commit 15b46ddb27

View file

@ -1057,8 +1057,9 @@ int hos_launch(ini_sec_t *cfg)
// Clear EMC_SCRATCH0. // Clear EMC_SCRATCH0.
EMC(EMC_SCRATCH0) = 0; EMC(EMC_SCRATCH0) = 0;
// Hold USBD in reset for SoC state validation on sleep. // Hold USBD, USB2, AHBDMA and APBDMA in reset for SoC state validation on sleep.
CLOCK(CLK_RST_CONTROLLER_RST_DEV_L_SET) = BIT(CLK_L_USBD); CLOCK(CLK_RST_CONTROLLER_RST_DEV_L_SET) = BIT(CLK_L_USBD);
CLOCK(CLK_RST_CONTROLLER_RST_DEV_H_SET) = BIT(CLK_H_AHBDMA) | BIT(CLK_H_APBDMA) | BIT(CLK_H_USB2);
// Flush cache and disable MMU. // Flush cache and disable MMU.
bpmp_mmu_disable(); bpmp_mmu_disable();