This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3359 and TPS65910 rtc

Other Parts Discussed in Thread: TPS65910

The Linux kernel of Android SDK has the internal processor rtc  as source. I have tps65910 rtc driver working too as rtc1. Can a linux expert help me with the following issue? How can I call inside rtc-omap the rtc-tps65910 functions? I need at boot time load rtc0 with value of rtc1 and when android call rtc0 set time load the rtc1 wirh the value set. Ithe problem is: how can I call driver functions inside driver function? The struct device pass to the omap_set_time isn't the same need by tps65910_set_time. Can I get a pointerto struct device of tps65910 rtc device from omap driver to correctly make calls to it?

  • Leonardo, sorry for the delay.  I am beginning to look into an answer for your question.  In the meantime, if you have already resolved the issue, please post that.

  • I did a workaround. Unfortunately I couldn't find a function to get the pointer to device using, for example, your name or other parameter. I have declared a global variable with pointer value obtained at probe call and exported this from tps65910-rtc driver. In omap-rtc driver I call this pointer to make calls to tps65910.

    Not the ideal and architecturally correct, but works.

    Leonardo