From 481001e13b5b0c22d5bb8b88cd65d561c0110f01 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 27 May 2025 03:47:13 +0000 Subject: [PATCH] soc/qualcomm/x1p42100: Add placeholder for early clock initialization This commit adds the `clock_init()` function for the Qualcomm x1p42100 SoC. This function is now called at the beginning of `bootblock_soc_init()` to enable SoC-specific clock setup early in the boot process. The `clock_init()` function definition is currently a placeholder and will be populated with the required clock configurations in subsequent changes. BUG=b:404985109 TEST=Able to build google/bluey Change-Id: Ifb856ea4132def9cd3a36b081d24037a1a4efaba Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/87850 Reviewed-by: Pranava Y N Reviewed-by: Kapil Porwal Tested-by: build bot (Jenkins) --- src/soc/qualcomm/x1p42100/bootblock.c | 1 + src/soc/qualcomm/x1p42100/clock.c | 5 +++++ src/soc/qualcomm/x1p42100/include/soc/clock.h | 1 + 3 files changed, 7 insertions(+) diff --git a/src/soc/qualcomm/x1p42100/bootblock.c b/src/soc/qualcomm/x1p42100/bootblock.c index 32a958b687..c6d8b9e4c5 100644 --- a/src/soc/qualcomm/x1p42100/bootblock.c +++ b/src/soc/qualcomm/x1p42100/bootblock.c @@ -9,6 +9,7 @@ void bootblock_soc_init(void) { + clock_init(); if (!CONFIG(COMPRESS_BOOTBLOCK)) soc_mmu_init(); diff --git a/src/soc/qualcomm/x1p42100/clock.c b/src/soc/qualcomm/x1p42100/clock.c index 9a4b16d810..5e9706f698 100644 --- a/src/soc/qualcomm/x1p42100/clock.c +++ b/src/soc/qualcomm/x1p42100/clock.c @@ -16,3 +16,8 @@ void clock_configure_dfsr(int qup) { /* placeholder */ } + +void clock_init(void) +{ + /* placeholder */ +} diff --git a/src/soc/qualcomm/x1p42100/include/soc/clock.h b/src/soc/qualcomm/x1p42100/include/soc/clock.h index c6b01f8f91..bb327709af 100644 --- a/src/soc/qualcomm/x1p42100/include/soc/clock.h +++ b/src/soc/qualcomm/x1p42100/include/soc/clock.h @@ -37,6 +37,7 @@ enum clk_qup { }; /* TODO: update as per datasheet */ +void clock_init(void); void clock_configure_qspi(uint32_t hz); void clock_enable_qup(int qup); void clock_configure_dfsr(int qup);