Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226451
b: refs/heads/master
c: 112485e
h: refs/heads/master
i:
  226449: a4091f8
  226447: 8d55bd4
v: v3
  • Loading branch information
Benoit Cousson committed Nov 17, 2010
1 parent 63817cb commit d3b663f
Show file tree
Hide file tree
Showing 7 changed files with 313 additions and 129 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1cbb3a9a132969ed1ffeaecff2f910619d4470ae
refs/heads/master: 112485e9c543b17fc08daea56c7a558b415d06af
12 changes: 9 additions & 3 deletions trunk/arch/arm/mach-omap2/board-rx51-peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,18 @@ static struct omap_board_mux rx51_mmc2_off_mux[] = {
{ .reg_offset = OMAP_MUX_TERMINATOR },
};

static struct omap_mux_partition *partition;

/*
* Current flows to eMMC when eMMC is off and the data lines are pulled up,
* so pull them down. N.B. we pull 8 lines because we are using 8 lines.
*/
static void rx51_mmc2_remux(struct device *dev, int slot, int power_on)
{
if (power_on)
omap_mux_write_array(rx51_mmc2_on_mux);
omap_mux_write_array(partition, rx51_mmc2_on_mux);
else
omap_mux_write_array(rx51_mmc2_off_mux);
omap_mux_write_array(partition, rx51_mmc2_off_mux);
}

static struct omap2_hsmmc_info mmc[] __initdata = {
Expand Down Expand Up @@ -922,7 +924,11 @@ void __init rx51_peripherals_init(void)
rx51_init_wl1251();
spi_register_board_info(rx51_peripherals_spi_board_info,
ARRAY_SIZE(rx51_peripherals_spi_board_info));
omap2_hsmmc_init(mmc);

partition = omap_mux_get("core");
if (partition)
omap2_hsmmc_init(mmc);

platform_device_register(&rx51_charger_device);
}

Loading

0 comments on commit d3b663f

Please sign in to comment.