rtc: abx80x: fix RTC write bit

commit 5f1b2f7764 upstream.

Fix RTC write bit as per application manual

Signed-off-by: Mitja Spes <mitja@lxnav.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mitja Spes
2015-09-02 10:02:29 +02:00
committed by Greg Kroah-Hartman
parent 4530473fda
commit 1a64393e4a

View File

@@ -28,7 +28,7 @@
#define ABX8XX_REG_WD 0x07 #define ABX8XX_REG_WD 0x07
#define ABX8XX_REG_CTRL1 0x10 #define ABX8XX_REG_CTRL1 0x10
#define ABX8XX_CTRL_WRITE BIT(1) #define ABX8XX_CTRL_WRITE BIT(0)
#define ABX8XX_CTRL_12_24 BIT(6) #define ABX8XX_CTRL_12_24 BIT(6)
#define ABX8XX_REG_CFG_KEY 0x1f #define ABX8XX_REG_CFG_KEY 0x1f