/* * 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 power_on) { if (power_on) omap_mux_write_array(partition, rx51_mmc2_on_mux); else omap_mux_write_array(partition, rx51_mmc2_off_mux); }
static void __init none_modem_cfg_mux(void) { int i; struct omap_mux_partition *partition; struct omap_mux_partition *core = omap_mux_get("core"); struct omap_mux_partition *wkup = omap_mux_get("wkup"); struct omap_muxtbl *tbl; omap_mux_write_array(core, mux_none_modem); for (i = 0; i < ARRAY_SIZE(modem_gpios); i++) { tbl = omap_muxtbl_find_by_name(modem_gpios[i].label); if (!tbl) continue; if (tbl->domain == OMAP4_MUXTBL_DOMAIN_WKUP) partition = wkup; else partition = core; omap_mux_write(partition, OMAP_MUX_MODE7 | OMAP_PIN_INPUT_PULLDOWN, tbl->mux.reg_offset); } }