blob: b31f2856733d720a5659d8e4730320faf4959ba7 [file] [log] [blame]
Thomas Gleixnera636cd62019-05-19 15:51:34 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Zhiwu Song684f7412011-08-30 19:20:34 -07002/*
3 * RTC I/O Bridge interfaces for CSR SiRFprimaII
4 * ARM access the registers of SYSRTC, GPSRTC and PWRC through this module
5 *
6 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
Zhiwu Song684f7412011-08-30 19:20:34 -07007 */
8#ifndef _SIRFSOC_RTC_IOBRG_H_
9#define _SIRFSOC_RTC_IOBRG_H_
10
Guo Zengb1999472015-04-14 11:55:55 +000011struct regmap_config;
12
Zhiwu Song684f7412011-08-30 19:20:34 -070013extern void sirfsoc_rtc_iobrg_besyncing(void);
14
15extern u32 sirfsoc_rtc_iobrg_readl(u32 addr);
16
17extern void sirfsoc_rtc_iobrg_writel(u32 val, u32 addr);
Guo Zengb1999472015-04-14 11:55:55 +000018struct regmap *devm_regmap_init_iobg(struct device *dev,
19 const struct regmap_config *config);
Zhiwu Song684f7412011-08-30 19:20:34 -070020
21#endif