mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
rtc: omap: add helper to read 32-bit registers
Add helper to read full register width. Signed-off-by: Johan Hovold <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Tony Lindgren <[email protected]> Cc: Benot Cousson <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Sekhar Nori <[email protected]> Cc: Tero Kristo <[email protected]> Cc: Keerthy J <[email protected]> Tested-by: Felipe Balbi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cbbe326fa8
commit
c253a8965c
1 changed files with 5 additions and 0 deletions
|
|
@ -123,6 +123,11 @@ static inline u8 rtc_read(struct omap_rtc *rtc, unsigned int reg)
|
|||
return readb(rtc->base + reg);
|
||||
}
|
||||
|
||||
static inline u32 rtc_readl(struct omap_rtc *rtc, unsigned int reg)
|
||||
{
|
||||
return readl(rtc->base + reg);
|
||||
}
|
||||
|
||||
static inline void rtc_write(struct omap_rtc *rtc, unsigned int reg, u8 val)
|
||||
{
|
||||
writeb(val, rtc->base + reg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue