]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: qcom: apq8016: init pre-reloaction
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 26 Feb 2024 17:26:19 +0000 (17:26 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Fri, 1 Mar 2024 14:44:36 +0000 (14:44 +0000)
On the DB410c we support running as a first stage bootloader. This
requires initialising the GPIOs which are muxed to UART before they can
be used. Add DM_FLAG_PRE_RELOC to the apq8016 pinctrl driver to ensure
that we do this early enough.

This is required to prevent the first few lines of UART log from being
dropped.

Reported-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/pinctrl/qcom/pinctrl-apq8016.c

index 796c4b49d578eced00714a39742eb997afd79c73..eb9bf87b6c2e2fb85c0b37c32ea72042169768b6 100644 (file)
@@ -76,4 +76,5 @@ U_BOOT_DRIVER(pinctrl_apq8016) = {
        .of_match       = msm_pinctrl_ids,
        .ops            = &msm_pinctrl_ops,
        .bind           = msm_pinctrl_bind,
+       .flags          = DM_FLAG_PRE_RELOC,
 };