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:
parent
0fc956cd2d
commit
421c21c6cf
1 changed files with 6 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue