karo: tx6: fix offset voltage in formulas for calculating VDDRTC
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 11 Jul 2016 09:01:13 +0000 (11:01 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 11 Jul 2016 09:01:13 +0000 (11:01 +0200)
board/karo/tx6/rn5t567.h

index 489c21f..80ebf6c 100644 (file)
@@ -63,5 +63,5 @@
 #define rn5t_regval3_to_mV(r)          rn5t_r2v(r, 6000, 250)
 
 /* LDORTC */
-#define rn5t_mV_to_regval_rtc(mV)      rn5t_v2r((mV) * 10, 17000, 250)
-#define rn5t_regval_rtc_to_mV(r)       rn5t_r2v(r, 17000, 250)
+#define rn5t_mV_to_regval_rtc(mV)      rn5t_v2r((mV) * 10, 12000, 250)
+#define rn5t_regval_rtc_to_mV(r)       rn5t_r2v(r, 12000, 250)