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

Commit 16cd8a76 authored by Avaneesh Kumar Dwivedi's avatar Avaneesh Kumar Dwivedi
Browse files

soc: qcom: socinfo: Add soc information for QCS404 and QCS407



Add socinfo support for QCS404 and QCS407 SoC and update the
bindings for the same.

Change-Id: I4e94829061cf40544ced774c3dfcf6578b548b35
Signed-off-by: default avatarAvaneesh Kumar Dwivedi <akdwived@codeaurora.org>
parent f7677f61
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -381,6 +381,12 @@ static struct msm_soc_info cpu_of_id[] = {
	/* qcs405 ID */
	[352] = {MSM_CPU_QCS405, "QCS405"},

	/* qcs404 ID */
	[410] = {MSM_CPU_QCS404, "QCS404"},

	/* qcs407 ID */
	[411] = {MSM_CPU_QCS407, "QCS407"},

	/* qcs403 ID */
	[373] = {MSM_CPU_QCS403, "QCS403"},

@@ -1355,6 +1361,14 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 372;
		strlcpy(dummy_socinfo.build_id, "qcs401 - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_qcs404()) {
		dummy_socinfo.id = 410;
		strlcpy(dummy_socinfo.build_id, "qcs404 - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_qcs407()) {
		dummy_socinfo.id = 411;
		strlcpy(dummy_socinfo.build_id, "qcs407 - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sdxprairie()) {
		dummy_socinfo.id = 357;
		strlcpy(dummy_socinfo.build_id, "sdxprairie - ",
+8 −0
Original line number Diff line number Diff line
@@ -79,6 +79,10 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs403")
#define early_machine_is_qcs401()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs401")
#define early_machine_is_qcs404()       \
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs404")
#define early_machine_is_qcs407()       \
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs407")
#define early_machine_is_sdxprairie()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdxprairie")
#define early_machine_is_sdmmagpie()	\
@@ -128,6 +132,8 @@
#define early_machine_is_qcs405()	0
#define early_machine_is_qcs403()	0
#define early_machine_is_qcs401()	0
#define early_machine_is_qcs404()       0
#define early_machine_is_qcs407()       0
#define early_machine_is_sdxprairie()	0
#define early_machine_is_sdmmagpie()	0
#define early_machine_is_sdmmagpiep()	0
@@ -169,6 +175,8 @@ enum msm_cpu {
	MSM_CPU_QCS405,
	MSM_CPU_QCS403,
	MSM_CPU_QCS401,
	MSM_CPU_QCS404,
	MSM_CPU_QCS407,
	SDX_CPU_SDXPRAIRIE,
	MSM_CPU_SDMMAGPIE,
	MSM_CPU_SDMMAGPIEP,