mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
ARM: CSR: add rtc i/o bridge interface for SiRFprimaII
The module is a bridge between the RTC clock domain and the CPU interface clock domain. ARM access the register of SYSRTC, GPSRTC and PWRC through this module. Signed-off-by: Zhiwu Song <zhiwu.song@csr.com> Signed-off-by: Barry Song <Baohua.Song@csr.com> Reviewed-by: Jamie Iles <jamie@jamieiles.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
858ba703e8
commit
684f741446
4 changed files with 159 additions and 1 deletions
18
include/linux/rtc/sirfsoc_rtciobrg.h
Normal file
18
include/linux/rtc/sirfsoc_rtciobrg.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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_
|
||||
|
||||
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);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue