Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp264487pxa; Wed, 19 Aug 2020 00:04:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygZCIUgBfVuzCXa6OcNGlW+RTPMsTV41xg+tsyieHbm8DUx6PQostv9I7b957xQyRA3wR6 X-Received: by 2002:a17:906:af51:: with SMTP id ly17mr23169184ejb.81.1597820687848; Wed, 19 Aug 2020 00:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597820687; cv=none; d=google.com; s=arc-20160816; b=X2y+RzpO22emcygayWKeiFsf65QQo+T1tNzvTbPS/jvrtC74l7ysEON3MEZNmCECWH W7KoqntkMIue6hWZDeQlAsyuRNh4UZ6cO6KkpQ1iQ2rhbzK4axOUR4n9jpTQaYMnAwZO C83fZXIihBQhqMaI0rn7VueAbUuJYqzTwXJ0d2r9FK4s/zI86OnL+vK/lU6N86RkACN5 yGHaPVc4pqvop+XqjULudVlu/9MIQGzDTknzklcGTs9l/DtU9yz81Ydn+Ohemk6vpczL 5IMQo1mFaQJhNWl7X+JDSnNqSpO12Dy/drTsSkCwHC/2Ukp0IzHRS1EMG/xVj3zkzHlX 80lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=LlIxbsFtDUx4ZSRJxNdCHR7hJz9JHnOfldsz+fYdgVQ=; b=lWwyemxTS7Iev+uuQGptkybXoikoxxsg6/2w/vEzyGdRM+3Cs8/wizJvV+2uUMO9ZS RttQgfw0dUB2Y5DJWcRG28XefOkFmiy60A0eEB8NprttBB1aP0OcKolSaPlMynRRzaXT Ib7TeOL3f1DNgtDl184xvr7ithx98QPL3oMGfp5iygREzBhmSIsW1PjGXBroXTpOK365 KSAbmW5Gx+yDqI+tIVPH3CQvrRT6BD1uW6xK3TkDHg9tPk28K2Sl+VHnLHDZALora6aj 6QQU6rpAzqAbKY1t1K/pqV6qdF8DWI/CklVIT4jW8sBHyXExMwzpFf/ZjO9pTWLO5mdq MROA== 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 i12si14128470ejy.492.2020.08.19.00.04.24; Wed, 19 Aug 2020 00:04:47 -0700 (PDT) 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 S1728183AbgHSG7w (ORCPT + 99 others); Wed, 19 Aug 2020 02:59:52 -0400 Received: from inva020.nxp.com ([92.121.34.13]:35234 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbgHSG7v (ORCPT ); Wed, 19 Aug 2020 02:59:51 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6D0091A02FF; Wed, 19 Aug 2020 08:59:48 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3F2EB1A0311; Wed, 19 Aug 2020 08:59:44 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5199F4024E; Wed, 19 Aug 2020 08:59:34 +0200 (CEST) From: Ran Wang To: Li Yang , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Ma , Ran Wang Subject: [PATCH v4] soc: fsl: enable acpi support in RCPM driver Date: Wed, 19 Aug 2020 14:52:07 +0800 Message-Id: <20200819065207.43930-1-ran.wang_1@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Ma This patch enables ACPI support in RCPM driver. Signed-off-by: Peng Ma Signed-off-by: Ran Wang --- Change in v4: - Make commit subject more accurate - Remove unrelated new blank line Change in v3: - Add #ifdef CONFIG_ACPI for acpi_device_id - Rename rcpm_acpi_imx_ids to rcpm_acpi_ids Change in v2: - Update acpi_device_id to fix conflict with other driver drivers/soc/fsl/rcpm.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/soc/fsl/rcpm.c b/drivers/soc/fsl/rcpm.c index a093dbe..b5aa6db 100644 --- a/drivers/soc/fsl/rcpm.c +++ b/drivers/soc/fsl/rcpm.c @@ -2,7 +2,7 @@ // // rcpm.c - Freescale QorIQ RCPM driver // -// Copyright 2019 NXP +// Copyright 2019-2020 NXP // // Author: Ran Wang @@ -13,6 +13,7 @@ #include #include #include +#include #define RCPM_WAKEUP_CELL_MAX_SIZE 7 @@ -139,10 +140,19 @@ static const struct of_device_id rcpm_of_match[] = { }; MODULE_DEVICE_TABLE(of, rcpm_of_match); +#ifdef CONFIG_ACPI +static const struct acpi_device_id rcpm_acpi_ids[] = { + {"NXP0015",}, + { } +}; +MODULE_DEVICE_TABLE(acpi, rcpm_acpi_ids); +#endif + static struct platform_driver rcpm_driver = { .driver = { .name = "rcpm", .of_match_table = rcpm_of_match, + .acpi_match_table = ACPI_PTR(rcpm_acpi_ids), .pm = &rcpm_pm_ops, }, .probe = rcpm_probe, -- 2.7.4