修改文件 drivers/rtc/rtc-sun6i.c
添加
#define SUN6I_LOSC_CTRL_FIX BIT(15) //fix bug, when powerdown
#define SUN6I_LOSC_CTRL_EXT_OSC_GSM BIT(3)
修改
/* Switch to the external, more precise, oscillator */
writel(SUN6I_LOSC_CTRL_KEY | SUN6I_LOSC_CTRL_EXT_OSC | SUN6I_LOSC_CTRL_EXT_OSC_GSM | SUN6I_LOSC_CTRL_FIX,
rtc->base + SUN6I_LOSC_CTRL);
最近编辑记录 wupaul2001 (2020-07-14 16:33:19)
离线