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.

AM335x RTC platform driver

Other Parts Discussed in Thread: AM3352

Hi !

I am using an external RTC on my custom board based on am3352. Iam trying to sync the external and internal RTC times in the u-boot itself.

I could not find the platform driver for the internal RTC of am335x. In the board.c file of ti/am335x, i see that the internal rtc is being initialized. The rtc_regs does not define the sec, min...control any of the registers...Is there a platform driver for the Internal RTC of am335x???

I find the character driver though.. kernel/driver/rtc-omap.c. I see the rtc_write and rtc_read and is according to the TRM...i am planning to extract the code from here and make a platform driver for internal RTC in u-boot..is my approach correct??? or is there any other way to set the internal RTC tme from u-boot??

Thank you and appreciate your help.

 

BR,

ROY