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

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

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



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

Change-Id: I06f52d5093fb7f1646725fee70c7d18cd00a135e
Signed-off-by: default avatarKaushal Kumar <kaushalk@codeaurora.org>
parent d070dfa3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -602,6 +602,9 @@ static struct msm_soc_info cpu_of_id[] = {
	/* SDM710 ID */
	[360] = {MSM_CPU_SDM710, "SDM710"},

	/* SDMDOLPHIN ID */
	[393] = {MSM_CPU_SDMDOLPHIN, "SDMDOLPHIN"},

	/* SXR1120 ID */
	[370] = {MSM_CPU_SXR1120, "SXR1120"},

@@ -1554,6 +1557,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 360;
		strlcpy(dummy_socinfo.build_id, "sdm710 - ",
			sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sdmdolphin()) {
		dummy_socinfo.id = 393;
		strlcpy(dummy_socinfo.build_id, "sdmdolphin - ",
			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
@@ -114,6 +114,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sxr1120")
#define early_machine_is_msm8953()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8953")
#define early_machine_is_sdmdolphin()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm670")
#define early_machine_is_msm8937()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8937")
#define early_machine_is_msm8917()	\
@@ -193,6 +195,7 @@
#define early_machine_is_sda429()	0
#define early_machine_is_mdm9650()     0
#define early_machine_is_qm215()	0
#define early_machine_is_sdmdolphin()	0
#endif

#define PLATFORM_SUBTYPE_MDM	1
@@ -268,6 +271,7 @@ enum msm_cpu {
	MSM_CPU_8917,
	MSM_CPU_9607,
	MSM_CPU_SDM439,
	MSM_CPU_SDMDOLPHIN,
	MSM_CPU_SDM429,
	MSM_CPU_SDA439,
	MSM_CPU_SDA429,