dw_mmc-exynos.c 15 KB

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