public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] optee: enable apci support
@ 2021-03-12  8:36 Ran Wang
  2021-03-17  8:04 ` Jens Wiklander
  0 siblings, 1 reply; 6+ messages in thread
From: Ran Wang @ 2021-03-12  8:36 UTC (permalink / raw)
  To: Jens Wiklander; +Cc: op-tee, linux-kernel, Ran Wang

This patch add ACPI support for optee driver.

Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
---
 drivers/tee/optee/core.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index cf4718c6d35d..8fb261f4b9db 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -5,6 +5,7 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
+#include <linux/acpi.h>
 #include <linux/arm-smccc.h>
 #include <linux/errno.h>
 #include <linux/io.h>
@@ -735,12 +736,21 @@ static const struct of_device_id optee_dt_match[] = {
 };
 MODULE_DEVICE_TABLE(of, optee_dt_match);
 
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id optee_acpi_match[] = {
+	{ "OPTEE01",},
+	{ },
+};
+MODULE_DEVICE_TABLE(acpi, dwc3_acpi_match);
+#endif
+
 static struct platform_driver optee_driver = {
 	.probe  = optee_probe,
 	.remove = optee_remove,
 	.driver = {
 		.name = "optee",
 		.of_match_table = optee_dt_match,
+		.acpi_match_table = ACPI_PTR(optee_acpi_match),
 	},
 };
 module_platform_driver(optee_driver);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-18  8:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-12  8:36 [PATCH] optee: enable apci support Ran Wang
2021-03-17  8:04 ` Jens Wiklander
2021-03-17  8:29   ` Ard Biesheuvel
2021-03-18  7:29     ` Ran Wang
2021-03-18  7:47       ` Ard Biesheuvel
2021-03-18  7:59         ` Ran Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox