lkml.org 
[lkml]   [2020]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RFC 13/15] coresight: Kconfig: make all configurations tristate
    Date
    Allow coresight drivers to be built as modules.

    Signed-off-by: Mian Yousaf Kaukab <ykaukab@suse.de>
    ---
    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
    \
     
     \ /
      Last update: 2020-01-17 15:39    [W:3.872 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site