summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2013-09-28 16:37:39 -0400
committerDenys Dmytriyenko <denys@ti.com>2013-09-30 16:36:04 -0400
commitc168b9dca4ec2b10df5c67fc8d0db4b57eb822f7 (patch)
treec3f254bd317e699f56d8abda4e6bc852fc1fbb8a /recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch
parent8c96f41ba6e3160d0826e112599285cf64541257 (diff)
downloadmeta-ti-c168b9dca4ec2b10df5c67fc8d0db4b57eb822f7.tar.gz
linux-3.0: remove old beagleboard-specific 3.0 and 3.1rc kernel recipes
Beagleboard is supported by newer 3.2 and 3.3.7 kernel recipes. Signed-off-by: Denys Dmytriyenko <denys@ti.com> Acked-by: Franklin Cooper Jr. <fcooper@ti.com>
Diffstat (limited to 'recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch')
-rw-r--r--recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch57
1 files changed, 0 insertions, 57 deletions
diff --git a/recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch b/recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch
deleted file mode 100644
index f44b3d05..00000000
--- a/recipes-kernel/linux/linux-3.0/sakoman/0014-rtc-twl-add-support-for-backup-battery-recharge.patch
+++ /dev/null
@@ -1,57 +0,0 @@
1From 55f8fd15557b03c2b336c8214d44de9753d0ba5f Mon Sep 17 00:00:00 2001
2From: Steve Sakoman <steve@sakoman.com>
3Date: Thu, 4 Feb 2010 12:26:22 -0800
4Subject: [PATCH 14/14] rtc-twl: add support for backup battery recharge
5
6---
7 drivers/rtc/rtc-twl.c | 27 ++++++++++++++++++++++++++-
8 1 files changed, 26 insertions(+), 1 deletions(-)
9
10diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c
11index a64494e..552446b 100644
12--- a/drivers/rtc/rtc-twl.c
13+++ b/drivers/rtc/rtc-twl.c
14@@ -30,7 +30,24 @@
15
16 #include <linux/i2c/twl.h>
17
18-
19+/*
20+ * PM_RECEIVER block register offsets (use TWL4030_MODULE_PM_RECEIVER)
21+ */
22+#define REG_BB_CFG 0x12
23+
24+/* PM_RECEIVER BB_CFG bitfields */
25+#define BIT_PM_RECEIVER_BB_CFG_BBCHEN 0x10
26+#define BIT_PM_RECEIVER_BB_CFG_BBSEL 0x0C
27+#define BIT_PM_RECEIVER_BB_CFG_BBSEL_2V5 0x00
28+#define BIT_PM_RECEIVER_BB_CFG_BBSEL_3V0 0x04
29+#define BIT_PM_RECEIVER_BB_CFG_BBSEL_3V1 0x08
30+#define BIT_PM_RECEIVER_BB_CFG_BBSEL_3v2 0x0c
31+#define BIT_PM_RECEIVER_BB_CFG_BBISEL 0x03
32+#define BIT_PM_RECEIVER_BB_CFG_BBISEL_25UA 0x00
33+#define BIT_PM_RECEIVER_BB_CFG_BBISEL_150UA 0x01
34+#define BIT_PM_RECEIVER_BB_CFG_BBISEL_500UA 0x02
35+#define BIT_PM_RECEIVER_BB_CFG_BBISEL_1MA 0x03
36+
37 /*
38 * RTC block register offsets (use TWL_MODULE_RTC)
39 */
40@@ -484,6 +501,14 @@ static int __devinit twl_rtc_probe(struct platform_device *pdev)
41 goto out2;
42 }
43
44+ /* enable backup battery charging */
45+ /* use a conservative 25uA @ 3.1V */
46+ ret = twl_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
47+ BIT_PM_RECEIVER_BB_CFG_BBCHEN |
48+ BIT_PM_RECEIVER_BB_CFG_BBSEL_3V1 |
49+ BIT_PM_RECEIVER_BB_CFG_BBISEL_25UA,
50+ REG_BB_CFG);
51+
52 platform_set_drvdata(pdev, rtc);
53 return 0;
54
55--
561.7.2.5
57