hsmmc.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. /*
  2. * linux/arch/arm/mach-omap2/hsmmc.c
  3. *
  4. * Copyright (C) 2007-2008 Texas Instruments
  5. * Copyright (C) 2008 Nokia Corporation
  6. * Author: Texas Instruments
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/kernel.h>
  13. #include <linux/slab.h>
  14. #include <linux/string.h>
  15. #include <linux/delay.h>
  16. #include <mach/hardware.h>
  17. #include <plat/mmc.h>
  18. #include <plat/omap-pm.h>
  19. #include <plat/mux.h>
  20. #include <plat/omap_device.h>
  21. #include "mux.h"
  22. #include "hsmmc.h"
  23. #include "control.h"
  24. #if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
  25. static u16 control_pbias_offset;
  26. static u16 control_devconf1_offset;
  27. static u16 control_mmc1;
  28. #define HSMMC_NAME_LEN 9
  29. #if defined(CONFIG_ARCH_OMAP3) && defined(CONFIG_PM)
  30. static int hsmmc_get_context_loss(struct device *dev)
  31. {
  32. return omap_pm_get_dev_context_loss_count(dev);
  33. }
  34. #else
  35. #define hsmmc_get_context_loss NULL
  36. #endif
  37. static void omap_hsmmc1_before_set_reg(struct device *dev, int slot,
  38. int power_on, int vdd)
  39. {
  40. u32 reg, prog_io;
  41. struct omap_mmc_platform_data *mmc = dev->platform_data;
  42. if (mmc->slots[0].remux)
  43. mmc->slots[0].remux(dev, slot, power_on);
  44. /*
  45. * Assume we power both OMAP VMMC1 (for CMD, CLK, DAT0..3) and the
  46. * card with Vcc regulator (from twl4030 or whatever). OMAP has both
  47. * 1.8V and 3.0V modes, controlled by the PBIAS register.
  48. *
  49. * In 8-bit modes, OMAP VMMC1A (for DAT4..7) needs a supply, which
  50. * is most naturally TWL VSIM; those pins also use PBIAS.
  51. *
  52. * FIXME handle VMMC1A as needed ...
  53. */
  54. if (power_on) {
  55. if (cpu_is_omap2430()) {
  56. reg = omap_ctrl_readl(OMAP243X_CONTROL_DEVCONF1);
  57. if ((1 << vdd) >= MMC_VDD_30_31)
  58. reg |= OMAP243X_MMC1_ACTIVE_OVERWRITE;
  59. else
  60. reg &= ~OMAP243X_MMC1_ACTIVE_OVERWRITE;
  61. omap_ctrl_writel(reg, OMAP243X_CONTROL_DEVCONF1);
  62. }
  63. if (mmc->slots[0].internal_clock) {
  64. reg = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0);
  65. reg |= OMAP2_MMCSDIO1ADPCLKISEL;
  66. omap_ctrl_writel(reg, OMAP2_CONTROL_DEVCONF0);
  67. }
  68. reg = omap_ctrl_readl(control_pbias_offset);
  69. if (cpu_is_omap3630()) {
  70. /* Set MMC I/O to 52Mhz */
  71. prog_io = omap_ctrl_readl(OMAP343X_CONTROL_PROG_IO1);
  72. prog_io |= OMAP3630_PRG_SDMMC1_SPEEDCTRL;
  73. omap_ctrl_writel(prog_io, OMAP343X_CONTROL_PROG_IO1);
  74. } else {
  75. reg |= OMAP2_PBIASSPEEDCTRL0;
  76. }
  77. reg &= ~OMAP2_PBIASLITEPWRDNZ0;
  78. omap_ctrl_writel(reg, control_pbias_offset);
  79. } else {
  80. reg = omap_ctrl_readl(control_pbias_offset);
  81. reg &= ~OMAP2_PBIASLITEPWRDNZ0;
  82. omap_ctrl_writel(reg, control_pbias_offset);
  83. }
  84. }
  85. static void omap_hsmmc1_after_set_reg(struct device *dev, int slot,
  86. int power_on, int vdd)
  87. {
  88. u32 reg;
  89. /* 100ms delay required for PBIAS configuration */
  90. msleep(100);
  91. if (power_on) {
  92. reg = omap_ctrl_readl(control_pbias_offset);
  93. reg |= (OMAP2_PBIASLITEPWRDNZ0 | OMAP2_PBIASSPEEDCTRL0);
  94. if ((1 << vdd) <= MMC_VDD_165_195)
  95. reg &= ~OMAP2_PBIASLITEVMODE0;
  96. else
  97. reg |= OMAP2_PBIASLITEVMODE0;
  98. omap_ctrl_writel(reg, control_pbias_offset);
  99. } else {
  100. reg = omap_ctrl_readl(control_pbias_offset);
  101. reg |= (OMAP2_PBIASSPEEDCTRL0 | OMAP2_PBIASLITEPWRDNZ0 |
  102. OMAP2_PBIASLITEVMODE0);
  103. omap_ctrl_writel(reg, control_pbias_offset);
  104. }
  105. }
  106. static void omap4_hsmmc1_before_set_reg(struct device *dev, int slot,
  107. int power_on, int vdd)
  108. {
  109. u32 reg;
  110. /*
  111. * Assume we power both OMAP VMMC1 (for CMD, CLK, DAT0..3) and the
  112. * card with Vcc regulator (from twl4030 or whatever). OMAP has both
  113. * 1.8V and 3.0V modes, controlled by the PBIAS register.
  114. *
  115. * In 8-bit modes, OMAP VMMC1A (for DAT4..7) needs a supply, which
  116. * is most naturally TWL VSIM; those pins also use PBIAS.
  117. *
  118. * FIXME handle VMMC1A as needed ...
  119. */
  120. reg = omap4_ctrl_pad_readl(control_pbias_offset);
  121. reg &= ~(OMAP4_MMC1_PBIASLITE_PWRDNZ_MASK |
  122. OMAP4_MMC1_PWRDNZ_MASK |
  123. OMAP4_USBC1_ICUSB_PWRDNZ_MASK);
  124. omap4_ctrl_pad_writel(reg, control_pbias_offset);
  125. }
  126. static void omap4_hsmmc1_after_set_reg(struct device *dev, int slot,
  127. int power_on, int vdd)
  128. {
  129. u32 reg;
  130. unsigned long timeout;
  131. if (power_on) {
  132. reg = omap4_ctrl_pad_readl(control_pbias_offset);
  133. reg |= OMAP4_MMC1_PBIASLITE_PWRDNZ_MASK;
  134. if ((1 << vdd) <= MMC_VDD_165_195)
  135. reg &= ~OMAP4_MMC1_PBIASLITE_VMODE_MASK;
  136. else
  137. reg |= OMAP4_MMC1_PBIASLITE_VMODE_MASK;
  138. reg |= (OMAP4_MMC1_PBIASLITE_PWRDNZ_MASK |
  139. OMAP4_MMC1_PWRDNZ_MASK |
  140. OMAP4_USBC1_ICUSB_PWRDNZ_MASK);
  141. omap4_ctrl_pad_writel(reg, control_pbias_offset);
  142. timeout = jiffies + msecs_to_jiffies(5);
  143. do {
  144. reg = omap4_ctrl_pad_readl(control_pbias_offset);
  145. if (!(reg & OMAP4_MMC1_PBIASLITE_VMODE_ERROR_MASK))
  146. break;
  147. usleep_range(100, 200);
  148. } while (!time_after(jiffies, timeout));
  149. if (reg & OMAP4_MMC1_PBIASLITE_VMODE_ERROR_MASK) {
  150. pr_err("Pbias Voltage is not same as LDO\n");
  151. /* Caution : On VMODE_ERROR Power Down MMC IO */
  152. reg &= ~(OMAP4_MMC1_PWRDNZ_MASK |
  153. OMAP4_USBC1_ICUSB_PWRDNZ_MASK);
  154. omap4_ctrl_pad_writel(reg, control_pbias_offset);
  155. }
  156. } else {
  157. reg = omap4_ctrl_pad_readl(control_pbias_offset);
  158. reg |= (OMAP4_MMC1_PBIASLITE_PWRDNZ_MASK |
  159. OMAP4_MMC1_PWRDNZ_MASK |
  160. OMAP4_MMC1_PBIASLITE_VMODE_MASK |
  161. OMAP4_USBC1_ICUSB_PWRDNZ_MASK);
  162. omap4_ctrl_pad_writel(reg, control_pbias_offset);
  163. }
  164. }
  165. static void hsmmc23_before_set_reg(struct device *dev, int slot,
  166. int power_on, int vdd)
  167. {
  168. struct omap_mmc_platform_data *mmc = dev->platform_data;
  169. if (mmc->slots[0].remux)
  170. mmc->slots[0].remux(dev, slot, power_on);
  171. if (power_on) {
  172. /* Only MMC2 supports a CLKIN */
  173. if (mmc->slots[0].internal_clock) {
  174. u32 reg;
  175. reg = omap_ctrl_readl(control_devconf1_offset);
  176. reg |= OMAP2_MMCSDIO2ADPCLKISEL;
  177. omap_ctrl_writel(reg, control_devconf1_offset);
  178. }
  179. }
  180. }
  181. static int nop_mmc_set_power(struct device *dev, int slot, int power_on,
  182. int vdd)
  183. {
  184. return 0;
  185. }
  186. static inline void omap_hsmmc_mux(struct omap_mmc_platform_data *mmc_controller,
  187. int controller_nr)
  188. {
  189. if ((mmc_controller->slots[0].switch_pin > 0) && \
  190. (mmc_controller->slots[0].switch_pin < OMAP_MAX_GPIO_LINES))
  191. omap_mux_init_gpio(mmc_controller->slots[0].switch_pin,
  192. OMAP_PIN_INPUT_PULLUP);
  193. if ((mmc_controller->slots[0].gpio_wp > 0) && \
  194. (mmc_controller->slots[0].gpio_wp < OMAP_MAX_GPIO_LINES))
  195. omap_mux_init_gpio(mmc_controller->slots[0].gpio_wp,
  196. OMAP_PIN_INPUT_PULLUP);
  197. if (cpu_is_omap34xx()) {
  198. if (controller_nr == 0) {
  199. omap_mux_init_signal("sdmmc1_clk",
  200. OMAP_PIN_INPUT_PULLUP);
  201. omap_mux_init_signal("sdmmc1_cmd",
  202. OMAP_PIN_INPUT_PULLUP);
  203. omap_mux_init_signal("sdmmc1_dat0",
  204. OMAP_PIN_INPUT_PULLUP);
  205. if (mmc_controller->slots[0].caps &
  206. (MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA)) {
  207. omap_mux_init_signal("sdmmc1_dat1",
  208. OMAP_PIN_INPUT_PULLUP);
  209. omap_mux_init_signal("sdmmc1_dat2",
  210. OMAP_PIN_INPUT_PULLUP);
  211. omap_mux_init_signal("sdmmc1_dat3",
  212. OMAP_PIN_INPUT_PULLUP);
  213. }
  214. if (mmc_controller->slots[0].caps &
  215. MMC_CAP_8_BIT_DATA) {
  216. omap_mux_init_signal("sdmmc1_dat4",
  217. OMAP_PIN_INPUT_PULLUP);
  218. omap_mux_init_signal("sdmmc1_dat5",
  219. OMAP_PIN_INPUT_PULLUP);
  220. omap_mux_init_signal("sdmmc1_dat6",
  221. OMAP_PIN_INPUT_PULLUP);
  222. omap_mux_init_signal("sdmmc1_dat7",
  223. OMAP_PIN_INPUT_PULLUP);
  224. }
  225. }
  226. if (controller_nr == 1) {
  227. /* MMC2 */
  228. omap_mux_init_signal("sdmmc2_clk",
  229. OMAP_PIN_INPUT_PULLUP);
  230. omap_mux_init_signal("sdmmc2_cmd",
  231. OMAP_PIN_INPUT_PULLUP);
  232. omap_mux_init_signal("sdmmc2_dat0",
  233. OMAP_PIN_INPUT_PULLUP);
  234. /*
  235. * For 8 wire configurations, Lines DAT4, 5, 6 and 7
  236. * need to be muxed in the board-*.c files
  237. */
  238. if (mmc_controller->slots[0].caps &
  239. (MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA)) {
  240. omap_mux_init_signal("sdmmc2_dat1",
  241. OMAP_PIN_INPUT_PULLUP);
  242. omap_mux_init_signal("sdmmc2_dat2",
  243. OMAP_PIN_INPUT_PULLUP);
  244. omap_mux_init_signal("sdmmc2_dat3",
  245. OMAP_PIN_INPUT_PULLUP);
  246. }
  247. if (mmc_controller->slots[0].caps &
  248. MMC_CAP_8_BIT_DATA) {
  249. omap_mux_init_signal("sdmmc2_dat4.sdmmc2_dat4",
  250. OMAP_PIN_INPUT_PULLUP);
  251. omap_mux_init_signal("sdmmc2_dat5.sdmmc2_dat5",
  252. OMAP_PIN_INPUT_PULLUP);
  253. omap_mux_init_signal("sdmmc2_dat6.sdmmc2_dat6",
  254. OMAP_PIN_INPUT_PULLUP);
  255. omap_mux_init_signal("sdmmc2_dat7.sdmmc2_dat7",
  256. OMAP_PIN_INPUT_PULLUP);
  257. }
  258. }
  259. /*
  260. * For MMC3 the pins need to be muxed in the board-*.c files
  261. */
  262. }
  263. }
  264. static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
  265. struct omap_mmc_platform_data *mmc)
  266. {
  267. char *hc_name;
  268. hc_name = kzalloc(sizeof(char) * (HSMMC_NAME_LEN + 1), GFP_KERNEL);
  269. if (!hc_name) {
  270. pr_err("Cannot allocate memory for controller slot name\n");
  271. kfree(hc_name);
  272. return -ENOMEM;
  273. }
  274. if (c->name)
  275. strncpy(hc_name, c->name, HSMMC_NAME_LEN);
  276. else
  277. snprintf(hc_name, (HSMMC_NAME_LEN + 1), "mmc%islot%i",
  278. c->mmc, 1);
  279. mmc->slots[0].name = hc_name;
  280. mmc->nr_slots = 1;
  281. mmc->slots[0].caps = c->caps;
  282. mmc->slots[0].internal_clock = !c->ext_clock;
  283. mmc->dma_mask = 0xffffffff;
  284. if (cpu_is_omap44xx())
  285. mmc->reg_offset = OMAP4_MMC_REG_OFFSET;
  286. else
  287. mmc->reg_offset = 0;
  288. mmc->get_context_loss_count = hsmmc_get_context_loss;
  289. mmc->slots[0].switch_pin = c->gpio_cd;
  290. mmc->slots[0].gpio_wp = c->gpio_wp;
  291. mmc->slots[0].remux = c->remux;
  292. mmc->slots[0].init_card = c->init_card;
  293. if (c->cover_only)
  294. mmc->slots[0].cover = 1;
  295. if (c->nonremovable)
  296. mmc->slots[0].nonremovable = 1;
  297. if (c->power_saving)
  298. mmc->slots[0].power_saving = 1;
  299. if (c->no_off)
  300. mmc->slots[0].no_off = 1;
  301. if (c->no_off_init)
  302. mmc->slots[0].no_regulator_off_init = c->no_off_init;
  303. if (c->vcc_aux_disable_is_sleep)
  304. mmc->slots[0].vcc_aux_disable_is_sleep = 1;
  305. /*
  306. * NOTE: MMC slots should have a Vcc regulator set up.
  307. * This may be from a TWL4030-family chip, another
  308. * controllable regulator, or a fixed supply.
  309. *
  310. * temporary HACK: ocr_mask instead of fixed supply
  311. */
  312. mmc->slots[0].ocr_mask = c->ocr_mask;
  313. if (cpu_is_omap3517() || cpu_is_omap3505())
  314. mmc->slots[0].set_power = nop_mmc_set_power;
  315. else
  316. mmc->slots[0].features |= HSMMC_HAS_PBIAS;
  317. if (cpu_is_omap44xx() && (omap_rev() > OMAP4430_REV_ES1_0))
  318. mmc->slots[0].features |= HSMMC_HAS_UPDATED_RESET;
  319. switch (c->mmc) {
  320. case 1:
  321. if (mmc->slots[0].features & HSMMC_HAS_PBIAS) {
  322. /* on-chip level shifting via PBIAS0/PBIAS1 */
  323. if (cpu_is_omap44xx()) {
  324. mmc->slots[0].before_set_reg =
  325. omap4_hsmmc1_before_set_reg;
  326. mmc->slots[0].after_set_reg =
  327. omap4_hsmmc1_after_set_reg;
  328. } else {
  329. mmc->slots[0].before_set_reg =
  330. omap_hsmmc1_before_set_reg;
  331. mmc->slots[0].after_set_reg =
  332. omap_hsmmc1_after_set_reg;
  333. }
  334. }
  335. /* OMAP3630 HSMMC1 supports only 4-bit */
  336. if (cpu_is_omap3630() &&
  337. (c->caps & MMC_CAP_8_BIT_DATA)) {
  338. c->caps &= ~MMC_CAP_8_BIT_DATA;
  339. c->caps |= MMC_CAP_4_BIT_DATA;
  340. mmc->slots[0].caps = c->caps;
  341. }
  342. break;
  343. case 2:
  344. if (c->ext_clock)
  345. c->transceiver = 1;
  346. if (c->transceiver && (c->caps & MMC_CAP_8_BIT_DATA)) {
  347. c->caps &= ~MMC_CAP_8_BIT_DATA;
  348. c->caps |= MMC_CAP_4_BIT_DATA;
  349. }
  350. /* FALLTHROUGH */
  351. case 3:
  352. if (mmc->slots[0].features & HSMMC_HAS_PBIAS) {
  353. /* off-chip level shifting, or none */
  354. mmc->slots[0].before_set_reg = hsmmc23_before_set_reg;
  355. mmc->slots[0].after_set_reg = NULL;
  356. }
  357. break;
  358. case 4:
  359. case 5:
  360. mmc->slots[0].before_set_reg = NULL;
  361. mmc->slots[0].after_set_reg = NULL;
  362. break;
  363. default:
  364. pr_err("MMC%d configuration not supported!\n", c->mmc);
  365. kfree(hc_name);
  366. return -ENODEV;
  367. }
  368. return 0;
  369. }
  370. static struct omap_device_pm_latency omap_hsmmc_latency[] = {
  371. [0] = {
  372. .deactivate_func = omap_device_idle_hwmods,
  373. .activate_func = omap_device_enable_hwmods,
  374. .flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
  375. },
  376. /*
  377. * XXX There should also be an entry here to power off/on the
  378. * MMC regulators/PBIAS cells, etc.
  379. */
  380. };
  381. #define MAX_OMAP_MMC_HWMOD_NAME_LEN 16
  382. void __init omap_init_hsmmc(struct omap2_hsmmc_info *hsmmcinfo, int ctrl_nr)
  383. {
  384. struct omap_hwmod *oh;
  385. struct omap_device *od;
  386. struct omap_device_pm_latency *ohl;
  387. char oh_name[MAX_OMAP_MMC_HWMOD_NAME_LEN];
  388. struct omap_mmc_platform_data *mmc_data;
  389. struct omap_mmc_dev_attr *mmc_dev_attr;
  390. char *name;
  391. int l;
  392. int ohl_cnt = 0;
  393. mmc_data = kzalloc(sizeof(struct omap_mmc_platform_data), GFP_KERNEL);
  394. if (!mmc_data) {
  395. pr_err("Cannot allocate memory for mmc device!\n");
  396. goto done;
  397. }
  398. if (omap_hsmmc_pdata_init(hsmmcinfo, mmc_data) < 0) {
  399. pr_err("%s fails!\n", __func__);
  400. goto done;
  401. }
  402. omap_hsmmc_mux(mmc_data, (ctrl_nr - 1));
  403. name = "omap_hsmmc";
  404. ohl = omap_hsmmc_latency;
  405. ohl_cnt = ARRAY_SIZE(omap_hsmmc_latency);
  406. l = snprintf(oh_name, MAX_OMAP_MMC_HWMOD_NAME_LEN,
  407. "mmc%d", ctrl_nr);
  408. WARN(l >= MAX_OMAP_MMC_HWMOD_NAME_LEN,
  409. "String buffer overflow in MMC%d device setup\n", ctrl_nr);
  410. oh = omap_hwmod_lookup(oh_name);
  411. if (!oh) {
  412. pr_err("Could not look up %s\n", oh_name);
  413. kfree(mmc_data->slots[0].name);
  414. goto done;
  415. }
  416. if (oh->dev_attr != NULL) {
  417. mmc_dev_attr = oh->dev_attr;
  418. mmc_data->controller_flags = mmc_dev_attr->flags;
  419. }
  420. od = omap_device_build(name, ctrl_nr - 1, oh, mmc_data,
  421. sizeof(struct omap_mmc_platform_data), ohl, ohl_cnt, false);
  422. if (IS_ERR(od)) {
  423. WARN(1, "Can't build omap_device for %s:%s.\n", name, oh->name);
  424. kfree(mmc_data->slots[0].name);
  425. goto done;
  426. }
  427. /*
  428. * return device handle to board setup code
  429. * required to populate for regulator framework structure
  430. */
  431. hsmmcinfo->dev = &od->pdev.dev;
  432. done:
  433. kfree(mmc_data);
  434. }
  435. void __init omap2_hsmmc_init(struct omap2_hsmmc_info *controllers)
  436. {
  437. u32 reg;
  438. if (!cpu_is_omap44xx()) {
  439. if (cpu_is_omap2430()) {
  440. control_pbias_offset = OMAP243X_CONTROL_PBIAS_LITE;
  441. control_devconf1_offset = OMAP243X_CONTROL_DEVCONF1;
  442. } else {
  443. control_pbias_offset = OMAP343X_CONTROL_PBIAS_LITE;
  444. control_devconf1_offset = OMAP343X_CONTROL_DEVCONF1;
  445. }
  446. } else {
  447. control_pbias_offset =
  448. OMAP4_CTRL_MODULE_PAD_CORE_CONTROL_PBIASLITE;
  449. control_mmc1 = OMAP4_CTRL_MODULE_PAD_CORE_CONTROL_MMC1;
  450. reg = omap4_ctrl_pad_readl(control_mmc1);
  451. reg |= (OMAP4_SDMMC1_PUSTRENGTH_GRP0_MASK |
  452. OMAP4_SDMMC1_PUSTRENGTH_GRP1_MASK);
  453. reg &= ~(OMAP4_SDMMC1_PUSTRENGTH_GRP2_MASK |
  454. OMAP4_SDMMC1_PUSTRENGTH_GRP3_MASK);
  455. reg |= (OMAP4_USBC1_DR0_SPEEDCTRL_MASK|
  456. OMAP4_SDMMC1_DR1_SPEEDCTRL_MASK |
  457. OMAP4_SDMMC1_DR2_SPEEDCTRL_MASK);
  458. omap4_ctrl_pad_writel(reg, control_mmc1);
  459. }
  460. for (; controllers->mmc; controllers++)
  461. omap_init_hsmmc(controllers, controllers->mmc);
  462. }
  463. #endif