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

Commit 79d8dbc3 authored by Rishabh Bhatnagar's avatar Rishabh Bhatnagar
Browse files

drivers: esoc: Add support for marmot external modem



Modify esoc driver to introduce new compatible and fops
for marmot external modem target.

Change-Id: I206a6ca7d964013cb1814e0fcf45997982ed45eb
Signed-off-by: default avatarRishabh Bhatnagar <rishabhb@codeaurora.org>
parent 5083a6af
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -1071,7 +1071,7 @@ static int sdxprairie_setup_hw(struct mdm_ctrl *mdm,
	return ret;
}

static int sdxchitwan_setup_hw(struct mdm_ctrl *mdm,
static int marmot_setup_hw(struct mdm_ctrl *mdm,
					const struct mdm_ops *ops,
					struct platform_device *pdev)
{
@@ -1080,13 +1080,13 @@ static int sdxchitwan_setup_hw(struct mdm_ctrl *mdm,
	/* Same configuration as that of sdx50, except for the name */
	ret = sdx50m_setup_hw(mdm, ops, pdev);
	if (ret) {
		dev_err(mdm->dev, "Hardware setup failed for sdxchitwan\n");
		esoc_mdm_log("Hardware setup failed for sdxchitwan\n");
		dev_err(mdm->dev, "Hardware setup failed for marmot\n");
		esoc_mdm_log("Hardware setup failed for marmot\n");
		return ret;
	}

	mdm->esoc->name = SDXCHITWAN_LABEL;
	esoc_mdm_log("Hardware setup done for sdxchitwan\n");
	mdm->esoc->name = MARMOT_LABEL;
	esoc_mdm_log("Hardware setup done for marmot\n");

	return ret;
}
@@ -1116,9 +1116,9 @@ static struct mdm_ops sdxprairie_ops = {
	.pon_ops = &sdx50m_pon_ops,
};

static struct mdm_ops sdxchitwan_ops = {
static struct mdm_ops marmot_ops = {
	.clink_ops = &mdm_cops,
	.config_hw = sdxchitwan_setup_hw,
	.config_hw = marmot_setup_hw,
	.pon_ops = &sdx50m_pon_ops,
};

@@ -1129,8 +1129,8 @@ static const struct of_device_id mdm_dt_match[] = {
		.data = &sdx50m_ops, },
	{ .compatible = "qcom,ext-sdxprairie",
		.data = &sdxprairie_ops, },
	{ .compatible = "qcom,ext-sdxchitwan",
		.data = &sdxchitwan_ops, },
	{ .compatible = "qcom,ext-marmot",
		.data = &marmot_ops, },
	{},
};
MODULE_DEVICE_TABLE(of, mdm_dt_match);
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
#define SDX50M_LABEL			"SDX50M"
#define SDX50M_PCIE			"PCIe"
#define SDXPRAIRIE_LABEL		"SDXPRAIRIE"
#define SDXCHITWAN_LABEL		"SDXCHITWAN"
#define MARMOT_LABEL			"MARMOT"
#define MDM2AP_STATUS_TIMEOUT_MS	120000L
#define MDM_MODEM_TIMEOUT		3000
#define DEF_RAMDUMP_TIMEOUT		120000