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

Commit 4f9407db authored by Prateek Sood's avatar Prateek Sood
Browse files

soc: qcom: Add support for sm6150p into socinfo driver



Add sm6150p SOC information in socinfo driver.

Change-Id: Id863c2d2806e837141f62ce7336894e472e27edd
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
parent c6987cc0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -344,6 +344,9 @@ static struct msm_soc_info cpu_of_id[] = {
	/* sm6150 ID */
	[355] = {MSM_CPU_SM6150, "SM6150"},

	/* sm6150p ID */
	[369] = {MSM_CPU_SM6150P, "SM6150P"},

	/* qcs405 ID */
	[352] = {MSM_CPU_QCS405, "QCS405"},

@@ -1259,6 +1262,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 355;
		strlcpy(dummy_socinfo.build_id, "sm6150 - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sm6150p()) {
		dummy_socinfo.id = 369;
		strlcpy(dummy_socinfo.build_id, "sm6150p - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_qcs405()) {
		dummy_socinfo.id = 352;
		strlcpy(dummy_socinfo.build_id, "qcs405 - ",
+4 −0
Original line number Diff line number Diff line
@@ -69,6 +69,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdmshrike")
#define early_machine_is_sm6150()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sm6150")
#define early_machine_is_sm6150p()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sm6150p")
#define early_machine_is_qcs405()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs405")
#define early_machine_is_qcs403()	\
@@ -113,6 +115,7 @@
#define early_machine_is_sa8155p()	0
#define early_machine_is_sdmshrike()	0
#define early_machine_is_sm6150()	0
#define early_machine_is_sm6150p()	0
#define early_machine_is_qcs405()	0
#define early_machine_is_qcs403()	0
#define early_machine_is_qcs401()	0
@@ -149,6 +152,7 @@ enum msm_cpu {
	MSM_CPU_SA8155P,
	MSM_CPU_SDMSHRIKE,
	MSM_CPU_SM6150,
	MSM_CPU_SM6150P,
	MSM_CPU_QCS405,
	MSM_CPU_QCS403,
	MSM_CPU_QCS401,