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

Commit 394a1947 authored by Chris Lew's avatar Chris Lew Committed by Gerrit - the friendly Code Review server
Browse files

mailbox: Add snapshot of apcs-ipc driver



This snapshot is taken as of msm-4.14 'commit <f63747b877cd> ("Merge
"UPSTREAM commit 'eec334785ba1a5112db705ddcf5577e4bccc6009' 09/30"")'.

The qcom-apcs-ipc-mailbox driver maps the shared apps register to
trigger interrupts to remote subsystems.

Change-Id: I879a90df22206f5689fe047fc2c6e8756bb81f53
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 61e77481
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -69,7 +69,9 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev)
		return -ENOMEM;

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	base = devm_ioremap_resource(&pdev->dev, res);
	if (!res)
		return -ENODEV;
	base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
	if (IS_ERR(base))
		return PTR_ERR(base);

@@ -127,6 +129,8 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = {
	{ .compatible = "qcom,msm8996-apcs-hmss-global", .data = (void *)16 },
	{ .compatible = "qcom,msm8998-apcs-hmss-global", .data = (void *)8 },
	{ .compatible = "qcom,sdm845-apss-shared", .data = (void *)12 },
	{ .compatible = "qcom,sm8150-apcs-hmss-global", .data = (void *) 12 },
	{ .compatible = "qcom,sm8150-spcs-global", .data = (void *)0 },
	{}
};
MODULE_DEVICE_TABLE(of, qcom_apcs_ipc_of_match);
@@ -137,6 +141,7 @@ static struct platform_driver qcom_apcs_ipc_driver = {
	.driver = {
		.name = "qcom_apcs_ipc",
		.of_match_table = qcom_apcs_ipc_of_match,
		.suppress_bind_attrs = true,
	},
};