diff mbox series

[v2,5/9] arch: snapdragon: clock: Always bind before relocation

Message ID 20230327-qc_cleanups-v2-5-9a80cc563c76@linaro.org
State New
Headers show
Series Qualcomm cleanups / preparations | expand

Commit Message

Konrad Dybcio March 27, 2023, 10:45 a.m. UTC
In preparation for supporting upstream Linux device trees on Qualcomm
platforms, make this the default behavior.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm/dts/dragonboard410c-uboot.dtsi     | 4 ----
 arch/arm/dts/dragonboard820c-uboot.dtsi     | 4 ----
 arch/arm/dts/dragonboard845c-uboot.dtsi     | 4 ----
 arch/arm/dts/qcom-ipq4019.dtsi              | 1 -
 arch/arm/dts/qcs404-evb-uboot.dtsi          | 4 ----
 arch/arm/dts/starqltechn-uboot.dtsi         | 3 ---
 arch/arm/mach-snapdragon/clock-snapdragon.c | 1 +
 7 files changed, 1 insertion(+), 20 deletions(-)
diff mbox series

Patch

diff --git a/arch/arm/dts/dragonboard410c-uboot.dtsi b/arch/arm/dts/dragonboard410c-uboot.dtsi
index 1d7b31d7e267..1a7c25c704d4 100644
--- a/arch/arm/dts/dragonboard410c-uboot.dtsi
+++ b/arch/arm/dts/dragonboard410c-uboot.dtsi
@@ -21,10 +21,6 @@ 
 				u-boot,dm-pre-reloc;
 			};
 		};
-
-		qcom,gcc@1800000 {
-			u-boot,dm-pre-reloc;
-		};
 	};
 };
 
diff --git a/arch/arm/dts/dragonboard820c-uboot.dtsi b/arch/arm/dts/dragonboard820c-uboot.dtsi
index 5db30b5fb076..7daee3789f96 100644
--- a/arch/arm/dts/dragonboard820c-uboot.dtsi
+++ b/arch/arm/dts/dragonboard820c-uboot.dtsi
@@ -20,10 +20,6 @@ 
 				u-boot,dm-pre-reloc;
 			};
 		};
-
-		clock-controller@300000 {
-			u-boot,dm-pre-reloc;
-		};
 	};
 };
 
diff --git a/arch/arm/dts/dragonboard845c-uboot.dtsi b/arch/arm/dts/dragonboard845c-uboot.dtsi
index 8b5a7ee573b3..60adcca00b5c 100644
--- a/arch/arm/dts/dragonboard845c-uboot.dtsi
+++ b/arch/arm/dts/dragonboard845c-uboot.dtsi
@@ -15,10 +15,6 @@ 
 			u-boot,dm-pre-reloc;
 		};
 
-		clock-controller@100000 {
-			u-boot,dm-pre-reloc;
-		};
-
 		pinctrl_north@3900000 {
 			u-boot,dm-pre-reloc;
 		};
diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi
index 22a4e059f057..2fcab5412147 100644
--- a/arch/arm/dts/qcom-ipq4019.dtsi
+++ b/arch/arm/dts/qcom-ipq4019.dtsi
@@ -56,7 +56,6 @@ 
 			reg = <0x1800000 0x60000>;
 			#clock-cells = <1>;
 			#reset-cells = <1>;
-			u-boot,dm-pre-reloc;
 		};
 
 		rng: rng@22000 {
diff --git a/arch/arm/dts/qcs404-evb-uboot.dtsi b/arch/arm/dts/qcs404-evb-uboot.dtsi
index d77ae0fa930e..afa711ad979c 100644
--- a/arch/arm/dts/qcs404-evb-uboot.dtsi
+++ b/arch/arm/dts/qcs404-evb-uboot.dtsi
@@ -12,10 +12,6 @@ 
 		pinctrl_north@1300000 {
 			u-boot,dm-pre-reloc;
 		};
-
-		clock-controller@1800000 {
-			u-boot,dm-pre-reloc;
-		};
 	};
 };
 
diff --git a/arch/arm/dts/starqltechn-uboot.dtsi b/arch/arm/dts/starqltechn-uboot.dtsi
index 8d5d09c3a509..8e3cf3829421 100644
--- a/arch/arm/dts/starqltechn-uboot.dtsi
+++ b/arch/arm/dts/starqltechn-uboot.dtsi
@@ -16,9 +16,6 @@ 
 		serial@a84000 {
 			u-boot,dm-pre-reloc;
 		};
-		clock-controller@100000 {
-			u-boot,dm-pre-reloc;
-		};
 		gpio_north@3900000 {
 			u-boot,dm-pre-reloc;
 		};
diff --git a/arch/arm/mach-snapdragon/clock-snapdragon.c b/arch/arm/mach-snapdragon/clock-snapdragon.c
index 0ac45dce9a92..d1af5d1fec7d 100644
--- a/arch/arm/mach-snapdragon/clock-snapdragon.c
+++ b/arch/arm/mach-snapdragon/clock-snapdragon.c
@@ -178,4 +178,5 @@  U_BOOT_DRIVER(clk_msm) = {
 	.ops		= &msm_clk_ops,
 	.priv_auto	= sizeof(struct msm_clk_priv),
 	.probe		= msm_clk_probe,
+	.flags		= DM_FLAG_PRE_RELOC,
 };