Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89e1c3d0 authored by Mark Brown's avatar Mark Brown Committed by Kukjin Kim
Browse files

ARM: S3C64XX: Configure backup battery charger on Cragganmore

parent 1a26d734
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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,
@@ -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,