Skip to content

Commit

Permalink
AC Power supply platform device and require pin multiplexing..
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Isaacs <izzy@buglabs.net>
  • Loading branch information
Matt Isaacs committed Apr 5, 2011
1 parent 04d6825 commit f1c0244
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/arm/mach-omap2/board-omap3bug.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,11 @@ static struct platform_device omap3_bug_pwm_b = {
.id = 1,
};

static struct platform_device bugbase_ac_adptr = {
.name = "buglabs_ac",
.id = -1,
};

static void __init omap3_bug_init_irq(void)
{
omap2_init_common_hw(mt46h32m32lf6_sdrc_params, NULL);
Expand Down Expand Up @@ -951,7 +956,8 @@ static struct platform_device *omap3_bug_devices[] __initdata = {
&omap3_bug_pwm_gpt10,
&omap3_bug_pwm_gpt11,
&leds_pwm,
&leds_gpio
&leds_gpio,
&bugbase_ac_adptr
};


Expand Down Expand Up @@ -1241,6 +1247,7 @@ static void __init omap3_bug_init(void)
/* Pin Mux - Set T8 to GPT9_PWM_EVT */
// For LED - should probably be moved into uboot
omap_cfg_reg(T8_34XX_GPIO55_OUT);
omap_cfg_reg(GPIO_43);

}

Expand Down
4 changes: 4 additions & 0 deletions arch/arm/mach-omap2/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,10 @@ MUX_CFG_34XX("DSS_D22", 0x108,
OMAP34XX_MUX_MODE7 | OMAP34XX_PIN_OUTPUT)
MUX_CFG_34XX("DSS_D23", 0x10a,
OMAP34XX_MUX_MODE7 | OMAP34XX_PIN_OUTPUT)

MUX_CFG_34XX("GPIO_43", 0x08c,
OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_INPUT)

};

#define OMAP34XX_PINS_SZ ARRAY_SIZE(omap34xx_pins)
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/plat-omap/include/plat/mux.h
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,8 @@ enum omap34xx_index {
DSS_D21,
DSS_D22,
DSS_D23,

GPIO_43
};

struct omap_mux_cfg {
Expand Down

0 comments on commit f1c0244

Please sign in to comment.