Linux-libre 5.4.49-gnu
[librecmc/linux-libre.git] / include / linux / rtc / sirfsoc_rtciobrg.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
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.
7  */
8 #ifndef _SIRFSOC_RTC_IOBRG_H_
9 #define _SIRFSOC_RTC_IOBRG_H_
10
11 struct regmap_config;
12
13 extern void sirfsoc_rtc_iobrg_besyncing(void);
14
15 extern u32 sirfsoc_rtc_iobrg_readl(u32 addr);
16
17 extern void sirfsoc_rtc_iobrg_writel(u32 val, u32 addr);
18 struct regmap *devm_regmap_init_iobg(struct device *dev,
19                                     const struct regmap_config *config);
20
21 #endif