aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-10-01 10:41:06 -0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2009-11-15 19:27:30 -0500
commitc26964ead57f0aa1dff4926aae2982b174798e7b (patch)
tree3d9330829b1bda042ced8920acefda7f4f2c2da9 /drivers/mfd
parenta9366e61b03f55a6e009e687ad10e706714c9907 (diff)
wm831x: Factor out WM831x backup battery charger
The backup battery on WM831x is a separate IP block to the main PMU and is largely unrelated to the main supply functionality. Factor it out into a separate driver in order to reflect this and better support future hardware versions. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/wm831x-core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c
index 49b7885c2702..6a35f2a2702c 100644
--- a/drivers/mfd/wm831x-core.c
+++ b/drivers/mfd/wm831x-core.c
@@ -794,6 +794,9 @@ static struct resource wm831x_wdt_resources[] = {
794 794
795static struct mfd_cell wm8310_devs[] = { 795static struct mfd_cell wm8310_devs[] = {
796 { 796 {
797 .name = "wm831x-backup",
798 },
799 {
797 .name = "wm831x-buckv", 800 .name = "wm831x-buckv",
798 .id = 1, 801 .id = 1,
799 .num_resources = ARRAY_SIZE(wm831x_dcdc1_resources), 802 .num_resources = ARRAY_SIZE(wm831x_dcdc1_resources),
@@ -947,6 +950,9 @@ static struct mfd_cell wm8310_devs[] = {
947 950
948static struct mfd_cell wm8311_devs[] = { 951static struct mfd_cell wm8311_devs[] = {
949 { 952 {
953 .name = "wm831x-backup",
954 },
955 {
950 .name = "wm831x-buckv", 956 .name = "wm831x-buckv",
951 .id = 1, 957 .id = 1,
952 .num_resources = ARRAY_SIZE(wm831x_dcdc1_resources), 958 .num_resources = ARRAY_SIZE(wm831x_dcdc1_resources),
@@ -1081,6 +1087,9 @@ static struct mfd_cell wm8311_devs[] = {
1081 1087
1082static struct mfd_cell wm8312_devs[] = { 1088static struct mfd_cell wm8312_devs[] = {
1083 { 1089 {
1090 .name = "wm831x-backup",
1091 },
1092 {
1084 .name = "wm831x-buckv", 1093 .name = "wm831x-buckv",
1085 .id = 1, 1094 .id = 1,
1086 .num_resources = ARRAY_SIZE(wm831x_dcdc1_resources), 1095 .num_resources = ARRAY_SIZE(wm831x_dcdc1_resources),