soc/qc/x1p42100: Perform soc_mmu_init inside early bootblock init
This commit introduces `bootblock_soc_early_init` API for early SoC initialization sequence in the bootblock. - `bootblock_soc_early_init()`: This function now handles very early initialization steps (before console init), specifically `soc_mmu_init()` when the bootblock is not compressed. - `bootblock_soc_init()`: This function retains the subsequent initialization tasks including `clock_init()`, `quadspi_init()`, and `qupv3_fw_init()`. This change ensures MMU setup to occur before other peripheral and clock initializations. TEST=Able to get bootblock console log in proper. Change-Id: I8bbcdb9c39e13fac81ef6a34647c4f343a619561 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/87857 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Pranava Y N <pranavayn@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
parent
481001e13b
commit
a5d99a814a
1 changed files with 6 additions and 2 deletions
|
|
@ -7,11 +7,15 @@
|
|||
|
||||
#define SPI_BUS_CLOCK_FREQ (50 * MHz)
|
||||
|
||||
void bootblock_soc_early_init(void)
|
||||
{
|
||||
if (!CONFIG(COMPRESS_BOOTBLOCK))
|
||||
soc_mmu_init();
|
||||
}
|
||||
|
||||
void bootblock_soc_init(void)
|
||||
{
|
||||
clock_init();
|
||||
if (!CONFIG(COMPRESS_BOOTBLOCK))
|
||||
soc_mmu_init();
|
||||
|
||||
quadspi_init(SPI_BUS_CLOCK_FREQ);
|
||||
qupv3_fw_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue