sdhci-tegra.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. /*
  2. * Copyright (C) 2010 Google, Inc.
  3. *
  4. * This software is licensed under the terms of the GNU General Public
  5. * License version 2, as published by the Free Software Foundation, and
  6. * may be copied, distributed, and modified under those terms.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. */
  14. #include <linux/delay.h>
  15. #include <linux/err.h>
  16. #include <linux/module.h>
  17. #include <linux/init.h>
  18. #include <linux/platform_device.h>
  19. #include <linux/clk.h>
  20. #include <linux/io.h>
  21. #include <linux/of.h>
  22. #include <linux/of_device.h>
  23. #include <linux/mmc/card.h>
  24. #include <linux/mmc/host.h>
  25. #include <linux/mmc/mmc.h>
  26. #include <linux/mmc/slot-gpio.h>
  27. #include <linux/gpio/consumer.h>
  28. #include "sdhci-pltfm.h"
  29. /* Tegra SDHOST controller vendor register definitions */
  30. #define SDHCI_TEGRA_VENDOR_CLOCK_CTRL 0x100
  31. #define SDHCI_CLOCK_CTRL_TAP_MASK 0x00ff0000
  32. #define SDHCI_CLOCK_CTRL_TAP_SHIFT 16
  33. #define SDHCI_CLOCK_CTRL_SDR50_TUNING_OVERRIDE BIT(5)
  34. #define SDHCI_CLOCK_CTRL_PADPIPE_CLKEN_OVERRIDE BIT(3)
  35. #define SDHCI_CLOCK_CTRL_SPI_MODE_CLKEN_OVERRIDE BIT(2)
  36. #define SDHCI_TEGRA_VENDOR_MISC_CTRL 0x120
  37. #define SDHCI_MISC_CTRL_ENABLE_SDR104 0x8
  38. #define SDHCI_MISC_CTRL_ENABLE_SDR50 0x10
  39. #define SDHCI_MISC_CTRL_ENABLE_SDHCI_SPEC_300 0x20
  40. #define SDHCI_MISC_CTRL_ENABLE_DDR50 0x200
  41. #define SDHCI_TEGRA_AUTO_CAL_CONFIG 0x1e4
  42. #define SDHCI_AUTO_CAL_START BIT(31)
  43. #define SDHCI_AUTO_CAL_ENABLE BIT(29)
  44. #define NVQUIRK_FORCE_SDHCI_SPEC_200 BIT(0)
  45. #define NVQUIRK_ENABLE_BLOCK_GAP_DET BIT(1)
  46. #define NVQUIRK_ENABLE_SDHCI_SPEC_300 BIT(2)
  47. #define NVQUIRK_ENABLE_SDR50 BIT(3)
  48. #define NVQUIRK_ENABLE_SDR104 BIT(4)
  49. #define NVQUIRK_ENABLE_DDR50 BIT(5)
  50. #define NVQUIRK_HAS_PADCALIB BIT(6)
  51. struct sdhci_tegra_soc_data {
  52. const struct sdhci_pltfm_data *pdata;
  53. u32 nvquirks;
  54. };
  55. struct sdhci_tegra {
  56. const struct sdhci_tegra_soc_data *soc_data;
  57. struct gpio_desc *power_gpio;
  58. bool ddr_signaling;
  59. bool pad_calib_required;
  60. };
  61. static u16 tegra_sdhci_readw(struct sdhci_host *host, int reg)
  62. {
  63. struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
  64. struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host);
  65. const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data;
  66. if (unlikely((soc_data->nvquirks & NVQUIRK_FORCE_SDHCI_SPEC_200) &&
  67. (reg == SDHCI_HOST_VERSION))) {
  68. /* Erratum: Version register is invalid in HW. */
  69. return SDHCI_SPEC_200;
  70. }
  71. return readw(host->ioaddr + reg);
  72. }
  73. static void tegra_sdhci_writew(struct sdhci_host *host, u16 val, int reg)
  74. {
  75. struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
  76. switch (reg) {
  77. case SDHCI_TRANSFER_MODE:
  78. /*
  79. * Postpone this write, we must do it together with a
  80. * command write that is down below.
  81. */
  82. pltfm_host->xfer_mode_shadow = val;
  83. return;
  84. case SDHCI_COMMAND:
  85. writel((val << 16) | pltfm_host->xfer_mode_shadow,
  86. host->ioaddr + SDHCI_TRANSFER_MODE);
  87. return;
  88. }
  89. writew(val, host->ioaddr + reg);
  90. }
  91. static void tegra_sdhci_writel(struct sdhci_host *host, u32 val, int reg)
  92. {
  93. struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
  94. struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host);
  95. const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data;
  96. /* Seems like we're getting spurious timeout and crc errors, so
  97. * disable signalling of them. In case of real errors software
  98. * timers should take care of eventually detecting them.
  99. */
  100. if (unlikely(reg == SDHCI_SIGNAL_ENABLE))
  101. val &= ~(SDHCI_INT_TIMEOUT|SDHCI_INT_CRC);
  102. writel(val, host->ioaddr + reg);
  103. if (unlikely((soc_data->nvquirks & NVQUIRK_ENABLE_BLOCK_GAP_DET) &&
  104. (reg == SDHCI_INT_ENABLE))) {
  105. /* Erratum: Must enable block gap interrupt detection */
  106. u8 gap_ctrl = readb(host->ioaddr + SDHCI_BLOCK_GAP_CONTROL);
  107. if (val & SDHCI_INT_CARD_INT)
  108. gap_ctrl |= 0x8;
  109. else
  110. gap_ctrl &= ~0x8;
  111. writeb(gap_ctrl, host->ioaddr + SDHCI_BLOCK_GAP_CONTROL);
  112. }
  113. }
  114. static unsigned int tegra_sdhci_get_ro(struct sdhci_host *host)
  115. {
  116. return mmc_gpio_get_ro(host->mmc);
  117. }
  118. static void tegra_sdhci_reset(struct sdhci_host *host, u8 mask)
  119. {
  120. struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
  121. struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host);
  122. const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data;
  123. u32 misc_ctrl, clk_ctrl;
  124. sdhci_reset(host, mask);
  125. if (!(mask & SDHCI_RESET_ALL))
  126. return;
  127. misc_ctrl = sdhci_readl(host, SDHCI_TEGRA_VENDOR_MISC_CTRL);
  128. /* Erratum: Enable SDHCI spec v3.00 support */
  129. if (soc_data->nvquirks & NVQUIRK_ENABLE_SDHCI_SPEC_300)
  130. misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_SDHCI_SPEC_300;
  131. /* Advertise UHS modes as supported by host */
  132. if (soc_data->nvquirks & NVQUIRK_ENABLE_SDR50)
  133. misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_SDR50;
  134. else
  135. misc_ctrl &= ~SDHCI_MISC_CTRL_ENABLE_SDR50;
  136. if (soc_data->nvquirks & NVQUIRK_ENABLE_DDR50)
  137. misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_DDR50;
  138. else
  139. misc_ctrl &= ~SDHCI_MISC_CTRL_ENABLE_DDR50;
  140. if (soc_data->nvquirks & NVQUIRK_ENABLE_SDR104)
  141. misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_SDR104;
  142. else
  143. misc_ctrl &= ~SDHCI_MISC_CTRL_ENABLE_SDR104;
  144. sdhci_writel(host, misc_ctrl, SDHCI_TEGRA_VENDOR_MISC_CTRL);
  145. clk_ctrl = sdhci_readl(host, SDHCI_TEGRA_VENDOR_CLOCK_CTRL);
  146. clk_ctrl &= ~SDHCI_CLOCK_CTRL_SPI_MODE_CLKEN_OVERRIDE;
  147. if (soc_data->nvquirks & SDHCI_MISC_CTRL_ENABLE_SDR50)
  148. clk_ctrl |= SDHCI_CLOCK_CTRL_SDR50_TUNING_OVERRIDE;
  149. sdhci_writel(host, clk_ctrl, SDHCI_TEGRA_VENDOR_CLOCK_CTRL);
  150. if (soc_data->nvquirks & NVQUIRK_HAS_PADCALIB)
  151. tegra_host->pad_calib_required = true;
  152. tegra_host->ddr_signaling = false;
  153. }
  154. static void tegra_sdhci_set_bus_width(struct sdhci_host *host, int bus_width)
  155. {
  156. u32 ctrl;
  157. ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL);
  158. if ((host->mmc->caps & MMC_CAP_8_BIT_DATA) &&
  159. (bus_width == MMC_BUS_WIDTH_8)) {
  160. ctrl &= ~SDHCI_CTRL_4BITBUS;
  161. ctrl |= SDHCI_CTRL_8BITBUS;
  162. } else {
  163. ctrl &= ~SDHCI_CTRL_8BITBUS;
  164. if (bus_width == MMC_BUS_WIDTH_4)
  165. ctrl |= SDHCI_CTRL_4BITBUS;
  166. else
  167. ctrl &= ~SDHCI_CTRL_4BITBUS;
  168. }
  169. sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL);
  170. }
  171. static void tegra_sdhci_pad_autocalib(struct sdhci_host *host)
  172. {
  173. u32 val;
  174. mdelay(1);
  175. val = sdhci_readl(host, SDHCI_TEGRA_AUTO_CAL_CONFIG);
  176. val |= SDHCI_AUTO_CAL_ENABLE | SDHCI_AUTO_CAL_START;
  177. sdhci_writel(host,val, SDHCI_TEGRA_AUTO_CAL_CONFIG);
  178. }
  179. static void tegra_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
  180. {
  181. struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
  182. struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host);
  183. unsigned long host_clk;
  184. if (!clock)
  185. return sdhci_set_clock(host, clock);
  186. host_clk = tegra_host->ddr_signaling ? clock * 2 : clock;
  187. clk_set_rate(pltfm_host->clk, host_clk);
  188. host->max_clk = clk_get_rate(pltfm_host->clk);
  189. sdhci_set_clock(host, clock);
  190. if (tegra_host->pad_calib_required) {
  191. tegra_sdhci_pad_autocalib(host);
  192. tegra_host->pad_calib_required = false;
  193. }
  194. }
  195. static void tegra_sdhci_set_uhs_signaling(struct sdhci_host *host,
  196. unsigned timing)
  197. {
  198. struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
  199. struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host);
  200. if (timing == MMC_TIMING_UHS_DDR50)
  201. tegra_host->ddr_signaling = true;
  202. return sdhci_set_uhs_signaling(host, timing);
  203. }
  204. static unsigned int tegra_sdhci_get_max_clock(struct sdhci_host *host)
  205. {
  206. struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
  207. /*
  208. * DDR modes require the host to run at double the card frequency, so
  209. * the maximum rate we can support is half of the module input clock.
  210. */
  211. return clk_round_rate(pltfm_host->clk, UINT_MAX) / 2;
  212. }
  213. static void tegra_sdhci_set_tap(struct sdhci_host *host, unsigned int tap)
  214. {
  215. u32 reg;
  216. reg = sdhci_readl(host, SDHCI_TEGRA_VENDOR_CLOCK_CTRL);
  217. reg &= ~SDHCI_CLOCK_CTRL_TAP_MASK;
  218. reg |= tap << SDHCI_CLOCK_CTRL_TAP_SHIFT;
  219. sdhci_writel(host, reg, SDHCI_TEGRA_VENDOR_CLOCK_CTRL);
  220. }
  221. static int tegra_sdhci_execute_tuning(struct sdhci_host *host, u32 opcode)
  222. {
  223. unsigned int min, max;
  224. /*
  225. * Start search for minimum tap value at 10, as smaller values are
  226. * may wrongly be reported as working but fail at higher speeds,
  227. * according to the TRM.
  228. */
  229. min = 10;
  230. while (min < 255) {
  231. tegra_sdhci_set_tap(host, min);
  232. if (!mmc_send_tuning(host->mmc, opcode, NULL))
  233. break;
  234. min++;
  235. }
  236. /* Find the maximum tap value that still passes. */
  237. max = min + 1;
  238. while (max < 255) {
  239. tegra_sdhci_set_tap(host, max);
  240. if (mmc_send_tuning(host->mmc, opcode, NULL)) {
  241. max--;
  242. break;
  243. }
  244. max++;
  245. }
  246. /* The TRM states the ideal tap value is at 75% in the passing range. */
  247. tegra_sdhci_set_tap(host, min + ((max - min) * 3 / 4));
  248. return mmc_send_tuning(host->mmc, opcode, NULL);
  249. }
  250. static void tegra_sdhci_voltage_switch(struct sdhci_host *host)
  251. {
  252. struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
  253. struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host);
  254. const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data;
  255. if (soc_data->nvquirks & NVQUIRK_HAS_PADCALIB)
  256. tegra_host->pad_calib_required = true;
  257. }
  258. static const struct sdhci_ops tegra_sdhci_ops = {
  259. .get_ro = tegra_sdhci_get_ro,
  260. .read_w = tegra_sdhci_readw,
  261. .write_l = tegra_sdhci_writel,
  262. .set_clock = tegra_sdhci_set_clock,
  263. .set_bus_width = tegra_sdhci_set_bus_width,
  264. .reset = tegra_sdhci_reset,
  265. .platform_execute_tuning = tegra_sdhci_execute_tuning,
  266. .set_uhs_signaling = tegra_sdhci_set_uhs_signaling,
  267. .voltage_switch = tegra_sdhci_voltage_switch,
  268. .get_max_clock = tegra_sdhci_get_max_clock,
  269. };
  270. static const struct sdhci_pltfm_data sdhci_tegra20_pdata = {
  271. .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
  272. SDHCI_QUIRK_SINGLE_POWER_WRITE |
  273. SDHCI_QUIRK_NO_HISPD_BIT |
  274. SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
  275. SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
  276. .ops = &tegra_sdhci_ops,
  277. };
  278. static const struct sdhci_tegra_soc_data soc_data_tegra20 = {
  279. .pdata = &sdhci_tegra20_pdata,
  280. .nvquirks = NVQUIRK_FORCE_SDHCI_SPEC_200 |
  281. NVQUIRK_ENABLE_BLOCK_GAP_DET,
  282. };
  283. static const struct sdhci_pltfm_data sdhci_tegra30_pdata = {
  284. .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
  285. SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
  286. SDHCI_QUIRK_SINGLE_POWER_WRITE |
  287. SDHCI_QUIRK_NO_HISPD_BIT |
  288. SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
  289. SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
  290. .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
  291. .ops = &tegra_sdhci_ops,
  292. };
  293. static const struct sdhci_tegra_soc_data soc_data_tegra30 = {
  294. .pdata = &sdhci_tegra30_pdata,
  295. .nvquirks = NVQUIRK_ENABLE_SDHCI_SPEC_300 |
  296. NVQUIRK_ENABLE_SDR50 |
  297. NVQUIRK_ENABLE_SDR104 |
  298. NVQUIRK_HAS_PADCALIB,
  299. };
  300. static const struct sdhci_ops tegra114_sdhci_ops = {
  301. .get_ro = tegra_sdhci_get_ro,
  302. .read_w = tegra_sdhci_readw,
  303. .write_w = tegra_sdhci_writew,
  304. .write_l = tegra_sdhci_writel,
  305. .set_clock = tegra_sdhci_set_clock,
  306. .set_bus_width = tegra_sdhci_set_bus_width,
  307. .reset = tegra_sdhci_reset,
  308. .platform_execute_tuning = tegra_sdhci_execute_tuning,
  309. .set_uhs_signaling = tegra_sdhci_set_uhs_signaling,
  310. .voltage_switch = tegra_sdhci_voltage_switch,
  311. .get_max_clock = tegra_sdhci_get_max_clock,
  312. };
  313. static const struct sdhci_pltfm_data sdhci_tegra114_pdata = {
  314. .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
  315. SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
  316. SDHCI_QUIRK_SINGLE_POWER_WRITE |
  317. SDHCI_QUIRK_NO_HISPD_BIT |
  318. SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
  319. SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
  320. .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
  321. .ops = &tegra114_sdhci_ops,
  322. };
  323. static const struct sdhci_tegra_soc_data soc_data_tegra114 = {
  324. .pdata = &sdhci_tegra114_pdata,
  325. };
  326. static const struct sdhci_tegra_soc_data soc_data_tegra124 = {
  327. .pdata = &sdhci_tegra114_pdata,
  328. .nvquirks = NVQUIRK_ENABLE_SDR50 |
  329. NVQUIRK_ENABLE_DDR50 |
  330. NVQUIRK_ENABLE_SDR104 |
  331. NVQUIRK_HAS_PADCALIB,
  332. };
  333. static const struct sdhci_pltfm_data sdhci_tegra210_pdata = {
  334. .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
  335. SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
  336. SDHCI_QUIRK_SINGLE_POWER_WRITE |
  337. SDHCI_QUIRK_NO_HISPD_BIT |
  338. SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
  339. SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
  340. .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
  341. .ops = &tegra114_sdhci_ops,
  342. };
  343. static const struct sdhci_tegra_soc_data soc_data_tegra210 = {
  344. .pdata = &sdhci_tegra210_pdata,
  345. };
  346. static const struct of_device_id sdhci_tegra_dt_match[] = {
  347. { .compatible = "nvidia,tegra210-sdhci", .data = &soc_data_tegra210 },
  348. { .compatible = "nvidia,tegra124-sdhci", .data = &soc_data_tegra124 },
  349. { .compatible = "nvidia,tegra114-sdhci", .data = &soc_data_tegra114 },
  350. { .compatible = "nvidia,tegra30-sdhci", .data = &soc_data_tegra30 },
  351. { .compatible = "nvidia,tegra20-sdhci", .data = &soc_data_tegra20 },
  352. {}
  353. };
  354. MODULE_DEVICE_TABLE(of, sdhci_tegra_dt_match);
  355. static int sdhci_tegra_probe(struct platform_device *pdev)
  356. {
  357. const struct of_device_id *match;
  358. const struct sdhci_tegra_soc_data *soc_data;
  359. struct sdhci_host *host;
  360. struct sdhci_pltfm_host *pltfm_host;
  361. struct sdhci_tegra *tegra_host;
  362. struct clk *clk;
  363. int rc;
  364. match = of_match_device(sdhci_tegra_dt_match, &pdev->dev);
  365. if (!match)
  366. return -EINVAL;
  367. soc_data = match->data;
  368. host = sdhci_pltfm_init(pdev, soc_data->pdata, sizeof(*tegra_host));
  369. if (IS_ERR(host))
  370. return PTR_ERR(host);
  371. pltfm_host = sdhci_priv(host);
  372. tegra_host = sdhci_pltfm_priv(pltfm_host);
  373. tegra_host->ddr_signaling = false;
  374. tegra_host->pad_calib_required = false;
  375. tegra_host->soc_data = soc_data;
  376. rc = mmc_of_parse(host->mmc);
  377. if (rc)
  378. goto err_parse_dt;
  379. if (tegra_host->soc_data->nvquirks & NVQUIRK_ENABLE_DDR50)
  380. host->mmc->caps |= MMC_CAP_1_8V_DDR;
  381. tegra_host->power_gpio = devm_gpiod_get_optional(&pdev->dev, "power",
  382. GPIOD_OUT_HIGH);
  383. if (IS_ERR(tegra_host->power_gpio)) {
  384. rc = PTR_ERR(tegra_host->power_gpio);
  385. goto err_power_req;
  386. }
  387. clk = devm_clk_get(mmc_dev(host->mmc), NULL);
  388. if (IS_ERR(clk)) {
  389. dev_err(mmc_dev(host->mmc), "clk err\n");
  390. rc = PTR_ERR(clk);
  391. goto err_clk_get;
  392. }
  393. clk_prepare_enable(clk);
  394. pltfm_host->clk = clk;
  395. rc = sdhci_add_host(host);
  396. if (rc)
  397. goto err_add_host;
  398. return 0;
  399. err_add_host:
  400. clk_disable_unprepare(pltfm_host->clk);
  401. err_clk_get:
  402. err_power_req:
  403. err_parse_dt:
  404. sdhci_pltfm_free(pdev);
  405. return rc;
  406. }
  407. static struct platform_driver sdhci_tegra_driver = {
  408. .driver = {
  409. .name = "sdhci-tegra",
  410. .of_match_table = sdhci_tegra_dt_match,
  411. .pm = SDHCI_PLTFM_PMOPS,
  412. },
  413. .probe = sdhci_tegra_probe,
  414. .remove = sdhci_pltfm_unregister,
  415. };
  416. module_platform_driver(sdhci_tegra_driver);
  417. MODULE_DESCRIPTION("SDHCI driver for Tegra");
  418. MODULE_AUTHOR("Google, Inc.");
  419. MODULE_LICENSE("GPL v2");