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

Commit 5f99a327 authored by Kaushal Kumar's avatar Kaushal Kumar
Browse files

msm: board-8916: Add a dedicated DT_MACHINE for tellurium



Add a new DT_MACHINE for msmtellurium in board-8916 to share
the same binary, which can support dynamic selection of correct
DT_MACHINE at runtime according to device tree.

Change-Id: I893cb7448870f14b2f97db9c06a8f2950870a2f3
Signed-off-by: default avatarKaushal Kumar <kaushalk@codeaurora.org>
parent 00c3b82b
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -90,6 +90,11 @@ static const char *msm8939_dt_match[] __initconst = {
	NULL
};

static const char *msmtellurium_dt_match[] __initconst = {
	"qcom,msmtellurium",
	NULL
};

DT_MACHINE_START(MSM8916_DT,
		"Qualcomm Technologies, Inc. MSM 8916 (Flattened Device Tree)")
	.map_io = msm8916_map_io,
@@ -116,3 +121,12 @@ DT_MACHINE_START(MSM8936_DT,
	.reserve = msm8916_dt_reserve,
	.smp = &msm8936_smp_ops,
MACHINE_END

DT_MACHINE_START(MSMTellurium_DT,
	"Qualcomm Technologies, Inc. MSM Tellurium (Flattened Device Tree)")
	.map_io = msm8916_map_io,
	.init_machine = msm8916_init,
	.dt_compat = msmtellurium_dt_match,
	.reserve = msm8916_dt_reserve,
	.smp = &msm8936_smp_ops,
MACHINE_END