From: grinberg@compulab.co.il (Igor Grinberg)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/5] [ARM] pxa/cm-x300: add regulator on vcc_core
Date: Tue, 9 Mar 2010 11:43:51 +0200 [thread overview]
Message-ID: <1268127832-20563-4-git-send-email-grinberg@compulab.co.il> (raw)
In-Reply-To: <1268127832-20563-3-git-send-email-grinberg@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
---
arch/arm/mach-pxa/cm-x300.c | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c
index 6fba9a0..2012588 100644
--- a/arch/arm/mach-pxa/cm-x300.c
+++ b/arch/arm/mach-pxa/cm-x300.c
@@ -30,6 +30,7 @@
#include <linux/i2c/pca953x.h>
#include <linux/mfd/da903x.h>
+#include <linux/regulator/machine.h>
#include <linux/power_supply.h>
#include <linux/apm-emulation.h>
@@ -634,6 +635,27 @@ struct da9030_battery_info cm_x300_battery_info = {
.battery_critical = cm_x300_battery_critical,
};
+static struct regulator_consumer_supply buck2_consumers[] = {
+ {
+ .dev = NULL,
+ .supply = "vcc_core",
+ },
+};
+
+static struct regulator_init_data buck2_data = {
+ .constraints = {
+ .min_uV = 1375000,
+ .max_uV = 1375000,
+ .state_mem = {
+ .enabled = 0,
+ },
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .apply_uV = 1,
+ },
+ .num_consumer_supplies = ARRAY_SIZE(buck2_consumers),
+ .consumer_supplies = buck2_consumers,
+};
+
/* DA9030 */
struct da903x_subdev_info cm_x300_da9030_subdevs[] = {
{
@@ -641,6 +663,11 @@ struct da903x_subdev_info cm_x300_da9030_subdevs[] = {
.id = DA9030_ID_BAT,
.platform_data = &cm_x300_battery_info,
},
+ {
+ .name = "da903x-regulator",
+ .id = DA9030_ID_BUCK2,
+ .platform_data = &buck2_data,
+ },
};
static struct da903x_platform_data cm_x300_da9030_info = {
--
1.6.4.4
next prev parent reply other threads:[~2010-03-09 9:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 9:43 [PATCH 1/5] [ARM] pxa/cm-x300.c: add battery charger support Igor Grinberg
2010-03-09 9:43 ` [PATCH 2/5] [ARM] pxa/cm-x300: da903x WLED is not connected on cm-x300 Igor Grinberg
2010-03-09 9:43 ` [PATCH 3/5] [ARM] pxa/cm-x300: fix da903x IRQ line assignment Igor Grinberg
2010-03-09 9:43 ` Igor Grinberg [this message]
2010-03-09 9:43 ` [PATCH 5/5] [ARM] pxa/cm-x300: update the memory fixup Igor Grinberg
2010-03-14 9:29 ` [PATCH 1/5] [ARM] pxa/cm-x300.c: add battery charger support Igor Grinberg
2010-03-16 7:45 ` Eric Miao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1268127832-20563-4-git-send-email-grinberg@compulab.co.il \
--to=grinberg@compulab.co.il \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).