mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Guo Zeng](/assets/img/avatar_default.png)
all devices behind rtciobrg needs a special way to access. currently they are using a platform-specific API. this patch moves to REGMAP, then clients can use regmap APIs to read/write. for the moment, old APIs are still kept, once all clients move to regmap, old APIs will be dropped. this patch also does minor clean for comments, authors statement. Signed-off-by: Guo Zeng <Guo.Zeng@csr.com> Signed-off-by: Barry Song <Baohua.Song@csr.com>
22 lines
597 B
C
22 lines
597 B
C
/*
|
|
* RTC I/O Bridge interfaces for CSR SiRFprimaII
|
|
* ARM access the registers of SYSRTC, GPSRTC and PWRC through this module
|
|
*
|
|
* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
|
|
*
|
|
* Licensed under GPLv2 or later.
|
|
*/
|
|
#ifndef _SIRFSOC_RTC_IOBRG_H_
|
|
#define _SIRFSOC_RTC_IOBRG_H_
|
|
|
|
struct regmap_config;
|
|
|
|
extern void sirfsoc_rtc_iobrg_besyncing(void);
|
|
|
|
extern u32 sirfsoc_rtc_iobrg_readl(u32 addr);
|
|
|
|
extern void sirfsoc_rtc_iobrg_writel(u32 val, u32 addr);
|
|
struct regmap *devm_regmap_init_iobg(struct device *dev,
|
|
const struct regmap_config *config);
|
|
|
|
#endif
|