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

Commit c2d6a21d authored by Prateek Sood's avatar Prateek Sood Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: Add support for atoll into socinfo driver



Add atoll SoC information in socinfo driver.

Change-Id: I15ebf601cb5696774b68970b132c7314424ba29a
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
parent 7cd0075d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -384,6 +384,9 @@ static struct msm_soc_info cpu_of_id[] = {
	/* qcs410 ID */
	[406] = {MSM_CPU_QCS410, "QCS410"},

	/* atoll ID */
	[407] = {MSM_CPU_ATOLL, "ATOLL"},

	/* 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 +1323,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 406;
		strlcpy(dummy_socinfo.build_id, "qcs410 - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_atoll()) {
		dummy_socinfo.id = 407;
		strlcpy(dummy_socinfo.build_id, "atoll - ",
		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
@@ -95,6 +95,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs610")
#define early_machine_is_qcs410()      \
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcs410")
#define early_machine_is_atoll()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,atoll")
#else
#define of_board_is_sim()		0
#define of_board_is_rumi()		0
@@ -132,6 +134,7 @@
#define early_machine_is_trinket()	0
#define early_machine_is_qcs610()       0
#define early_machine_is_qcs410()       0
#define early_machine_is_atoll()	0
#endif

#define PLATFORM_SUBTYPE_MDM	1
@@ -171,6 +174,7 @@ enum msm_cpu {
	MSM_CPU_TRINKET,
	MSM_CPU_QCS610,
	MSM_CPU_QCS410,
	MSM_CPU_ATOLL,
};

struct msm_soc_info {