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

Commit c34c1587 authored by Swetha Chikkaboraiah's avatar Swetha Chikkaboraiah Committed by Gerrit - the friendly Code Review server
Browse files

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



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

Change-Id: Id5a5984b57d05ef7ecea9af4e6d604d0837a35bb
Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent d31f3626
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@

static const char *msm8917_dt_match[] __initconst = {
	"qcom,msm8917",
	"qcom,apq8017",
	NULL
};

+10 −0
Original line number Diff line number Diff line
@@ -360,6 +360,12 @@ static struct msm_soc_info cpu_of_id[] = {
	[294] = {MSM_CPU_8937, "MSM8937"},
	[295] = {MSM_CPU_8937, "APQ8937"},

	/* MSM8917 IDs */
	[303] = {MSM_CPU_8917, "MSM8917"},
	[307] = {MSM_CPU_8917, "APQ8017"},
	[308] = {MSM_CPU_8917, "MSM8217"},
	[309] = {MSM_CPU_8917, "MSM8617"},

	/* SDM429 and SDM439 ID */
	[353] = {MSM_CPU_SDM439, "SDM439"},
	[354] = {MSM_CPU_SDM429, "SDM429"},
@@ -1296,6 +1302,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 294;
		strlcpy(dummy_socinfo.build_id, "msm8937 - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_msm8917()) {
		dummy_socinfo.id = 303;
		strlcpy(dummy_socinfo.build_id, "msm8917 - ",
			sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sdm439()) {
		dummy_socinfo.id = 353;
		strlcpy(dummy_socinfo.build_id, "sdm439 - ",
+4 −0
Original line number Diff line number Diff line
@@ -88,6 +88,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,bengalp-iot")
#define early_machine_is_msm8937()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8937")
#define early_machine_is_msm8917()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8917")
#define early_machine_is_sdm439()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm439")
#define early_machine_is_sdm429()	\
@@ -130,6 +132,7 @@
#define early_machine_is_bengal_iot()	0
#define early_machine_is_bengalp_iot()	0
#define early_machine_is_msm8937()	0
#define early_machine_is_msm8917()	0
#define early_machine_is_sdm439()	0
#define early_machine_is_sdm429()	0
#endif
@@ -172,6 +175,7 @@ enum msm_cpu {
	MSM_CPU_BENGAL_IOT,
	MSM_CPU_BENGALP_IOT,
	MSM_CPU_8937,
	MSM_CPU_8917,
	MSM_CPU_SDM439,
	MSM_CPU_SDM429
};