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

Commit 9809470b authored by Kaushal Kumar's avatar Kaushal Kumar
Browse files

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



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

Change-Id: I9ba1dece74176831c6ef5eb4dc445555fd015ff5
Signed-off-by: default avatarKaushal Kumar <kaushalk@codeaurora.org>
parent 037d768f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -92,6 +92,9 @@ SoCs:
- SDM670
  compatible = "qcom,sdm670"

- QCS605
  compatible = "qcom,qcs605"

- MSM8952
  compatible = "qcom,msm8952"

@@ -276,6 +279,8 @@ compatible = "qcom,sda845-qrd"
compatible = "qcom,sdm670-rumi"
compatible = "qcom,sdm670-cdp"
compatible = "qcom,sdm670-mtp"
compatible = "qcom,qcs605-cdp"
compatible = "qcom,qcs605-mtp"
compatible = "qcom,msm8952-rumi"
compatible = "qcom,msm8952-sim"
compatible = "qcom,msm8952-qrd"
+7 −0
Original line number Diff line number Diff line
@@ -572,6 +572,9 @@ static struct msm_soc_info cpu_of_id[] = {
	/* SDM670 ID */
	[336] = {MSM_CPU_SDM670, "SDM670"},

	/* QCS605 ID */
	[347] = {MSM_CPU_QCS605, "QCS605"},

	/* Uninitialized IDs are not known to run Linux.
	 * MSM_CPU_UNKNOWN is set to 0 to ensure these IDs are
	 * considered as unknown CPU.
@@ -1434,6 +1437,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_qcs605()) {
		dummy_socinfo.id = 347;
		strlcpy(dummy_socinfo.build_id, "qcs605 - ",
			sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sdxpoorwills()) {
		dummy_socinfo.id = 334;
		strlcpy(dummy_socinfo.build_id, "sdxpoorwills - ",
+4 −0
Original line number Diff line number Diff line
@@ -102,6 +102,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm845")
#define early_machine_is_sdm670()	\
	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")
#else
#define of_board_is_sim()		0
#define of_board_is_rumi()		0
@@ -142,6 +144,7 @@
#define early_machine_is_sdxpoorwills()	0
#define early_machine_is_sdm845()	0
#define early_machine_is_sdm670()	0
#define early_machine_is_qcs605()	0
#endif

#define PLATFORM_SUBTYPE_MDM	1
@@ -204,6 +207,7 @@ enum msm_cpu {
	SDX_CPU_SDXPOORWILLS,
	MSM_CPU_SDM845,
	MSM_CPU_SDM670,
	MSM_CPU_QCS605,
};

struct msm_soc_info {