mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-10 04:21:45 +00:00
hos: Hold more devices in Reset for secmon launch
This commit is contained in:
parent
78c4e6510d
commit
15b46ddb27
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue