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

Commit 656929de authored by Shadab Naseem's avatar Shadab Naseem
Browse files

socinfo: msm: Add soc id for SDA450



Add soc id for SDA450 in socinfo driver.
SDA450 is APQ version of SDM450.

Change-Id: Ia70e52b7ba4696e8cf705712402e75fecd445fcd
Signed-off-by: default avatarShadab Naseem <snaseem@codeaurora.org>
parent 271f6cf2
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2009-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2009-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -561,6 +561,8 @@ static struct msm_soc_info cpu_of_id[] = {

	/* SDM450 ID */
	[338] = {MSM_CPU_SDM450, "SDM450"},
	[351] = {MSM_CPU_SDM450, "SDA450"},


	/* 9607 IDs */
	[290] = {MSM_CPU_9607, "MDM9607"},
@@ -1303,6 +1305,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 338;
		strlcpy(dummy_socinfo.build_id, "sdm450 - ",
			sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sda450()) {
		dummy_socinfo.id = 351;
		strlcpy(dummy_socinfo.build_id, "sda450 - ",
			sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_mdm9607()) {
		dummy_socinfo.id = 290;
		strlcpy(dummy_socinfo.build_id, "mdm9607 - ",
+4 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2009-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2009-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -96,6 +96,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8953")
#define early_machine_is_sdm450()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdm450")
#define early_machine_is_sda450()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sda450")
#define early_machine_is_msm8937()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,msm8937")
#define early_machine_is_msm8996()	\
@@ -141,6 +143,7 @@
#define early_machine_is_msm8952()	0
#define early_machine_is_msm8953()	0
#define early_machine_is_sdm450()	0
#define early_machine_is_sda450()	0
#define early_machine_is_msm8937()	0
#define early_machine_is_msm8996()	0
#define early_machine_is_msm8976() 0