What are you trying to achieve? gettimeofday() isn't sufficient?I want to do it from a C program.
Linux normally only accesses the RTC at startup and shutdown. It'll read the time at startup and then write the current time at shutdown. The kernel keeps track of time during normal operation.
There is no direct access to the RTC. The PMIC and its internal RTC are handled by the Pi firmware via mailbox calls.
Statistics: Posted by trejan — Tue Jul 02, 2024 2:34 am