Lines Matching refs:mmc
40 struct omap_hsmmc_platform_data *mmc = dev->platform_data; in omap_hsmmc1_before_set_reg() local
42 if (mmc->remux) in omap_hsmmc1_before_set_reg()
43 mmc->remux(dev, power_on); in omap_hsmmc1_before_set_reg()
65 if (mmc->internal_clock) { in omap_hsmmc1_before_set_reg()
112 static void hsmmc2_select_input_clk_src(struct omap_hsmmc_platform_data *mmc) in hsmmc2_select_input_clk_src() argument
117 if (mmc->internal_clock) in hsmmc2_select_input_clk_src()
126 struct omap_hsmmc_platform_data *mmc = dev->platform_data; in hsmmc2_before_set_reg() local
128 if (mmc->remux) in hsmmc2_before_set_reg()
129 mmc->remux(dev, power_on); in hsmmc2_before_set_reg()
132 hsmmc2_select_input_clk_src(mmc); in hsmmc2_before_set_reg()
137 struct omap_hsmmc_platform_data *mmc = dev->platform_data; in am35x_hsmmc2_set_power() local
140 hsmmc2_select_input_clk_src(mmc); in am35x_hsmmc2_set_power()
236 struct omap_hsmmc_platform_data *mmc) in omap_hsmmc_pdata_init() argument
251 c->mmc, 1); in omap_hsmmc_pdata_init()
252 mmc->name = hc_name; in omap_hsmmc_pdata_init()
253 mmc->caps = c->caps; in omap_hsmmc_pdata_init()
254 mmc->internal_clock = !c->ext_clock; in omap_hsmmc_pdata_init()
255 mmc->reg_offset = 0; in omap_hsmmc_pdata_init()
259 mmc->gpio_cd = -EINVAL; in omap_hsmmc_pdata_init()
260 mmc->gpio_cod = c->gpio_cd; in omap_hsmmc_pdata_init()
263 mmc->gpio_cd = c->gpio_cd; in omap_hsmmc_pdata_init()
264 mmc->gpio_cod = -EINVAL; in omap_hsmmc_pdata_init()
266 mmc->gpio_wp = c->gpio_wp; in omap_hsmmc_pdata_init()
268 mmc->remux = c->remux; in omap_hsmmc_pdata_init()
269 mmc->init_card = c->init_card; in omap_hsmmc_pdata_init()
272 mmc->nonremovable = 1; in omap_hsmmc_pdata_init()
282 mmc->ocr_mask = MMC_VDD_165_195 | in omap_hsmmc_pdata_init()
289 mmc->ocr_mask = c->ocr_mask; in omap_hsmmc_pdata_init()
292 mmc->features |= HSMMC_HAS_PBIAS; in omap_hsmmc_pdata_init()
294 switch (c->mmc) { in omap_hsmmc_pdata_init()
296 if (mmc->features & HSMMC_HAS_PBIAS) { in omap_hsmmc_pdata_init()
298 mmc->before_set_reg = in omap_hsmmc_pdata_init()
300 mmc->after_set_reg = in omap_hsmmc_pdata_init()
305 mmc->set_power = nop_mmc_set_power; in omap_hsmmc_pdata_init()
312 mmc->caps = c->caps; in omap_hsmmc_pdata_init()
317 mmc->set_power = am35x_hsmmc2_set_power; in omap_hsmmc_pdata_init()
325 if (mmc->features & HSMMC_HAS_PBIAS) { in omap_hsmmc_pdata_init()
327 mmc->before_set_reg = hsmmc2_before_set_reg; in omap_hsmmc_pdata_init()
328 mmc->after_set_reg = NULL; in omap_hsmmc_pdata_init()
334 mmc->before_set_reg = NULL; in omap_hsmmc_pdata_init()
335 mmc->after_set_reg = NULL; in omap_hsmmc_pdata_init()
338 pr_err("MMC%d configuration not supported!\n", c->mmc); in omap_hsmmc_pdata_init()
358 for (; c->mmc; c++) { in omap_hsmmc_late_init()
500 for (; controllers->mmc; controllers++) in omap_hsmmc_init()
501 omap_hsmmc_init_one(controllers, controllers->mmc); in omap_hsmmc_init()