Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1170850pxf; Fri, 12 Mar 2021 03:45:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUVaYnlZ3Ys6XAS8ujn6M19s68lyEHm+fW0CBWWTlikdSpiaNMcXm4zBl/qLvQdxHpCujk X-Received: by 2002:a17:907:7355:: with SMTP id dq21mr7839237ejc.159.1615549520720; Fri, 12 Mar 2021 03:45:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615549520; cv=none; d=google.com; s=arc-20160816; b=wcyPulc0Ww/GhhlHjFRtTWTIE+fQ9kI1gHES1oYc5LunfDbOO/jUdP3meh8E5xha5I eeyAzHxkxb2VosR3op/A3DFxPsCJE1Tb85EAcEaeE9qgiNvKSkWHuESv4b4QyiXIazI1 +t2xG96J9VHXfy1vWz60Qt/irmmKGGYo/9DwLksCMnkFT1WZsCiMfRSL11SBJR59Gjae nnavB31rA4t8uWbA47VLsdW06itbBvpSLmFcPGB1iYgJ0zSDdIxGT8a/TebRvfyG6BwU Pre3yrk4YQYsRee2q3/FzWmhJTAUgl4dqjCEgHWdhctQ0Wh9BilL44J6B75hhqJhfN4t XhlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=XeO//86xvyhkCs4vx59KuN+lC3hVabR1V3KlewF5gAo=; b=YOXPJrK7FxXEzrBbrD9e2Saw7qHI6UhofIPixe4OTRxfsJIiW/9fBWzR9L6VSzM9qO nmDzwUh2ZCdQYPtD+Rhxht2/YvVpDwVj4deczBGirRhcQF8w9tOCn7el9H+4SGSRZnXD /M7Sc96q7Tgb5MS8qFLuvnPgQHWav4Ot8mL81F8CgDEKK2bJeZgp/JNMr/WnXjHmpjUY bmOvyGngfnLQ4LHr/+fL29YqUUkQiSK5wDVc0AicSWAGxxa7ctiC/blfrNaSlPTi8Ys8 M/nm7/QbKBNBTFUPww5qqlsZD3ZNb/8lsn/I6xT/XMRcekK6o35ryZ5hRT4fiutjf+7a PSGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi22si3888256edb.191.2021.03.12.03.44.58; Fri, 12 Mar 2021 03:45:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232258AbhCLI3p (ORCPT + 99 others); Fri, 12 Mar 2021 03:29:45 -0500 Received: from inva021.nxp.com ([92.121.34.21]:56198 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232274AbhCLI3l (ORCPT ); Fri, 12 Mar 2021 03:29:41 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 39BFD20064D; Fri, 12 Mar 2021 09:29:38 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A830C2008F3; Fri, 12 Mar 2021 09:29:35 +0100 (CET) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 48CD84029B; Fri, 12 Mar 2021 09:29:29 +0100 (CET) From: Ran Wang To: Jens Wiklander Cc: op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org, Ran Wang Subject: [PATCH] optee: enable apci support Date: Fri, 12 Mar 2021 16:36:53 +0800 Message-Id: <20210312083653.38780-1-ran.wang_1@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add ACPI support for optee driver. Signed-off-by: Ran Wang --- 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 #include #include #include @@ -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