bdk: manage host1x only in hw init

This commit is contained in:
CTCaer
2022-12-19 05:14:39 +02:00
parent 4da1d10553
commit d0b22bf374
4 changed files with 8 additions and 7 deletions

View File

@@ -415,6 +415,9 @@ void hw_init()
sdram_init();
bpmp_mmu_enable();
// Enable HOST1X used by every display module (DC, VIC, NVDEC, NVENC, TSEC, etc).
clock_enable_host1x();
}
void hw_reinit_workaround(bool coreboot, u32 bl_magic)
@@ -470,6 +473,7 @@ void hw_reinit_workaround(bool coreboot, u32 bl_magic)
break;
default:
display_end();
clock_disable_host1x();
}
// Enable clock to USBD and init SDMMC1 to avoid hangs with bad hw inits.