Skip to content

Commit

Permalink
ARM: S3C64XX: Configure backup battery charger on Cragganmore
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Mark Brown authored and Kukjin Kim committed Jul 20, 2011
1 parent 1a26d73 commit 89e1c3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/mach-s3c64xx/mach-crag6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,12 @@ static struct regulator_init_data vddalive __initdata = {
.supply_regulator = "WALLVDD",
};

static struct wm831x_backup_pdata banff_backup_pdata __initdata = {
.charger_enable = 1,
.vlim = 2500, /* mV */
.ilim = 200, /* uA */
};

static struct wm831x_status_pdata banff_red_led __initdata = {
.name = "banff:red:",
.default_src = WM831X_STATUS_MANUAL,
Expand All @@ -494,6 +500,8 @@ static struct wm831x_pdata crag_pmic_pdata __initdata = {
.irq_base = BANFF_PMIC_IRQ_BASE,
.gpio_base = GPIO_BOARD_START + 8,

.backup = &banff_backup_pdata,

.gpio_defaults = {
/* GPIO11: Touchscreen data - CMOS, DBVDD, active high*/
[10] = WM831X_GPN_POL | WM831X_GPN_ENA | 0x6,
Expand Down

0 comments on commit 89e1c3d

Please sign in to comment.