On 6/23/2023 2:08 AM, Erez wrote:
> On Fri, 23 Jun 2023 at 09:07, Jacob Keller wrote:
>
>> Add a new function to phc_ctl to display the devices pin configuration
>> data. First, obtain the device capabilities to determine the number of
>> pins. Then, for each pin, print the name, function, and
On 6/23/2023 1:44 AM, Erez wrote:
> On Fri, 23 Jun 2023 at 09:07, Jacob Keller wrote:
>
>> The phc library currently selects whether to use PTP_PIN_SETFUNC2 over
>> PTP_PIN_SETFUNC based on whether the kernel headers it is compiled against
>> have the PTP_PIN_SETFUNC2 defined.
>>
>> This means
On Fri, 23 Jun 2023 at 09:07, Jacob Keller wrote:
> Add a new function to phc_ctl to display the devices pin configuration
> data. First, obtain the device capabilities to determine the number of
> pins. Then, for each pin, print the name, function, and channel
> information.
>
> Signed-off-by: J
On Fri, 23 Jun 2023 at 09:07, Jacob Keller wrote:
> The phc library currently selects whether to use PTP_PIN_SETFUNC2 over
> PTP_PIN_SETFUNC based on whether the kernel headers it is compiled against
> have the PTP_PIN_SETFUNC2 defined.
>
> This means that the use of PTP_PIN_SETFUNC vs PTP_PIN_SE
The phc library currently selects whether to use PTP_PIN_SETFUNC2 over
PTP_PIN_SETFUNC based on whether the kernel headers it is compiled against
have the PTP_PIN_SETFUNC2 defined.
This means that the use of PTP_PIN_SETFUNC vs PTP_PIN_SETFUNC2 depends on
whether the headers we compiled against hav
The phc.c file already has phc_get_caps to obtain the capabilities for a
PHC clock. Expose this and use it in phc_ctl.c instead of re-implementing
it.
Signed-off-by: Jacob Keller
---
phc.c | 4 +---
phc.h | 11 +++
phc_ctl.c | 3 +--
3 files changed, 13 insertions(+), 5 deletio
Modify the phc_ctl utility to add a helpful get_pins_cfg command to display
the current pin configuration.
This is a follow up of a previous v2 I sent a long time ago at [1], but
includes a couple of additional cleanups. First, I modified phc.c to
dynamically check and use PTP_PIN_SETFUNC2 if avai
Add a new function to phc_ctl to display the devices pin configuration
data. First, obtain the device capabilities to determine the number of
pins. Then, for each pin, print the name, function, and channel
information.
Signed-off-by: Jacob Keller
---
missing.h | 5 +
phc.c | 10