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

Commit d8796fd9 authored by Vishwanath Raju K's avatar Vishwanath Raju K
Browse files

soc: qcom: socinfo: Add supprot for QCM2150 QRD soc-id



Add socinfo support for QCM2150 QRD Soc and update the
bindings for the same.

Change-Id: I5b7ee61bf9410844de42d8351400619e0d768ac1
Signed-off-by: default avatarVishwanath Raju K <vishk@codeaurora.org>
parent 7d8e9815
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -152,6 +152,9 @@ SoCs:
- QM215
  compatible = "qcom, qm215"

- QCM2150
  compatible = "qcom, qcm2150"

- MDM9640
  compatible = "qcom,mdm9640"

@@ -378,6 +381,7 @@ compatible = "qcom,sdm439-qrd"
compatible = "qcom,sda439-cdp"
compatible = "qcom,sda439-mtp"
compatible = "qcom,qm215-qrd"
compatible = "qcom,qcm2150-qrd"
compatible = "qcom,msm8953-rumi"
compatible = "qcom,msm8953-sim"
compatible = "qcom,msm8953-cdp"
+7 −0
Original line number Diff line number Diff line
@@ -643,6 +643,9 @@ static struct msm_soc_info cpu_of_id[] = {
	/* QM215 ID */
	[386] = {MSM_CPU_QM215, "QM215"},

	/* QCM2150 ID */
	[436] = {MSM_CPU_QCM2150, "QCM2150"},

	/* SDM429W IDs*/
	[416] = {MSM_CPU_SDM429W, "SDM429W"},
	/* Uninitialized IDs are not known to run Linux.
@@ -1644,6 +1647,10 @@ static void * __init setup_dummy_socinfo(void)
		dummy_socinfo.id = 386;
		strlcpy(dummy_socinfo.build_id, "qm215 - ",
				sizeof(dummy_socinfo.build_id));
	} else if (early_machine_is_qcm2150()) {
		dummy_socinfo.id = 436;
		strlcpy(dummy_socinfo.build_id, "qcm2150 - ",
				sizeof(dummy_socinfo.build_id));
	}

	strlcat(dummy_socinfo.build_id, "Dummy socinfo",
+4 −0
Original line number Diff line number Diff line
@@ -144,6 +144,8 @@
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,mdm9650")
#define early_machine_is_qm215()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qm215")
#define early_machine_is_qcm2150()	\
	of_flat_dt_is_compatible(of_get_flat_dt_root(), "qcom,qcm2150")
#else
#define of_board_is_sim()		0
#define of_board_is_rumi()		0
@@ -204,6 +206,7 @@
#define early_machine_is_sdm429w()      0
#define early_machine_is_mdm9650()     0
#define early_machine_is_qm215()	0
#define early_machine_is_qcm2150()	0
#define early_machine_is_sdm712()	0
#endif

@@ -289,6 +292,7 @@ enum msm_cpu {
	MSM_CPU_SDM429W,
	MSM_CPU_9650,
	MSM_CPU_QM215,
	MSM_CPU_QCM2150,
};

struct msm_soc_info {