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

Commit 7fe466bd authored by Prasad Sodagudi's avatar Prasad Sodagudi
Browse files

soc: qcom: Add sdm855 SoC information into socinfo driver



Add SDM855 SoC information to socinfo driver.

Change-Id: If7053b202196ed586bf79128d6393b58321bc756
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 36fb0f38
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -304,6 +304,9 @@ static struct msm_soc_info cpu_of_id[] = {
	[305] = {MSM_CPU_8996, "MSM8996pro"},
	[312] = {MSM_CPU_8996, "APQ8096pro"},

	/* sdm855 ID */
	[339] = {MSM_CPU_SDM855, "SDM855"},

	/* Uninitialized IDs are not known to run Linux.
	 * MSM_CPU_UNKNOWN is set to 0 to ensure these IDs are
	 * considered as unknown CPU.
@@ -1103,6 +1106,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 310;
		strlcpy(dummy_socinfo.build_id, "msm8996-auto - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sdm855()) {
		dummy_socinfo.id = 339;
		strlcpy(dummy_socinfo.build_id, "sdm855 - ",
		sizeof(dummy_socinfo.build_id));
	} else
		strlcat(dummy_socinfo.build_id, "Dummy socinfo",
			sizeof(dummy_socinfo.build_id));
+4 −0
Original line number Diff line number Diff line
@@ -57,6 +57,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8996")
#define early_machine_is_msm8996_auto()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8996-cdp")
#define early_machine_is_sdm855()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm855")
#else
#define of_board_is_sim()		0
#define of_board_is_rumi()		0
@@ -75,6 +77,7 @@
#define early_machine_is_msm8916()	0
#define early_machine_is_apq8084()	0
#define early_machine_is_msm8996()	0
#define early_machine_is_sdm855()	0
#endif

#define PLATFORM_SUBTYPE_MDM	1
@@ -93,6 +96,7 @@ enum msm_cpu {
	MSM_CPU_8916,
	MSM_CPU_8084,
	MSM_CPU_8996,
	MSM_CPU_SDM855,
};

struct msm_soc_info {