soc/qualcomm/calypso: Initialize QSPI and QUPv3 in bootblock

The bootblock requires early initialization of the Quad-SPI (QSPI)
controller to enable reading firmware from flash memory.

This commit adds calls to `quadspi_init()` with a 75 MHz bus clock
and `qupv3_fw_init()` within `bootblock_soc_init()`. This ensures
that the essential hardware for flash access and related QUPv3
functions are properly configured during the boot process.

BUG=b:496650089
TEST=Able to build google/mensa.

Change-Id: I225485cf601c62b1ba695eb61f786a1360790f41
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91903
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Subrata Banik 2026-03-28 06:58:29 +00:00
commit 421c21c6cf

View file

@ -2,6 +2,10 @@
#include <bootblock_common.h>
#include <soc/mmu.h>
#include <soc/qspi_common.h>
#include <soc/qupv3_config_common.h>
#define SPI_BUS_CLOCK_FREQ (75 * MHz)
void bootblock_soc_early_init(void)
{
@ -11,5 +15,6 @@ void bootblock_soc_early_init(void)
void bootblock_soc_init(void)
{
/* Placeholder */
quadspi_init(SPI_BUS_CLOCK_FREQ);
qupv3_fw_init();
}