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

Commit a90c2e44 authored by Jeevan Shriram's avatar Jeevan Shriram
Browse files

soc: qcom: Add soc information for SDMSHRIKE



Add SDMSHRIKE SoC information to socinfo driver.

Change-Id: Id11635d18c26642d4a6fe0292e5716986b95c3a8
Signed-off-by: default avatarJeevan Shriram <jshriram@codeaurora.org>
parent c55ae72e
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
@@ -307,6 +307,8 @@ static struct msm_soc_info cpu_of_id[] = {
	/* sdm855 ID */
	[339] = {MSM_CPU_SDM855, "SDM855"},

	/* sdmshrike ID */
	[340] = {MSM_CPU_SDMSHRIKE, "SDMSHRIKE"},
	/* Uninitialized IDs are not known to run Linux.
	 * MSM_CPU_UNKNOWN is set to 0 to ensure these IDs are
	 * considered as unknown CPU.
@@ -1113,6 +1115,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 339;
		strlcpy(dummy_socinfo.build_id, "sdm855 - ",
		sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_sdmshrike()) {
		dummy_socinfo.id = 340;
		strlcpy(dummy_socinfo.build_id, "sdmshrike - ",
		sizeof(dummy_socinfo.build_id));
	} else
		strlcat(dummy_socinfo.build_id, "Dummy socinfo",
			sizeof(dummy_socinfo.build_id));
+5 −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
@@ -59,6 +59,8 @@
	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")
#define early_machine_is_sdmshrike()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,sdmshrike")
#else
#define of_board_is_sim()		0
#define of_board_is_rumi()		0
@@ -78,6 +80,7 @@
#define early_machine_is_apq8084()	0
#define early_machine_is_msm8996()	0
#define early_machine_is_sdm855()	0
#define early_machine_is_sdmshrike()	0
#endif

#define PLATFORM_SUBTYPE_MDM	1
@@ -99,6 +102,7 @@ enum msm_cpu {
	MSM_CPU_8084,
	MSM_CPU_8996,
	MSM_CPU_SDM855,
	MSM_CPU_SDMSHRIKE,
};

struct msm_soc_info {