[PATCH v2 9/9] configs: add qcom_ipq5210_mmc_defconfig

Varadarajan Narayanan varadarajan.narayanan at oss.qualcomm.com
Wed Apr 15 12:10:40 CEST 2026


On Sat, Apr 11, 2026 at 07:15:46AM -0600, Simon Glass wrote:
> Hi Varadarajan,
>
> On 2026-04-10T09:11:45, Varadarajan Narayanan
> <varadarajan.narayanan at oss.qualcomm.com> wrote:
> > configs: add qcom_ipq5210_mmc_defconfig
> >
> > Introduce a defconfig for the Qualcomm IPQ5210 SoC based RDPs.
> > Presently supports eMMC.
> >
> > Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan at oss.qualcomm.com>
> >
> > configs/qcom_ipq5210_mmc_defconfig | 106 +++++++++++++++++++++++++++++++++++++
> >  1 file changed, 106 insertions(+)
>
> > diff --git a/configs/qcom_ipq5210_mmc_defconfig b/configs/qcom_ipq5210_mmc_defconfig
> > @@ -0,0 +1,106 @@
> > +CONFIG_DEBUG_UART_MSM_GENI=y
> > +CONFIG_DEBUG_UART_ANNOUNCE=y
>
> The other IPQ defconfigs (ipq5424, ipq9574) have CONFIG_DEBUG_UART=y
> along with CONFIG_DEBUG_UART_BASE and CONFIG_DEBUG_UART_CLOCK. Without
> these, preloader_console_init() in your SPL likely won't produce early
> debug output. Please can you add these.

The relevant QUP clock is enabled for ipq5424 & ipq9574 by the boot
loaders that ran before U-Boot proper.

In ipq5210, since we have SPL, the relevant qup clock is not enabled
for CONFIG_DEBUG_UART to work. In SPL after the clocks get setup the
serial console works.

> > diff --git a/configs/qcom_ipq5210_mmc_defconfig b/configs/qcom_ipq5210_mmc_defconfig
> > @@ -0,0 +1,106 @@
> > +CONFIG_SPL_TEXT_BASE=0x08c24000
> > +CONFIG_SPL_MAX_SIZE=0x3D000
> > +...
> > +CONFIG_SPL_STACK=0x08c60000
>
> Just to check, the SPL code region ends at 0x08c61000 (SPL_TEXT_BASE +
> SPL_MAX_SIZE) but the stack is at 0x08c60000 which is inside that
> region. If the SPL binary approaches the maximum size the stack will
> collide with code. Is this intentional?

Will change CONFIG_SPL_STACK as appropriate.

Thanks
Varada


More information about the U-Boot mailing list