[PATCH 5/7] arm: snapdragon: pinctrl: Always bind before relocation

Sumit Garg sumit.garg at linaro.org
Fri Mar 24 07:06:52 CET 2023


On Fri, 24 Mar 2023 at 07:27, Konrad Dybcio <konrad.dybcio at linaro.org> wrote:
>
> In preparation for supporting upstream Linux device trees on Qualcomm
> platforms, make this the default behavior.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio at linaro.org>
> ---
>
>  arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
> index 826dc5148661..9f261d70e4d3 100644
> --- a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
> +++ b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
> @@ -163,4 +163,5 @@ U_BOOT_DRIVER(pinctrl_snapdraon) = {
>         .ops            = &msm_pinctrl_ops,
>         .probe          = msm_pinctrl_probe,
>         .bind           = msm_pinctrl_bind,
> +       .flags          = DM_FLAG_PRE_RELOC,

"u-boot,dm-pre-reloc" serves the same purpose but this looks even
better as we would like the serial driver to be enabled by default
prior to relocation. So you need to get rid of redundant
"u-boot,dm-pre-reloc" from corresponding <platform>-uboot.dtsi files.

-Sumit

>  };
> --
> 2.40.0
>


More information about the U-Boot mailing list