• Tao Zhang's avatar
    coresight-tpdm: Add nodes for dsb edge control · f376caf2
    Tao Zhang authored
    Add the nodes to set value for DSB edge control and DSB edge
    control mask. Each DSB subunit TPDM has maximum of n(n<16) EDCR
    resgisters to configure edge control. DSB edge detection control
    00: Rising edge detection
    01: Falling edge detection
    10: Rising and falling edge detection (toggle detection)
    And each DSB subunit TPDM has maximum of m(m<8) ECDMR registers to
    configure mask. Eight 32 bit registers providing DSB interface
    edge detection mask control.
    
    Add the nodes to configure DSB edge control and DSB edge control
    mask. Each DSB subunit TPDM maximum of 256 edge detections can be
    configured. The index and value sysfs files need to be paired and
    written to order. The index sysfs file is to set the index number
    of the edge detection which needs to be configured. And the value
    sysfs file is to set the control or mask for the edge detection.
    DSB edge detection control should be set as the following values.
    00: Rising edge detection
    01: Falling edge detection
    10: Rising and falling edge detection (toggle detection)
    And DSB edge mask should be set as 0 or 1.
    Each DSB subunit TPDM has maximum of n(n<16) EDCR resgisters to
    configure edge control. And each DSB subunit TPDM has maximum of
    m(m<8) ECDMR registers to configure mask.
    
    Add the nodes to read a set of the edge control value and mask
    of the DSB in TPDM.
    Signed-off-by: default avatarTao Zhang <quic_taozha@quicinc.com>
    Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
    Link: https://lore.kernel.org/r/1695882586-10306-10-git-send-email-quic_taozha@quicinc.com
    f376caf2
coresight-tpdm.h 4.58 KB