2019-05-19 20:51:34 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-08-31 09:20:34 +07:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
#ifndef _SIRFSOC_RTC_IOBRG_H_
|
|
|
|
#define _SIRFSOC_RTC_IOBRG_H_
|
|
|
|
|
2015-04-14 18:55:55 +07:00
|
|
|
struct regmap_config;
|
|
|
|
|
2011-08-31 09:20:34 +07:00
|
|
|
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);
|
2015-04-14 18:55:55 +07:00
|
|
|
struct regmap *devm_regmap_init_iobg(struct device *dev,
|
|
|
|
const struct regmap_config *config);
|
2011-08-31 09:20:34 +07:00
|
|
|
|
|
|
|
#endif
|