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

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

soc: qcom: socinfo: add support for sdm710



Add support for getting soc-id and dummy handle
on sdm710.

Change-Id: Id77f7db25aac1aaf1cfc0b7a8e826e4dd69cd064
Signed-off-by: default avatarKaushal Kumar <kaushalk@codeaurora.org>
parent 513494c8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -580,6 +580,9 @@ static struct msm_soc_info cpu_of_id[] = {
	/* SDA670 ID */
	[337] = {MSM_CPU_SDA670, "SDA670"},

	/* SDM710 ID */
	[360] = {MSM_CPU_SDM710, "SDM710"},

	/* 8953 ID */
	[293] = {MSM_CPU_8953, "MSM8953"},
	[304] = {MSM_CPU_8953, "APQ8053"},
@@ -1511,6 +1514,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_sdm710()) {
		dummy_socinfo.id = 360;
		strlcpy(dummy_socinfo.build_id, "sdm710 - ",
			sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sda670()) {
		dummy_socinfo.id = 337;
		strlcpy(dummy_socinfo.build_id, "sda670 - ",
+4 −0
Original line number Diff line number Diff line
@@ -106,6 +106,8 @@
	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")
#define early_machine_is_sdm710()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm670")
#define early_machine_is_msm8953()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8953")
#define early_machine_is_msm8937()	\
@@ -160,6 +162,7 @@
#define early_machine_is_sdm670()	0
#define early_machine_is_qcs605()	0
#define early_machine_is_sda670()	0
#define early_machine_is_sdm710()	0
#define early_machine_is_msm8953()	0
#define early_machine_is_msm8937()	0
#define early_machine_is_sdm450()	0
@@ -230,6 +233,7 @@ enum msm_cpu {
	MSM_CPU_SDM670,
	MSM_CPU_QCS605,
	MSM_CPU_SDA670,
	MSM_CPU_SDM710,
	MSM_CPU_8953,
	MSM_CPU_SDM450,
	MSM_CPU_SDM632,