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

Commit ceb8546f authored by Avaneesh Kumar Dwivedi's avatar Avaneesh Kumar Dwivedi
Browse files

soc: qcom: socinfo: Add soc information for QCS405



Add socinfo support for QCS405 SoC and update the bindings for the same.

Change-Id: Ibe5ade1ab718272981198e98aab91f299d3a0543
Signed-off-by: default avatarAvaneesh Kumar Dwivedi <akdwived@codeaurora.org>
Signed-off-by: default avatarChintan Pandya <cpandya@codeaurora.org>
parent 0b458123
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -313,6 +313,9 @@ static struct msm_soc_info cpu_of_id[] = {
	/* sdm640 ID */
	[355] = {MSM_CPU_SDM640, "SDM640"},

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

	/* Uninitialized IDs are not known to run Linux.
	 * MSM_CPU_UNKNOWN is set to 0 to ensure these IDs are
	 * considered as unknown CPU.
@@ -1176,6 +1179,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 355;
		strlcpy(dummy_socinfo.build_id, "sdm640 - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_qcs405()) {
		dummy_socinfo.id = 352;
		strlcpy(dummy_socinfo.build_id, "qcs405 - ",
		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
@@ -63,6 +63,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdmshrike")
#define early_machine_is_sdm640()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm640")
#define early_machine_is_qcs405()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs405")
#else
#define of_board_is_sim()		0
#define of_board_is_rumi()		0
@@ -84,6 +86,7 @@
#define early_machine_is_sdm855()	0
#define early_machine_is_sdmshrike()	0
#define early_machine_is_sdm640()	0
#define early_machine_is_qcs405()	0
#endif

#define PLATFORM_SUBTYPE_MDM	1
@@ -107,6 +110,7 @@ enum msm_cpu {
	MSM_CPU_SDM855,
	MSM_CPU_SDMSHRIKE,
	MSM_CPU_SDM640,
	MSM_CPU_QCS405,
};

struct msm_soc_info {