]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
intel_th: Enumerate Low Power Path output port type
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 11 Nov 2016 10:09:11 +0000 (12:09 +0200)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 25 Aug 2017 15:47:56 +0000 (18:47 +0300)
Trace Hub 2.x adds Low Power Path (LPP) output port type, which provides
a low power mode trace path from sources to PTI or BSSB.

This adds an output subdevice for the LPP port.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/hwtracing/intel_th/core.c
drivers/hwtracing/intel_th/intel_th.h

index 4f569593db010664cd80f1edf21ee0b114d85599..d1760003b4a42cd66eaff3edae1876762436fe91 100644 (file)
@@ -500,6 +500,21 @@ static const struct intel_th_subdevice {
                .otype  = GTH_PTI,
                .scrpd  = SCRPD_PTI_IS_PRIM_DEST,
        },
+       {
+               .nres   = 1,
+               .res    = {
+                       {
+                               .start  = REG_PTI_OFFSET,
+                               .end    = REG_PTI_OFFSET + REG_PTI_LENGTH - 1,
+                               .flags  = IORESOURCE_MEM,
+                       },
+               },
+               .id     = -1,
+               .name   = "lpp",
+               .type   = INTEL_TH_OUTPUT,
+               .otype  = GTH_LPP,
+               .scrpd  = SCRPD_PTI_IS_PRIM_DEST,
+       },
        {
                .nres   = 1,
                .res    = {
index d44da50be3b0f694d3a2a31e3ab7e81ae81f4f15..3f4558404dcab55cb36c8dd88888448756cdb176 100644 (file)
@@ -103,7 +103,8 @@ enum {
        GTH_NONE = 0,
        GTH_MSU,        /* memory/usb */
        GTH_CTP,        /* Common Trace Port */
-       GTH_PTI = 4,    /* MIPI-PTI */
+       GTH_LPP,        /* Low Power Path */
+       GTH_PTI,        /* MIPI-PTI */
 };
 
 /**