From patchwork Mon Apr 15 16:04:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 162216 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3106079jan; Mon, 15 Apr 2019 09:06:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwH05P1RNzIgpjvKbhJ9G/74UwAPz7SaOVUGYcAbvH/NKdXxNmFJ6R5Ni9x33Slj88Bzu5g X-Received: by 2002:a63:d304:: with SMTP id b4mr70963217pgg.300.1555344407193; Mon, 15 Apr 2019 09:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555344407; cv=none; d=google.com; s=arc-20160816; b=zWRa7IvsKIEk6+uEdHcxIkdZoNroKJIv8/8kUMUZWpubP9/CosdeKprXXHW98PQsxk sqiCky4FVg+E3LY9C0TDQy1W2Z6JbJoBmeXvtPzEFlyVcBpMFcZOYCRUHxgFGty9jn7C AkZO5TJ3NBeOOdWrCPSMUr6UKrjII2tGGOR693GxbW37a2P0Enwxilc+3deb372Gj3+P 0QFsvtr7rFMmCvHhzSFv9URlgAluxJa5cIEk+0QJpVsB21pVgKAU+Ucmt1Hd3GCFzPaV QzcB8qziM7qmBd+kmVjhWKESuolGhic83cA+rrP1QnlDeavd9CfHoc9TdmwMlDzUzZB1 rO/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=eiyB8qqvQFxlkuEVtEOzNVi2Vvk5OItCGNPZKzvIivQ=; b=iVvq60lLVyGhPAUTZwe6Qbg4iqHfyh5VSmhZY2KkB6MN/mVeTg22tBRtgy8/R3YQBP Vp0f5c6+/fs00md6FKPllnD35DSfMOLjBE9E8B2ELNHkldb5qzPHUEYksQIN70KE7GO8 oJvZFi2HMLVVaxtR2YvqfBbRkbgLsOIlHpYanGiBYCMFiy1S9yR5rPnuULIsIzyg40wQ iDT9rkvogrw2GSCHZso+O4QNU+ssNlzKR1jgqK6ECbligQsRcMQCmOAUiqnL3JzRvA8h QEbZzwd1KC9NHpTBlNhz6byo4h91koVGWA7jPFLcyqv8xsossVLRCzZXsHoPQCqX7hqR OXuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si22057406plb.370.2019.04.15.09.06.46; Mon, 15 Apr 2019 09:06:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728133AbfDOQGp (ORCPT + 30 others); Mon, 15 Apr 2019 12:06:45 -0400 Received: from foss.arm.com ([217.140.101.70]:38082 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728070AbfDOQGn (ORCPT ); Mon, 15 Apr 2019 12:06:43 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F21E51AC1; Mon, 15 Apr 2019 09:06:42 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 785573F68F; Mon, 15 Apr 2019 09:06:41 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, rjw@rjwysocki.net, robert.walker@arm.com, Suzuki K Poulose Subject: [PATCH v2 33/36] coresight: acpi: Support for components Date: Mon, 15 Apr 2019 17:04:16 +0100 Message-Id: <1555344260-12375-34-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555344260-12375-1-git-send-email-suzuki.poulose@arm.com> References: <1555344260-12375-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All AMBA devices are handled via ACPI AMBA scan notifier infrastructure. The platform devices get the ACPI id added to their driver. Cc: "Rafael J. Wysocki" Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/acpi/acpi_amba.c | 9 +++++++++ drivers/hwtracing/coresight/coresight-replicator.c | 9 ++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/acpi/acpi_amba.c b/drivers/acpi/acpi_amba.c index 7f77c07..eef5a69 100644 --- a/drivers/acpi/acpi_amba.c +++ b/drivers/acpi/acpi_amba.c @@ -24,6 +24,15 @@ static const struct acpi_device_id amba_id_list[] = { {"ARMH0061", 0}, /* PL061 GPIO Device */ + {"ARMHC500", 0}, /* ARM CoreSight ETM4x */ + {"ARMHC501", 0}, /* ARM CoreSight ETR */ + {"ARMHC502", 0}, /* ARM CoreSight STM */ + {"ARMHC503", 0}, /* ARM CoreSight Debug */ + {"ARMHC979", 0}, /* ARM CoreSight TPIU */ + {"ARMHC97C", 0}, /* ARM CoreSight SoC-400 TMC, SoC-600 ETF/ETB */ + {"ARMHC98D", 0}, /* ARM CoreSight Dynamic Replicator */ + {"ARMHC9CA", 0}, /* ARM CoreSight CATU */ + {"ARMHC9FF", 0}, /* ARM CoreSight Funnel */ {"", 0}, }; diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c index 2eb489c..a8f42df 100644 --- a/drivers/hwtracing/coresight/coresight-replicator.c +++ b/drivers/hwtracing/coresight/coresight-replicator.c @@ -5,6 +5,7 @@ * Description: CoreSight Replicator driver */ +#include #include #include #include @@ -290,11 +291,17 @@ static const struct of_device_id static_replicator_match[] = { {} }; +#ifdef CONFIG_ACPI +static const struct acpi_device_id static_replicator_acpi_ids[] = { + {"ARMHC985", 0}, /* ARM CoreSight Static Replicator */ +}; +#endif static struct platform_driver static_replicator_driver = { .probe = static_replicator_probe, .driver = { .name = "coresight-replicator", - .of_match_table = static_replicator_match, + .of_match_table = of_match_ptr(static_replicator_match), + .acpi_match_table = ACPI_PTR(static_replicator_acpi_ids), .pm = &replicator_dev_pm_ops, .suppress_bind_attrs = true, },