OSDN Git Service

ptp: ocp: Add GND and VCC output selectors
authorJonathan Lemon <jonathan.lemon@gmail.com>
Thu, 10 Mar 2022 20:19:06 +0000 (12:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Mar 2022 11:54:45 +0000 (11:54 +0000)
These will provide constant outputs.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c

index b3ea6dc..1a4a284 100644 (file)
@@ -544,6 +544,8 @@ static struct ocp_selector ptp_ocp_sma_out[] = {
        { .name = "GNSS2",      .value = 0x08 },
        { .name = "IRIG",       .value = 0x10 },
        { .name = "DCF",        .value = 0x20 },
+       { .name = "GND",        .value = 0x2000 },
+       { .name = "VCC",        .value = 0x4000 },
        { }
 };