From patchwork Wed Mar 20 18:49:42 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: 160715 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp626116jan; Wed, 20 Mar 2019 11:50:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUQz1OoxQihfbc08VIhsiu6cGwExm6GHfohTpaPv6xbWuz65fRVU9TgPf7HktoAenGV2HO X-Received: by 2002:a17:902:8a96:: with SMTP id p22mr9349511plo.113.1553107858065; Wed, 20 Mar 2019 11:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553107858; cv=none; d=google.com; s=arc-20160816; b=Wrn6iP7Q69wT1aa2sThw0M7myPQYWleElSlhgki1b37iYHAHWXpFBsw7p23pcsd3xj jzDS8dkevsvSl0Bkp3RU65gZkypgAuIrGeW25uFHfzmdmn+lyQGYb3T+9kA1HNSJDlum QcfIqImyk6sRL3zGqeh6LDQXsskbyw72mvfxEWienCnqmjH2u3+3s2j0fCVaDLbwpgmm HMNeBwdCyhEcoGXSiJQGqMA7+dsHlMEjXknM396iTGpxTTAa/vmUxjTsFkywtFVeXbhG PPsoMve9Y/09dqxpvb5u1tUaw768JefFjKXo6xY81FME+PZz3aNdiNLNNCWQoj2O/PVI fNSw== 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=BgAbWgYWX0dKcACX3J8SIGcRoJA5qhZot/I55dQMYiA=; b=sS8JYB4YaAbIsyP+sHC5wL08Gg6AduUz0y77duseNivPVn9XRfl7OAUoXhc4WU8Dj5 iTyS3WLESKyW9V6dK1vZcrdwWMPW9o0OM0UP/+QkVq908ngpPYkneV9WYLj+pb8rPOL6 OuTB3xV7/l9XaXep/bqnM5mCWC0rEv10XO4ScVw8GJHWYpIe0Ws48eJuhLi7cV2M3YCZ jDz8wraflyzxotQIP0oFEh015iTm/rgzjefJDmdon9AtBBl5zr8rGJ/336gVnkKC4lhk IyaDnBYLvsx7lQ5l9ynRIIvDaAmu9eBxIvNETjczAd7MNr3fZ/P9ZaqGiFyEzFEoloYr vM8w== 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 a19si2185037pgw.244.2019.03.20.11.50.57; Wed, 20 Mar 2019 11:50:58 -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 S1727742AbfCTSu4 (ORCPT + 31 others); Wed, 20 Mar 2019 14:50:56 -0400 Received: from foss.arm.com ([217.140.101.70]:45066 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727717AbfCTSux (ORCPT ); Wed, 20 Mar 2019 14:50:53 -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 689DA1BC0; Wed, 20 Mar 2019 11:50:53 -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 BFEFF3F59C; Wed, 20 Mar 2019 11:50:51 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, coresight@lists.linaro.org, mike.leach@linaro.org, robert.walker@arm.com, Suzuki K Poulose , "Rafael J. Wysocki" , Mathieu Poirier Subject: [PATCH 25/25] coresight: acpi: Support for components Date: Wed, 20 Mar 2019 18:49:42 +0000 Message-Id: <1553107783-3340-26-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553107783-3340-1-git-send-email-suzuki.poulose@arm.com> References: <1553107783-3340-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 7b937c0..11b1978 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 @@ -288,11 +289,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, },