Browse files

emmc: Enable pinmuxing and emmc config for Beaglebone LT eMMC module

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
  • Loading branch information...
1 parent fe59248 commit eb2de2da79861c191bcfff6c133a80b2dcbfe97b Joel A Fernandes committed Jul 26, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 arch/arm/mach-omap2/board-am335xevm.c
View
16 arch/arm/mach-omap2/board-am335xevm.c
@@ -843,6 +843,7 @@ static struct pinmux_config mmc1_pin_mux[] = {
{"gpmc_csn2.mmc1_cmd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_csn0.gpio1_29", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_advn_ale.mmc1_sdcd", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP},
+ {"uart1_rxd.mmc1_sdwp", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN},
{NULL, 0},
};
@@ -2241,6 +2242,20 @@ static void mcasp1_init(int evm_id, int profile)
return;
}
+static void emmc_bone_init(int evm_id, int profile)
+{
+ printk("emmc_bone_init\n");
+ setup_pin_mux(mmc1_pin_mux);
+ am335x_mmc[1].mmc = 2;
+ am335x_mmc[1].caps = MMC_CAP_4_BIT_DATA;
+ am335x_mmc[1].nonremovable = true;
+ am335x_mmc[1].gpio_cd = -EINVAL;
+ am335x_mmc[1].gpio_wp = -EINVAL;
+ am335x_mmc[1].ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34; /* 3V3 */
+ /* mmc will be initialized when mmc0_init is called */
+ return;
+}
+
static void mmc1_init(int evm_id, int profile)
{
setup_pin_mux(mmc1_pin_mux);
@@ -2598,6 +2613,7 @@ static struct evm_dev_cfg beaglebone_dev_cfg[] = {
{usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{i2c2_init, DEV_ON_BASEBOARD, PROFILE_NONE},
+ {emmc_bone_init,DEV_ON_BASEBOARD, PROFILE_NONE},
{mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{boneleds_init, DEV_ON_BASEBOARD, PROFILE_ALL},
{bonew1_gpio_init, DEV_ON_BASEBOARD, PROFILE_ALL},

0 comments on commit eb2de2d

Please sign in to comment.