mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
rtc: rockchip: rv1103b: config D2A_XO_CUR_SEL
Increase the anti-jamming ability of crystal vibration start-up. Change-Id: I65600d7303cf67b91fee540ad3e0a06c589ba600 Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
This commit is contained in:
@@ -137,6 +137,9 @@
|
||||
/* RV1103B_RTC_XO_TRIM0 bitfields */
|
||||
#define RV1103B_RTC_D2A_XO_EN BIT(0)
|
||||
|
||||
/* RV1103B_RTC_XO_TRIM1 bitfields */
|
||||
#define RV1103B_RTC_D2A_XO_CUR_SEL BIT(2)
|
||||
|
||||
/* RV1103B_RTC_ANALOG_EN bitfields */
|
||||
#define RV1103B_RTC_D2A_CLK_OUT_EN BIT(3)
|
||||
|
||||
@@ -494,6 +497,11 @@ static int rv1103b_rtc_init(struct regmap *regmap)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = rockchip_rtc_update_bits(regmap, RV1103B_RTC_XO_TRIM1,
|
||||
RV1103B_RTC_D2A_XO_CUR_SEL,
|
||||
RV1103B_RTC_D2A_XO_CUR_SEL);
|
||||
if (ret)
|
||||
return ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user