mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
rtc: rockchip: config D2A_XO_START for rv1106
Increase the anti-jamming ability of crystal vibration start-up. Change-Id: I9cfeab7d2338cd2a38e6e86b78f6967c2d0bbdd1 Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
This commit is contained in:
@@ -120,6 +120,9 @@
|
||||
#define RV1106_RTC_D2A_XO_EN BIT(0)
|
||||
#define RV1106_RTC_D2A_CLK_OUT_EN BIT(5)
|
||||
|
||||
/* RV1106_RTC_XO_TRIM bitfields */
|
||||
#define RV1106_RTC_D2A_XO_START 0x7
|
||||
|
||||
/* RV1106_RTC_VPTAT_TRIM bitfields */
|
||||
#define RV1106_CLK_32K_ENABLE BIT(5)
|
||||
#define RV1106_D2A_POR_REG_SEL1 BIT(4)
|
||||
@@ -523,6 +526,12 @@ static int rv1106_rtc_init(struct regmap *regmap)
|
||||
RV1106_RTC_D2A_CLK_OUT_EN);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = rockchip_rtc_update_bits(regmap, RV1106_RTC_XO_TRIM0,
|
||||
RV1106_RTC_D2A_XO_START,
|
||||
RV1106_RTC_D2A_XO_START);
|
||||
if (ret)
|
||||
return ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user