Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7de06da authored by Kaushal Kumar's avatar Kaushal Kumar
Browse files

soc: qcom: socinfo: Add support for SDA670 soc-id



Add socinfo support for SDA670 SoC and update the
bindings for the same.

Change-Id: Iba8c888a9ffa8de1919bc15275d947f666588589
Signed-off-by: default avatarKaushal Kumar <kaushalk@codeaurora.org>
parent 9809470b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -95,6 +95,9 @@ SoCs:
- QCS605
  compatible = "qcom,qcs605"

- SDA670
  compatible = "qcom,sda670"

- MSM8952
  compatible = "qcom,msm8952"

@@ -281,6 +284,8 @@ compatible = "qcom,sdm670-cdp"
compatible = "qcom,sdm670-mtp"
compatible = "qcom,qcs605-cdp"
compatible = "qcom,qcs605-mtp"
compatible = "qcom,sda670-cdp"
compatible = "qcom,sda670-mtp"
compatible = "qcom,msm8952-rumi"
compatible = "qcom,msm8952-sim"
compatible = "qcom,msm8952-qrd"
+7 −0
Original line number Diff line number Diff line
@@ -575,6 +575,9 @@ static struct msm_soc_info cpu_of_id[] = {
	/* QCS605 ID */
	[347] = {MSM_CPU_QCS605, "QCS605"},

	/* SDA670 ID */
	[337] = {MSM_CPU_SDA670, "SDA670"},

	/* Uninitialized IDs are not known to run Linux.
	 * MSM_CPU_UNKNOWN is set to 0 to ensure these IDs are
	 * considered as unknown CPU.
@@ -1437,6 +1440,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 336;
		strlcpy(dummy_socinfo.build_id, "sdm670 - ",
			sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sda670()) {
		dummy_socinfo.id = 337;
		strlcpy(dummy_socinfo.build_id, "sda670 - ",
			sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_qcs605()) {
		dummy_socinfo.id = 347;
		strlcpy(dummy_socinfo.build_id, "qcs605 - ",
+4 −0
Original line number Diff line number Diff line
@@ -104,6 +104,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm670")
#define early_machine_is_qcs605()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs605")
#define early_machine_is_sda670()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sda670")
#else
#define of_board_is_sim()		0
#define of_board_is_rumi()		0
@@ -145,6 +147,7 @@
#define early_machine_is_sdm845()	0
#define early_machine_is_sdm670()	0
#define early_machine_is_qcs605()	0
#define early_machine_is_sda670()	0
#endif

#define PLATFORM_SUBTYPE_MDM	1
@@ -208,6 +211,7 @@ enum msm_cpu {
	MSM_CPU_SDM845,
	MSM_CPU_SDM670,
	MSM_CPU_QCS605,
	MSM_CPU_SDA670,
};

struct msm_soc_info {