Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9120630ybl; Fri, 17 Jan 2020 06:41:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwWVGeqYF59oIGhSUCphD7+WEU3MwO4wJJzrLtpTW6OnS+1/y+MyHqCu9+1ABXqRT1lqOSN X-Received: by 2002:aca:48cf:: with SMTP id v198mr3652923oia.35.1579272094374; Fri, 17 Jan 2020 06:41:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579272094; cv=none; d=google.com; s=arc-20160816; b=SZWhZTu5g1dF9cbBmwCrb1I6+Z9hPirC09Gmts5Xcxlx9/RNY4uag9w3tzTC1NaMQ5 pvb+eFZaH6KU3GBj+US4QdHStCSKsRufRRtQneNIkm2ZUBTcFz8D8oJjBYLJrisRLEDf 4EEHVOfxEGCK4bPF4nX2PyJmJgYrXXmFS36eENqdZI0J9M+L7SNHJ7AIAQ3lRolNKeiz NRwTPW1YSIwFhq3xVpYpXTS5q5GR60++uEx4YyfJKYE8V32+SDGPDnQll/Yuv3b9EGuN 7+vNUVhdjs49xqgBgerZUn2DTMDP19HNYdd1bsQE+YmLcyQTq/0/55/OkBeFCyI7n5QM e9UQ== 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=I4c2H+PFxXKAn+ANsqDwR3/ahQp+jGM70QZ69BNqEMI=; b=ZP98zihtAbWHH8VxKy2DG6aDKde7PGISPf0grXcvaPXEIvhsfKG21MJAbjTIu69GOQ 3TAB7LHIceFna5rq9N2yqzyxPfPV8aJdDiLS49ULZU00xKGEmPjNQbJTs2j7c5trYHjd 3Frxv4oPJ9CI6Vketk0YZvpC3Sq4LDccM5tYnAdVVA++jNlFM3Sd0ix+HPnJvSz96XPC otzxOgVk5FS8hW8OxPmpNhADSwpm0KuwoNFVcBsis1908oqUy7zNh760PTp7gM/aSfAb 5FIBwmcFxntRt/bImEVCVq6SoWvoIf2mV5nwcDF8tbDq2aif3Wu/Js9R01UoVuk9PaL9 WT9Q== 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 q7si6285320oti.268.2020.01.17.06.41.22; Fri, 17 Jan 2020 06:41:34 -0800 (PST) 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 S1729154AbgAQOjS (ORCPT + 99 others); Fri, 17 Jan 2020 09:39:18 -0500 Received: from mx2.suse.de ([195.135.220.15]:57528 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729078AbgAQOjJ (ORCPT ); Fri, 17 Jan 2020 09:39:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6DB0EAD2B; Fri, 17 Jan 2020 14:39:08 +0000 (UTC) From: Mian Yousaf Kaukab To: linux-arm-kernel@lists.infradead.org, mathieu.poirier@linaro.org Cc: linux-kernel@vger.kernel.org, paul.gortmaker@windriver.com, suzuki.poulose@arm.com, alexander.shishkin@linux.intel.com, Mian Yousaf Kaukab Subject: [PATCH RFC 13/15] coresight: Kconfig: make all configurations tristate Date: Fri, 17 Jan 2020 15:40:08 +0100 Message-Id: <20200117144010.11149-14-ykaukab@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200117144010.11149-1-ykaukab@suse.de> References: <20200117144010.11149-1-ykaukab@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow coresight drivers to be built as modules. Signed-off-by: Mian Yousaf Kaukab --- drivers/hwtracing/coresight/Kconfig | 47 ++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/drivers/hwtracing/coresight/Kconfig b/drivers/hwtracing/coresight/Kconfig index 6ff30e25af55..699d355abad4 100644 --- a/drivers/hwtracing/coresight/Kconfig +++ b/drivers/hwtracing/coresight/Kconfig @@ -3,7 +3,7 @@ # Coresight configuration # menuconfig CORESIGHT - bool "CoreSight Tracing Support" + tristate "CoreSight Tracing Support" depends on ARM || ARM64 depends on OF || ACPI select ARM_AMBA @@ -15,17 +15,23 @@ menuconfig CORESIGHT specification and configure the right series of components when a trace source gets enabled. + To compile this driver as a module, choose M here: the + module will be called coresight. + if CORESIGHT config CORESIGHT_LINKS_AND_SINKS - bool "CoreSight Link and Sink drivers" + tristate "CoreSight Link and Sink drivers" help This enables support for CoreSight link and sink drivers that are responsible for transporting and collecting the trace data respectively. Link and sinks are dynamically aggregated with a trace entity at run time to form a complete trace path. + To compile these drivers as a modules, choose M here: the + modules will be called coresight-funnel and coresight-replicator. + config CORESIGHT_LINK_AND_SINK_TMC - bool "Coresight generic TMC driver" + tristate "Coresight generic TMC driver" depends on CORESIGHT_LINKS_AND_SINKS help This enables support for the Trace Memory Controller driver. @@ -34,8 +40,11 @@ config CORESIGHT_LINK_AND_SINK_TMC complies with the generic implementation of the component without special enhancement or added features. + To compile this driver as a module, choose M here: the + module will be called coresight-tmc-etx. + config CORESIGHT_CATU - bool "Coresight Address Translation Unit (CATU) driver" + tristate "Coresight Address Translation Unit (CATU) driver" depends on CORESIGHT_LINK_AND_SINK_TMC help Enable support for the Coresight Address Translation Unit (CATU). @@ -45,8 +54,11 @@ config CORESIGHT_CATU by looking up the provided table. CATU can also be used in pass-through mode where the address is not translated. + To compile this driver as a module, choose M here: the + module will be called coresight-catu. + config CORESIGHT_SINK_TPIU - bool "Coresight generic TPIU driver" + tristate "Coresight generic TPIU driver" depends on CORESIGHT_LINKS_AND_SINKS help This enables support for the Trace Port Interface Unit driver, @@ -56,16 +68,22 @@ config CORESIGHT_SINK_TPIU connected to an external host for use case capturing more traces than the on-board coresight memory can handle. + To compile this driver as a module, choose M here: the + module will be called coresight-tpiu. + config CORESIGHT_SINK_ETBV10 - bool "Coresight ETBv1.0 driver" + tristate "Coresight ETBv1.0 driver" depends on CORESIGHT_LINKS_AND_SINKS help This enables support for the Embedded Trace Buffer version 1.0 driver that complies with the generic implementation of the component without special enhancement or added features. + To compile this driver as a module, choose M here: the + module will be called coresight-etb10. + config CORESIGHT_SOURCE_ETM3X - bool "CoreSight Embedded Trace Macrocell 3.x driver" + tristate "CoreSight Embedded Trace Macrocell 3.x driver" depends on !ARM64 select CORESIGHT_LINKS_AND_SINKS help @@ -74,8 +92,11 @@ config CORESIGHT_SOURCE_ETM3X This is primarily useful for instruction level tracing. Depending the ETM version data tracing may also be available. + To compile this driver as a module, choose M here: the + module will be called coresight-etm3. + config CORESIGHT_SOURCE_ETM4X - bool "CoreSight Embedded Trace Macrocell 4.x driver" + tristate "CoreSight Embedded Trace Macrocell 4.x driver" depends on ARM64 select CORESIGHT_LINKS_AND_SINKS select PID_IN_CONTEXTIDR @@ -85,8 +106,11 @@ config CORESIGHT_SOURCE_ETM4X for instruction level tracing. Depending on the implemented version data tracing may also be available. + To compile this driver as a module, choose M here: the + module will be called coresight-etm4. + config CORESIGHT_STM - bool "CoreSight System Trace Macrocell driver" + tristate "CoreSight System Trace Macrocell driver" depends on (ARM && !(CPU_32v3 || CPU_32v4 || CPU_32v4T)) || ARM64 select CORESIGHT_LINKS_AND_SINKS select STM @@ -96,6 +120,9 @@ config CORESIGHT_STM logging useful software events or data coming from various entities in the system, possibly running different OSs + To compile this driver as a module, choose M here: the + module will be called coresight-stm. + config CORESIGHT_CPU_DEBUG tristate "CoreSight CPU Debug driver" depends on ARM || ARM64 @@ -110,4 +137,6 @@ config CORESIGHT_CPU_DEBUG properly, please refer Documentation/trace/coresight-cpu-debug.rst for detailed description and the example for usage. + To compile this driver as a module, choose M here: the + module will be called coresight-cpu-debug. endif -- 2.16.4