From: Caleb Connolly Date: Mon, 26 Feb 2024 17:26:19 +0000 (+0000) Subject: pinctrl: qcom: apq8016: init pre-reloaction X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8048976e9c9943b28aec8b7e4d998e128b39fe70;p=u-boot.git pinctrl: qcom: apq8016: init pre-reloaction 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 Reviewed-by: Neil Armstrong Reviewed-by: Sumit Garg Tested-by: Sumit Garg #qcs404 Signed-off-by: Caleb Connolly --- diff --git a/drivers/pinctrl/qcom/pinctrl-apq8016.c b/drivers/pinctrl/qcom/pinctrl-apq8016.c index 796c4b49d5..eb9bf87b6c 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8016.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8016.c @@ -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, };