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

Commit 6e3e8608 authored by Srinivas Ramana's avatar Srinivas Ramana Committed by Gerrit - the friendly Code Review server
Browse files

socinfo: Add socinfo support for msm8953



Add socinfo support to get soc_id and other details
about msm8953.

Change-Id: I460502eb773e0d8a413b8a565bbaef0186192945
Signed-off-by: default avatarSrinivas Ramana <sramana@codeaurora.org>
Signed-off-by: default avatarSrinivasarao P <spathi@codeaurora.org>
parent f47ebce8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -373,6 +373,11 @@ static struct msm_soc_info cpu_of_id[] = {

	/* QM215 ID */
	[386] = {MSM_CPU_QM215, "QM215"},

	/* 8953 ID */
	[293] = {MSM_CPU_8953, "MSM8953"},
	[304] = {MSM_CPU_8953, "APQ8053"},

	/* Uninitialized IDs are not known to run Linux.
	 * MSM_CPU_UNKNOWN is set to 0 to ensure these IDs are
	 * considered as unknown CPU.
@@ -1320,6 +1325,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 386;
		strlcpy(dummy_socinfo.build_id, "qm215 - ",
				sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_msm8953()) {
		dummy_socinfo.id = 293;
		strlcpy(dummy_socinfo.build_id, "msm8953 - ",
			sizeof(dummy_socinfo.build_id));
	} else
		strlcat(dummy_socinfo.build_id, "Dummy socinfo",
			sizeof(dummy_socinfo.build_id));
+5 −1
Original line number Diff line number Diff line
@@ -96,6 +96,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm429")
#define early_machine_is_qm215()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qm215")
#define early_machine_is_msm8953()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8953")
#else
#define of_board_is_sim()		0
#define of_board_is_rumi()		0
@@ -138,6 +140,7 @@
#define early_machine_is_sdm439()	0
#define early_machine_is_sdm429()	0
#define early_machine_is_qm215()	0
#define early_machine_is_msm8953()	0
#endif

#define PLATFORM_SUBTYPE_MDM	1
@@ -181,7 +184,8 @@ enum msm_cpu {
	MSM_CPU_8917,
	MSM_CPU_SDM439,
	MSM_CPU_SDM429,
	MSM_CPU_QM215
	MSM_CPU_QM215,
	MSM_CPU_8953,
};

struct msm_soc_info {