Changing STM32MP157D Linux system CLOCK_REALTIME to use the 64-bit Ethernet precision timer
On an STM32MP157D-based system, I wish to condition the Linux CLOCK_REALTIME precision clock against an external clock source in a non-standard manner (ie. not using PTPD or similar).
To do this, I am using a wireless radio controlled by the CM4 core on the STM32MP157D to synchronize and condition the 64-bit Ethernet precision timer within a microsecond of a clock on the far end of the wireless connection. This code was adapted from an STM32F767 device, and the port was relatively easy to do.
Can I configure the Linux system to use the Ethernet precision timer rather than the default system timer for the CLOCK_REALTIME precision clock? If so, how might I configure this within the kernel or device tree files?
Alternatively, how might I adjust the CM4 ARM Cortex-A Generic Timer, which is likely used by default for CLOCK_REALTIME, so that it can be set and adjusted by code running within the CM4 core? Or is some other clock used by Linux for the CLOCK_REALTIME clock?
Thanks,
Mike
