[PATCH 10/15] soc: qcom: smem: add build infra

Simon Glass sjg at chromium.org
Tue Jan 7 16:32:16 CET 2025


Hi Caleb,

On Sun, 24 Nov 2024 at 12:17, Caleb Connolly <caleb.connolly at linaro.org> wrote:
>
> Build the new SMEM driver port, and select it when ARCH_SNAPDRAGON is
> selected, since it will be a hard dependency for Qualcomm platforms.
>
> Signed-off-by: Caleb Connolly <caleb.connolly at linaro.org>
> ---
>  drivers/soc/qcom/Kconfig  | 8 ++++++++
>  drivers/soc/qcom/Makefile | 1 +
>  2 files changed, 9 insertions(+)
>
> diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
> index 4aa7833930c7..ee3d299eebe6 100644
> --- a/drivers/soc/qcom/Kconfig
> +++ b/drivers/soc/qcom/Kconfig
> @@ -23,5 +23,13 @@ config QCOM_RPMH
>         help
>           Say y here to support the Qualcomm RPMh (resource peripheral manager)
>           if you need to control regulators on Qualcomm platforms, say y here.
>
> +config QCOM_SMEM
> +       bool "Qualcomm SMEM support"
> +       help
> +         Say y here to support the Qualcomm SMEM (shared memory) client driver.

It's not a driver anymore, just support code. With that fixed:

Reviewed-by: Simon Glass <sjg at chromium.org>

> +         SMEM is a shared memory region that is used to pass information about
> +         the hardware (e.g. DRAM layout, PMIC configuration, etc) between bootloader
> +         staged and the OS. If in doubt, say y.
> +
>  endif # SOC_QCOM
> diff --git a/drivers/soc/qcom/Makefile b/drivers/soc/qcom/Makefile
> index 78fae8bbfa16..f4102f9155a8 100644
> --- a/drivers/soc/qcom/Makefile
> +++ b/drivers/soc/qcom/Makefile
> @@ -1,4 +1,5 @@
>  # SPDX-License-Identifier: GPL-2.0+
>
>  obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o
>  obj-$(CONFIG_QCOM_RPMH) += rpmh-rsc.o rpmh.o
> +obj-$(CONFIG_QCOM_SMEM) += smem.o
>
> --
> 2.47.0
>

Regards,
Simon


More information about the U-Boot mailing list