]> git.baikalelectronics.ru Git - uboot.git/commit
rtc: davinci: add driver model support
authorDario Binacchi <dariobin@libero.it>
Wed, 2 Jun 2021 20:38:04 +0000 (22:38 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 9 Jun 2021 16:53:45 +0000 (22:23 +0530)
commit2f4bdc49b605604b18dfc62ddf9f4c39f4a315bf
tree12973e746ec0d4e1d341d730c393e4ec14995f33
parentb35b52761e7eed83ad5afa2fed954164eb471f58
rtc: davinci: add driver model support

Update the driver to support the device tree and the driver model.
The read / write helpers in rtc_ops allow access to scratch registers
only. The offset parameter is added to the address of the scratch0
register.

Support for non-DM has been removed as there were no users.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210602203805.11494-8-dariobin@libero.it
drivers/rtc/davinci.c