mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
rtc: omap: add helper to read 32-bit registers
Add helper to read full register width. Signed-off-by: Johan Hovold <johan@kernel.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Tony Lindgren <tony@atomide.com> Cc: Benot Cousson <bcousson@baylibre.com> Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Sekhar Nori <nsekhar@ti.com> Cc: Tero Kristo <t-kristo@ti.com> Cc: Keerthy J <j-keerthy@ti.com> Tested-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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