]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mach-snapdragon: disable power-domains for pre-reloc drivers
authorCaleb Connolly <caleb.connolly@linaro.org>
Wed, 3 Apr 2024 12:07:39 +0000 (14:07 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Thu, 4 Apr 2024 15:46:46 +0000 (17:46 +0200)
Some devices like the UART and clock controller reference an RPM(h)
power domain. We don't support this device in U-Boot, so add
DM_FLAG_DEFAULT_PD_CTRL_OFF to tell DM core not to try and enable the
power domain.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/clk/qcom/clock-qcom.c
drivers/clk/qcom/clock-sdm845.c
drivers/serial/serial_msm_geni.c

index 7a5938a06a34d875229dac3e19d7c17a76f2875b..6303dcbf846127370d1cf540b6edffbfd3d7a0ab 100644 (file)
@@ -227,6 +227,7 @@ U_BOOT_DRIVER(qcom_clk) = {
        .ops            = &msm_clk_ops,
        .priv_auto      = sizeof(struct msm_clk_priv),
        .probe          = msm_clk_probe,
+       .flags          = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF,
 };
 
 int qcom_cc_bind(struct udevice *parent)
@@ -411,4 +412,5 @@ U_BOOT_DRIVER(qcom_power) = {
        .id = UCLASS_POWER_DOMAIN,
        .ops = &qcom_power_ops,
        .probe = qcom_power_probe,
+       .flags = DM_FLAG_PRE_RELOC,
 };
index 36ffee79d96601d5d3371d5d9695de47243ff095..babd83119e2c0718ad02b3f838dc0f4d6b8fb4ec 100644 (file)
@@ -183,5 +183,5 @@ U_BOOT_DRIVER(gcc_sdm845) = {
        .id             = UCLASS_NOP,
        .of_match       = gcc_sdm845_of_match,
        .bind           = qcom_cc_bind,
-       .flags          = DM_FLAG_PRE_RELOC,
+       .flags          = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF,
 };
index e5c3dcffc1c6cf045eb3695866a47e2c749963e3..4aa0bc8c72bc2d4df8746183707c9484cd0edd2e 100644 (file)
@@ -603,7 +603,7 @@ U_BOOT_DRIVER(serial_msm_geni) = {
        .priv_auto = sizeof(struct msm_serial_data),
        .probe = msm_serial_probe,
        .ops = &msm_serial_ops,
-       .flags = DM_FLAG_PRE_RELOC,
+       .flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF,
 };
 
 #ifdef CONFIG_DEBUG_UART_MSM_GENI