Skip to content

Commit

Permalink
arm: BeagleBoard: add support for the twl4030-madc
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Manna <kyle@kylemanna.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Kyle Manna authored and Samuel Ortiz committed Oct 24, 2011
1 parent 3d6271f commit cdcc966
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/arm/mach-omap2/board-omap3beagle.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ static struct i2c_board_info __initdata beagle_i2c_eeprom[] = {
static int __init omap3_beagle_i2c_init(void)
{
omap3_pmic_get_config(&beagle_twldata,
TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO,
TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC |
TWL_COMMON_PDATA_AUDIO,
TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2);

beagle_twldata.vpll2->constraints.name = "VDVI";
Expand Down Expand Up @@ -456,9 +457,15 @@ static void __init omap3_beagle_init_irq(void)
omap3_init_irq();
}

static struct platform_device madc_hwmon = {
.name = "twl4030_madc_hwmon",
.id = -1,
};

static struct platform_device *omap3_beagle_devices[] __initdata = {
&leds_gpio,
&keys_gpio,
&madc_hwmon,
};

static const struct usbhs_omap_board_data usbhs_bdata __initconst = {
Expand Down

0 comments on commit cdcc966

Please sign in to comment.