Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191879
b: refs/heads/master
c: d176d64
h: refs/heads/master
i:
  191877: 2620cfd
  191875: 467c3da
  191871: e8a77f4
v: v3
  • Loading branch information
Igor Grinberg authored and Eric Miao committed May 11, 2010
1 parent 4c0ebe7 commit 49a5862
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e4e309708eeb87a5b2429bc1f9bd1bc469d5a8b0
refs/heads/master: d176d64b54c72ee00f825dddd63830f8bd2b5155
27 changes: 27 additions & 0 deletions trunk/arch/arm/mach-pxa/cm-x300.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -634,13 +635,39 @@ 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[] = {
{
.name = "da903x-battery",
.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 = {
Expand Down

0 comments on commit 49a5862

Please sign in to comment.