Home
last modified time | relevance | path

Searched refs:mt2712_rtc (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/rtc/
Drtc-mt2712.c77 struct mt2712_rtc { struct
85 static inline u32 mt2712_readl(struct mt2712_rtc *mt2712_rtc, u32 reg) in mt2712_readl() argument
87 return readl(mt2712_rtc->base + reg); in mt2712_readl()
90 static inline void mt2712_writel(struct mt2712_rtc *mt2712_rtc, in mt2712_writel() argument
93 writel(val, mt2712_rtc->base + reg); in mt2712_writel()
96 static void mt2712_rtc_write_trigger(struct mt2712_rtc *mt2712_rtc) in mt2712_rtc_write_trigger() argument
100 mt2712_writel(mt2712_rtc, MT2712_WRTGR, 1); in mt2712_rtc_write_trigger()
102 if (!(mt2712_readl(mt2712_rtc, MT2712_BBPU) in mt2712_rtc_write_trigger()
107 dev_err(&mt2712_rtc->rtc->dev, in mt2712_rtc_write_trigger()
115 static void mt2712_rtc_writeif_unlock(struct mt2712_rtc *mt2712_rtc) in mt2712_rtc_writeif_unlock() argument
[all …]