dw_mmc-exynos.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. /*
  2. * Exynos Specific Extensions for Synopsys DW Multimedia Card Interface driver
  3. *
  4. * Copyright (C) 2012, Samsung Electronics Co., Ltd.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #include <linux/module.h>
  12. #include <linux/platform_device.h>
  13. #include <linux/clk.h>
  14. #include <linux/mmc/host.h>
  15. #include <linux/mmc/dw_mmc.h>
  16. #include <linux/mmc/mmc.h>
  17. #include <linux/of.h>
  18. #include <linux/of_gpio.h>
  19. #include <linux/pm_runtime.h>
  20. #include <linux/slab.h>
  21. #include "dw_mmc.h"
  22. #include "dw_mmc-pltfm.h"
  23. #include "dw_mmc-exynos.h"
  24. /* Variations in Exynos specific dw-mshc controller */
  25. enum dw_mci_exynos_type {
  26. DW_MCI_TYPE_EXYNOS4210,
  27. DW_MCI_TYPE_EXYNOS4412,
  28. DW_MCI_TYPE_EXYNOS5250,
  29. DW_MCI_TYPE_EXYNOS5420,
  30. DW_MCI_TYPE_EXYNOS5420_SMU,
  31. DW_MCI_TYPE_EXYNOS7,
  32. DW_MCI_TYPE_EXYNOS7_SMU,
  33. };
  34. /* Exynos implementation specific driver private data */
  35. struct dw_mci_exynos_priv_data {
  36. enum dw_mci_exynos_type ctrl_type;
  37. u8 ciu_div;
  38. u32 sdr_timing;
  39. u32 ddr_timing;
  40. u32 hs400_timing;
  41. u32 tuned_sample;
  42. u32 cur_speed;
  43. u32 dqs_delay;
  44. u32 saved_dqs_en;
  45. u32 saved_strobe_ctrl;
  46. };
  47. static struct dw_mci_exynos_compatible {
  48. char *compatible;
  49. enum dw_mci_exynos_type ctrl_type;
  50. } exynos_compat[] = {
  51. {
  52. .compatible = "samsung,exynos4210-dw-mshc",
  53. .ctrl_type = DW_MCI_TYPE_EXYNOS4210,
  54. }, {
  55. .compatible = "samsung,exynos4412-dw-mshc",
  56. .ctrl_type = DW_MCI_TYPE_EXYNOS4412,
  57. }, {
  58. .compatible = "samsung,exynos5250-dw-mshc",
  59. .ctrl_type = DW_MCI_TYPE_EXYNOS5250,
  60. }, {
  61. .compatible = "samsung,exynos5420-dw-mshc",
  62. .ctrl_type = DW_MCI_TYPE_EXYNOS5420,
  63. }, {
  64. .compatible = "samsung,exynos5420-dw-mshc-smu",
  65. .ctrl_type = DW_MCI_TYPE_EXYNOS5420_SMU,
  66. }, {
  67. .compatible = "samsung,exynos7-dw-mshc",
  68. .ctrl_type = DW_MCI_TYPE_EXYNOS7,
  69. }, {
  70. .compatible = "samsung,exynos7-dw-mshc-smu",
  71. .ctrl_type = DW_MCI_TYPE_EXYNOS7_SMU,
  72. },
  73. };
  74. static inline u8 dw_mci_exynos_get_ciu_div(struct dw_mci *host)
  75. {
  76. struct dw_mci_exynos_priv_data *priv = host->priv;
  77. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS4412)
  78. return EXYNOS4412_FIXED_CIU_CLK_DIV;
  79. else if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS4210)
  80. return EXYNOS4210_FIXED_CIU_CLK_DIV;
  81. else if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  82. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  83. return SDMMC_CLKSEL_GET_DIV(mci_readl(host, CLKSEL64)) + 1;
  84. else
  85. return SDMMC_CLKSEL_GET_DIV(mci_readl(host, CLKSEL)) + 1;
  86. }
  87. static void dw_mci_exynos_config_smu(struct dw_mci *host)
  88. {
  89. struct dw_mci_exynos_priv_data *priv = host->priv;
  90. /*
  91. * If Exynos is provided the Security management,
  92. * set for non-ecryption mode at this time.
  93. */
  94. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS5420_SMU ||
  95. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU) {
  96. mci_writel(host, MPSBEGIN0, 0);
  97. mci_writel(host, MPSEND0, SDMMC_ENDING_SEC_NR_MAX);
  98. mci_writel(host, MPSCTRL0, SDMMC_MPSCTRL_SECURE_WRITE_BIT |
  99. SDMMC_MPSCTRL_NON_SECURE_READ_BIT |
  100. SDMMC_MPSCTRL_VALID |
  101. SDMMC_MPSCTRL_NON_SECURE_WRITE_BIT);
  102. }
  103. }
  104. static int dw_mci_exynos_priv_init(struct dw_mci *host)
  105. {
  106. struct dw_mci_exynos_priv_data *priv = host->priv;
  107. dw_mci_exynos_config_smu(host);
  108. if (priv->ctrl_type >= DW_MCI_TYPE_EXYNOS5420) {
  109. priv->saved_strobe_ctrl = mci_readl(host, HS400_DLINE_CTRL);
  110. priv->saved_dqs_en = mci_readl(host, HS400_DQS_EN);
  111. priv->saved_dqs_en |= AXI_NON_BLOCKING_WR;
  112. mci_writel(host, HS400_DQS_EN, priv->saved_dqs_en);
  113. if (!priv->dqs_delay)
  114. priv->dqs_delay =
  115. DQS_CTRL_GET_RD_DELAY(priv->saved_strobe_ctrl);
  116. }
  117. host->bus_hz /= (priv->ciu_div + 1);
  118. return 0;
  119. }
  120. static void dw_mci_exynos_set_clksel_timing(struct dw_mci *host, u32 timing)
  121. {
  122. struct dw_mci_exynos_priv_data *priv = host->priv;
  123. u32 clksel;
  124. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  125. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  126. clksel = mci_readl(host, CLKSEL64);
  127. else
  128. clksel = mci_readl(host, CLKSEL);
  129. clksel = (clksel & ~SDMMC_CLKSEL_TIMING_MASK) | timing;
  130. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  131. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  132. mci_writel(host, CLKSEL64, clksel);
  133. else
  134. mci_writel(host, CLKSEL, clksel);
  135. /*
  136. * Exynos4412 and Exynos5250 extends the use of CMD register with the
  137. * use of bit 29 (which is reserved on standard MSHC controllers) for
  138. * optionally bypassing the HOLD register for command and data. The
  139. * HOLD register should be bypassed in case there is no phase shift
  140. * applied on CMD/DATA that is sent to the card.
  141. */
  142. if (!SDMMC_CLKSEL_GET_DRV_WD3(clksel) && host->cur_slot)
  143. set_bit(DW_MMC_CARD_NO_USE_HOLD, &host->cur_slot->flags);
  144. }
  145. #ifdef CONFIG_PM
  146. static int dw_mci_exynos_runtime_resume(struct device *dev)
  147. {
  148. struct dw_mci *host = dev_get_drvdata(dev);
  149. dw_mci_exynos_config_smu(host);
  150. return dw_mci_runtime_resume(dev);
  151. }
  152. /**
  153. * dw_mci_exynos_resume_noirq - Exynos-specific resume code
  154. *
  155. * On exynos5420 there is a silicon errata that will sometimes leave the
  156. * WAKEUP_INT bit in the CLKSEL register asserted. This bit is 1 to indicate
  157. * that it fired and we can clear it by writing a 1 back. Clear it to prevent
  158. * interrupts from going off constantly.
  159. *
  160. * We run this code on all exynos variants because it doesn't hurt.
  161. */
  162. static int dw_mci_exynos_resume_noirq(struct device *dev)
  163. {
  164. struct dw_mci *host = dev_get_drvdata(dev);
  165. struct dw_mci_exynos_priv_data *priv = host->priv;
  166. u32 clksel;
  167. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  168. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  169. clksel = mci_readl(host, CLKSEL64);
  170. else
  171. clksel = mci_readl(host, CLKSEL);
  172. if (clksel & SDMMC_CLKSEL_WAKEUP_INT) {
  173. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  174. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  175. mci_writel(host, CLKSEL64, clksel);
  176. else
  177. mci_writel(host, CLKSEL, clksel);
  178. }
  179. return 0;
  180. }
  181. #else
  182. #define dw_mci_exynos_resume_noirq NULL
  183. #endif /* CONFIG_PM */
  184. static void dw_mci_exynos_config_hs400(struct dw_mci *host, u32 timing)
  185. {
  186. struct dw_mci_exynos_priv_data *priv = host->priv;
  187. u32 dqs, strobe;
  188. /*
  189. * Not supported to configure register
  190. * related to HS400
  191. */
  192. if (priv->ctrl_type < DW_MCI_TYPE_EXYNOS5420) {
  193. if (timing == MMC_TIMING_MMC_HS400)
  194. dev_warn(host->dev,
  195. "cannot configure HS400, unsupported chipset\n");
  196. return;
  197. }
  198. dqs = priv->saved_dqs_en;
  199. strobe = priv->saved_strobe_ctrl;
  200. if (timing == MMC_TIMING_MMC_HS400) {
  201. dqs |= DATA_STROBE_EN;
  202. strobe = DQS_CTRL_RD_DELAY(strobe, priv->dqs_delay);
  203. } else {
  204. dqs &= ~DATA_STROBE_EN;
  205. }
  206. mci_writel(host, HS400_DQS_EN, dqs);
  207. mci_writel(host, HS400_DLINE_CTRL, strobe);
  208. }
  209. static void dw_mci_exynos_adjust_clock(struct dw_mci *host, unsigned int wanted)
  210. {
  211. struct dw_mci_exynos_priv_data *priv = host->priv;
  212. unsigned long actual;
  213. u8 div;
  214. int ret;
  215. /*
  216. * Don't care if wanted clock is zero or
  217. * ciu clock is unavailable
  218. */
  219. if (!wanted || IS_ERR(host->ciu_clk))
  220. return;
  221. /* Guaranteed minimum frequency for cclkin */
  222. if (wanted < EXYNOS_CCLKIN_MIN)
  223. wanted = EXYNOS_CCLKIN_MIN;
  224. if (wanted == priv->cur_speed)
  225. return;
  226. div = dw_mci_exynos_get_ciu_div(host);
  227. ret = clk_set_rate(host->ciu_clk, wanted * div);
  228. if (ret)
  229. dev_warn(host->dev,
  230. "failed to set clk-rate %u error: %d\n",
  231. wanted * div, ret);
  232. actual = clk_get_rate(host->ciu_clk);
  233. host->bus_hz = actual / div;
  234. priv->cur_speed = wanted;
  235. host->current_speed = 0;
  236. }
  237. static void dw_mci_exynos_set_ios(struct dw_mci *host, struct mmc_ios *ios)
  238. {
  239. struct dw_mci_exynos_priv_data *priv = host->priv;
  240. unsigned int wanted = ios->clock;
  241. u32 timing = ios->timing, clksel;
  242. switch (timing) {
  243. case MMC_TIMING_MMC_HS400:
  244. /* Update tuned sample timing */
  245. clksel = SDMMC_CLKSEL_UP_SAMPLE(
  246. priv->hs400_timing, priv->tuned_sample);
  247. wanted <<= 1;
  248. break;
  249. case MMC_TIMING_MMC_DDR52:
  250. clksel = priv->ddr_timing;
  251. /* Should be double rate for DDR mode */
  252. if (ios->bus_width == MMC_BUS_WIDTH_8)
  253. wanted <<= 1;
  254. break;
  255. default:
  256. clksel = priv->sdr_timing;
  257. }
  258. /* Set clock timing for the requested speed mode*/
  259. dw_mci_exynos_set_clksel_timing(host, clksel);
  260. /* Configure setting for HS400 */
  261. dw_mci_exynos_config_hs400(host, timing);
  262. /* Configure clock rate */
  263. dw_mci_exynos_adjust_clock(host, wanted);
  264. }
  265. static int dw_mci_exynos_parse_dt(struct dw_mci *host)
  266. {
  267. struct dw_mci_exynos_priv_data *priv;
  268. struct device_node *np = host->dev->of_node;
  269. u32 timing[2];
  270. u32 div = 0;
  271. int idx;
  272. int ret;
  273. priv = devm_kzalloc(host->dev, sizeof(*priv), GFP_KERNEL);
  274. if (!priv)
  275. return -ENOMEM;
  276. for (idx = 0; idx < ARRAY_SIZE(exynos_compat); idx++) {
  277. if (of_device_is_compatible(np, exynos_compat[idx].compatible))
  278. priv->ctrl_type = exynos_compat[idx].ctrl_type;
  279. }
  280. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS4412)
  281. priv->ciu_div = EXYNOS4412_FIXED_CIU_CLK_DIV - 1;
  282. else if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS4210)
  283. priv->ciu_div = EXYNOS4210_FIXED_CIU_CLK_DIV - 1;
  284. else {
  285. of_property_read_u32(np, "samsung,dw-mshc-ciu-div", &div);
  286. priv->ciu_div = div;
  287. }
  288. ret = of_property_read_u32_array(np,
  289. "samsung,dw-mshc-sdr-timing", timing, 2);
  290. if (ret)
  291. return ret;
  292. priv->sdr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div);
  293. ret = of_property_read_u32_array(np,
  294. "samsung,dw-mshc-ddr-timing", timing, 2);
  295. if (ret)
  296. return ret;
  297. priv->ddr_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1], div);
  298. ret = of_property_read_u32_array(np,
  299. "samsung,dw-mshc-hs400-timing", timing, 2);
  300. if (!ret && of_property_read_u32(np,
  301. "samsung,read-strobe-delay", &priv->dqs_delay))
  302. dev_dbg(host->dev,
  303. "read-strobe-delay is not found, assuming usage of default value\n");
  304. priv->hs400_timing = SDMMC_CLKSEL_TIMING(timing[0], timing[1],
  305. HS400_FIXED_CIU_CLK_DIV);
  306. host->priv = priv;
  307. return 0;
  308. }
  309. static inline u8 dw_mci_exynos_get_clksmpl(struct dw_mci *host)
  310. {
  311. struct dw_mci_exynos_priv_data *priv = host->priv;
  312. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  313. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  314. return SDMMC_CLKSEL_CCLK_SAMPLE(mci_readl(host, CLKSEL64));
  315. else
  316. return SDMMC_CLKSEL_CCLK_SAMPLE(mci_readl(host, CLKSEL));
  317. }
  318. static inline void dw_mci_exynos_set_clksmpl(struct dw_mci *host, u8 sample)
  319. {
  320. u32 clksel;
  321. struct dw_mci_exynos_priv_data *priv = host->priv;
  322. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  323. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  324. clksel = mci_readl(host, CLKSEL64);
  325. else
  326. clksel = mci_readl(host, CLKSEL);
  327. clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample);
  328. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  329. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  330. mci_writel(host, CLKSEL64, clksel);
  331. else
  332. mci_writel(host, CLKSEL, clksel);
  333. }
  334. static inline u8 dw_mci_exynos_move_next_clksmpl(struct dw_mci *host)
  335. {
  336. struct dw_mci_exynos_priv_data *priv = host->priv;
  337. u32 clksel;
  338. u8 sample;
  339. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  340. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  341. clksel = mci_readl(host, CLKSEL64);
  342. else
  343. clksel = mci_readl(host, CLKSEL);
  344. sample = (clksel + 1) & 0x7;
  345. clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample);
  346. if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
  347. priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
  348. mci_writel(host, CLKSEL64, clksel);
  349. else
  350. mci_writel(host, CLKSEL, clksel);
  351. return sample;
  352. }
  353. static s8 dw_mci_exynos_get_best_clksmpl(u8 candiates)
  354. {
  355. const u8 iter = 8;
  356. u8 __c;
  357. s8 i, loc = -1;
  358. for (i = 0; i < iter; i++) {
  359. __c = ror8(candiates, i);
  360. if ((__c & 0xc7) == 0xc7) {
  361. loc = i;
  362. goto out;
  363. }
  364. }
  365. for (i = 0; i < iter; i++) {
  366. __c = ror8(candiates, i);
  367. if ((__c & 0x83) == 0x83) {
  368. loc = i;
  369. goto out;
  370. }
  371. }
  372. out:
  373. return loc;
  374. }
  375. static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode)
  376. {
  377. struct dw_mci *host = slot->host;
  378. struct dw_mci_exynos_priv_data *priv = host->priv;
  379. struct mmc_host *mmc = slot->mmc;
  380. u8 start_smpl, smpl, candiates = 0;
  381. s8 found = -1;
  382. int ret = 0;
  383. start_smpl = dw_mci_exynos_get_clksmpl(host);
  384. do {
  385. mci_writel(host, TMOUT, ~0);
  386. smpl = dw_mci_exynos_move_next_clksmpl(host);
  387. if (!mmc_send_tuning(mmc, opcode, NULL))
  388. candiates |= (1 << smpl);
  389. } while (start_smpl != smpl);
  390. found = dw_mci_exynos_get_best_clksmpl(candiates);
  391. if (found >= 0) {
  392. dw_mci_exynos_set_clksmpl(host, found);
  393. priv->tuned_sample = found;
  394. } else {
  395. ret = -EIO;
  396. }
  397. return ret;
  398. }
  399. static int dw_mci_exynos_prepare_hs400_tuning(struct dw_mci *host,
  400. struct mmc_ios *ios)
  401. {
  402. struct dw_mci_exynos_priv_data *priv = host->priv;
  403. dw_mci_exynos_set_clksel_timing(host, priv->hs400_timing);
  404. dw_mci_exynos_adjust_clock(host, (ios->clock) << 1);
  405. return 0;
  406. }
  407. /* Common capabilities of Exynos4/Exynos5 SoC */
  408. static unsigned long exynos_dwmmc_caps[4] = {
  409. MMC_CAP_1_8V_DDR | MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23,
  410. MMC_CAP_CMD23,
  411. MMC_CAP_CMD23,
  412. MMC_CAP_CMD23,
  413. };
  414. static const struct dw_mci_drv_data exynos_drv_data = {
  415. .caps = exynos_dwmmc_caps,
  416. .init = dw_mci_exynos_priv_init,
  417. .set_ios = dw_mci_exynos_set_ios,
  418. .parse_dt = dw_mci_exynos_parse_dt,
  419. .execute_tuning = dw_mci_exynos_execute_tuning,
  420. .prepare_hs400_tuning = dw_mci_exynos_prepare_hs400_tuning,
  421. };
  422. static const struct of_device_id dw_mci_exynos_match[] = {
  423. { .compatible = "samsung,exynos4412-dw-mshc",
  424. .data = &exynos_drv_data, },
  425. { .compatible = "samsung,exynos5250-dw-mshc",
  426. .data = &exynos_drv_data, },
  427. { .compatible = "samsung,exynos5420-dw-mshc",
  428. .data = &exynos_drv_data, },
  429. { .compatible = "samsung,exynos5420-dw-mshc-smu",
  430. .data = &exynos_drv_data, },
  431. { .compatible = "samsung,exynos7-dw-mshc",
  432. .data = &exynos_drv_data, },
  433. { .compatible = "samsung,exynos7-dw-mshc-smu",
  434. .data = &exynos_drv_data, },
  435. {},
  436. };
  437. MODULE_DEVICE_TABLE(of, dw_mci_exynos_match);
  438. static int dw_mci_exynos_probe(struct platform_device *pdev)
  439. {
  440. const struct dw_mci_drv_data *drv_data;
  441. const struct of_device_id *match;
  442. int ret;
  443. match = of_match_node(dw_mci_exynos_match, pdev->dev.of_node);
  444. drv_data = match->data;
  445. pm_runtime_get_noresume(&pdev->dev);
  446. pm_runtime_set_active(&pdev->dev);
  447. pm_runtime_enable(&pdev->dev);
  448. ret = dw_mci_pltfm_register(pdev, drv_data);
  449. if (ret) {
  450. pm_runtime_disable(&pdev->dev);
  451. pm_runtime_set_suspended(&pdev->dev);
  452. pm_runtime_put_noidle(&pdev->dev);
  453. return ret;
  454. }
  455. return 0;
  456. }
  457. static int dw_mci_exynos_remove(struct platform_device *pdev)
  458. {
  459. pm_runtime_disable(&pdev->dev);
  460. pm_runtime_set_suspended(&pdev->dev);
  461. pm_runtime_put_noidle(&pdev->dev);
  462. return dw_mci_pltfm_remove(pdev);
  463. }
  464. static const struct dev_pm_ops dw_mci_exynos_pmops = {
  465. SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
  466. pm_runtime_force_resume)
  467. SET_RUNTIME_PM_OPS(dw_mci_runtime_suspend,
  468. dw_mci_exynos_runtime_resume,
  469. NULL)
  470. .resume_noirq = dw_mci_exynos_resume_noirq,
  471. .thaw_noirq = dw_mci_exynos_resume_noirq,
  472. .restore_noirq = dw_mci_exynos_resume_noirq,
  473. };
  474. static struct platform_driver dw_mci_exynos_pltfm_driver = {
  475. .probe = dw_mci_exynos_probe,
  476. .remove = dw_mci_exynos_remove,
  477. .driver = {
  478. .name = "dwmmc_exynos",
  479. .of_match_table = dw_mci_exynos_match,
  480. .pm = &dw_mci_exynos_pmops,
  481. },
  482. };
  483. module_platform_driver(dw_mci_exynos_pltfm_driver);
  484. MODULE_DESCRIPTION("Samsung Specific DW-MSHC Driver Extension");
  485. MODULE_AUTHOR("Thomas Abraham <thomas.ab@samsung.com");
  486. MODULE_LICENSE("GPL v2");
  487. MODULE_ALIAS("platform:dwmmc_exynos");