]> git.dujemihanovic.xyz Git - u-boot.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)
commit9ec8b8b4ca124278d812b530d11e9e48408ce301
tree12973e746ec0d4e1d341d730c393e4ec14995f33
parent62af440e218f96ada507f2067f9f33eca7fa1c87
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