blob: 8d49d9af6f54d575fa15d18971a7674481407f26 [file] [log] [blame]
Olof Johansson03d2bfc2011-01-01 23:52:56 -05001/*
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
15#include <linux/err.h>
Paul Gortmaker96547f52011-07-03 15:15:51 -040016#include <linux/module.h>
Olof Johansson03d2bfc2011-01-01 23:52:56 -050017#include <linux/init.h>
18#include <linux/platform_device.h>
19#include <linux/clk.h>
20#include <linux/io.h>
Stephen Warren55cd65e2011-08-30 13:17:16 -060021#include <linux/of.h>
Stephen Warren3e44a1a2012-02-01 16:30:55 -070022#include <linux/of_device.h>
Olof Johansson03d2bfc2011-01-01 23:52:56 -050023#include <linux/mmc/card.h>
24#include <linux/mmc/host.h>
Joseph Lo0aacd232013-03-11 14:44:11 -060025#include <linux/mmc/slot-gpio.h>
Mylene JOSSERAND2391b342015-03-30 23:39:25 +020026#include <linux/gpio/consumer.h>
Olof Johansson03d2bfc2011-01-01 23:52:56 -050027
Olof Johansson03d2bfc2011-01-01 23:52:56 -050028#include "sdhci-pltfm.h"
29
Pavan Kunapulica5879d2012-04-18 18:48:02 +053030/* Tegra SDHOST controller vendor register definitions */
31#define SDHCI_TEGRA_VENDOR_MISC_CTRL 0x120
Andrew Bresticker31453512014-05-22 08:55:35 -070032#define SDHCI_MISC_CTRL_ENABLE_SDR104 0x8
33#define SDHCI_MISC_CTRL_ENABLE_SDR50 0x10
Pavan Kunapulica5879d2012-04-18 18:48:02 +053034#define SDHCI_MISC_CTRL_ENABLE_SDHCI_SPEC_300 0x20
Andrew Bresticker31453512014-05-22 08:55:35 -070035#define SDHCI_MISC_CTRL_ENABLE_DDR50 0x200
Pavan Kunapulica5879d2012-04-18 18:48:02 +053036
Stephen Warren3e44a1a2012-02-01 16:30:55 -070037#define NVQUIRK_FORCE_SDHCI_SPEC_200 BIT(0)
38#define NVQUIRK_ENABLE_BLOCK_GAP_DET BIT(1)
Pavan Kunapulica5879d2012-04-18 18:48:02 +053039#define NVQUIRK_ENABLE_SDHCI_SPEC_300 BIT(2)
Andrew Bresticker31453512014-05-22 08:55:35 -070040#define NVQUIRK_DISABLE_SDR50 BIT(3)
41#define NVQUIRK_DISABLE_SDR104 BIT(4)
42#define NVQUIRK_DISABLE_DDR50 BIT(5)
Stephen Warren3e44a1a2012-02-01 16:30:55 -070043
44struct sdhci_tegra_soc_data {
Lars-Peter Clausen1db5eeb2013-03-13 19:26:03 +010045 const struct sdhci_pltfm_data *pdata;
Stephen Warren3e44a1a2012-02-01 16:30:55 -070046 u32 nvquirks;
47};
48
49struct sdhci_tegra {
Stephen Warren3e44a1a2012-02-01 16:30:55 -070050 const struct sdhci_tegra_soc_data *soc_data;
Mylene JOSSERAND2391b342015-03-30 23:39:25 +020051 struct gpio_desc *power_gpio;
Stephen Warren3e44a1a2012-02-01 16:30:55 -070052};
53
Olof Johansson03d2bfc2011-01-01 23:52:56 -050054static u16 tegra_sdhci_readw(struct sdhci_host *host, int reg)
55{
Stephen Warren3e44a1a2012-02-01 16:30:55 -070056 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
57 struct sdhci_tegra *tegra_host = pltfm_host->priv;
58 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data;
59
60 if (unlikely((soc_data->nvquirks & NVQUIRK_FORCE_SDHCI_SPEC_200) &&
61 (reg == SDHCI_HOST_VERSION))) {
Olof Johansson03d2bfc2011-01-01 23:52:56 -050062 /* Erratum: Version register is invalid in HW. */
63 return SDHCI_SPEC_200;
64 }
65
66 return readw(host->ioaddr + reg);
67}
68
Pavan Kunapuli352ee862015-01-28 11:45:16 -050069static void tegra_sdhci_writew(struct sdhci_host *host, u16 val, int reg)
70{
71 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
Pavan Kunapuli352ee862015-01-28 11:45:16 -050072
Rhyland Klein01df7ec2015-02-11 12:55:51 -050073 switch (reg) {
74 case SDHCI_TRANSFER_MODE:
75 /*
76 * Postpone this write, we must do it together with a
77 * command write that is down below.
78 */
79 pltfm_host->xfer_mode_shadow = val;
80 return;
81 case SDHCI_COMMAND:
82 writel((val << 16) | pltfm_host->xfer_mode_shadow,
83 host->ioaddr + SDHCI_TRANSFER_MODE);
84 return;
Pavan Kunapuli352ee862015-01-28 11:45:16 -050085 }
86
87 writew(val, host->ioaddr + reg);
88}
89
Olof Johansson03d2bfc2011-01-01 23:52:56 -050090static void tegra_sdhci_writel(struct sdhci_host *host, u32 val, int reg)
91{
Stephen Warren3e44a1a2012-02-01 16:30:55 -070092 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
93 struct sdhci_tegra *tegra_host = pltfm_host->priv;
94 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data;
95
Olof Johansson03d2bfc2011-01-01 23:52:56 -050096 /* 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
103 writel(val, host->ioaddr + reg);
104
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700105 if (unlikely((soc_data->nvquirks & NVQUIRK_ENABLE_BLOCK_GAP_DET) &&
106 (reg == SDHCI_INT_ENABLE))) {
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500107 /* Erratum: Must enable block gap interrupt detection */
108 u8 gap_ctrl = readb(host->ioaddr + SDHCI_BLOCK_GAP_CONTROL);
109 if (val & SDHCI_INT_CARD_INT)
110 gap_ctrl |= 0x8;
111 else
112 gap_ctrl &= ~0x8;
113 writeb(gap_ctrl, host->ioaddr + SDHCI_BLOCK_GAP_CONTROL);
114 }
115}
116
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700117static unsigned int tegra_sdhci_get_ro(struct sdhci_host *host)
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500118{
Joseph Lo0aacd232013-03-11 14:44:11 -0600119 return mmc_gpio_get_ro(host->mmc);
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500120}
121
Russell King03231f92014-04-25 12:57:12 +0100122static void tegra_sdhci_reset(struct sdhci_host *host, u8 mask)
Pavan Kunapulica5879d2012-04-18 18:48:02 +0530123{
124 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
125 struct sdhci_tegra *tegra_host = pltfm_host->priv;
126 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data;
Andrew Bresticker31453512014-05-22 08:55:35 -0700127 u32 misc_ctrl;
Pavan Kunapulica5879d2012-04-18 18:48:02 +0530128
Russell King03231f92014-04-25 12:57:12 +0100129 sdhci_reset(host, mask);
130
Pavan Kunapulica5879d2012-04-18 18:48:02 +0530131 if (!(mask & SDHCI_RESET_ALL))
132 return;
133
Andrew Bresticker31453512014-05-22 08:55:35 -0700134 misc_ctrl = sdhci_readw(host, SDHCI_TEGRA_VENDOR_MISC_CTRL);
Pavan Kunapulica5879d2012-04-18 18:48:02 +0530135 /* Erratum: Enable SDHCI spec v3.00 support */
Andrew Bresticker31453512014-05-22 08:55:35 -0700136 if (soc_data->nvquirks & NVQUIRK_ENABLE_SDHCI_SPEC_300)
Pavan Kunapulica5879d2012-04-18 18:48:02 +0530137 misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_SDHCI_SPEC_300;
Andrew Bresticker31453512014-05-22 08:55:35 -0700138 /* Don't advertise UHS modes which aren't supported yet */
139 if (soc_data->nvquirks & NVQUIRK_DISABLE_SDR50)
140 misc_ctrl &= ~SDHCI_MISC_CTRL_ENABLE_SDR50;
141 if (soc_data->nvquirks & NVQUIRK_DISABLE_DDR50)
142 misc_ctrl &= ~SDHCI_MISC_CTRL_ENABLE_DDR50;
143 if (soc_data->nvquirks & NVQUIRK_DISABLE_SDR104)
144 misc_ctrl &= ~SDHCI_MISC_CTRL_ENABLE_SDR104;
145 sdhci_writew(host, misc_ctrl, SDHCI_TEGRA_VENDOR_MISC_CTRL);
Pavan Kunapulica5879d2012-04-18 18:48:02 +0530146}
147
Russell King2317f562014-04-25 12:57:07 +0100148static void tegra_sdhci_set_bus_width(struct sdhci_host *host, int bus_width)
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500149{
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500150 u32 ctrl;
151
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500152 ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL);
Joseph Lo0aacd232013-03-11 14:44:11 -0600153 if ((host->mmc->caps & MMC_CAP_8_BIT_DATA) &&
154 (bus_width == MMC_BUS_WIDTH_8)) {
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500155 ctrl &= ~SDHCI_CTRL_4BITBUS;
156 ctrl |= SDHCI_CTRL_8BITBUS;
157 } else {
158 ctrl &= ~SDHCI_CTRL_8BITBUS;
159 if (bus_width == MMC_BUS_WIDTH_4)
160 ctrl |= SDHCI_CTRL_4BITBUS;
161 else
162 ctrl &= ~SDHCI_CTRL_4BITBUS;
163 }
164 sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL);
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500165}
166
Lars-Peter Clausenc9155682013-03-13 19:26:05 +0100167static const struct sdhci_ops tegra_sdhci_ops = {
Shawn Guo85d65092011-05-27 23:48:12 +0800168 .get_ro = tegra_sdhci_get_ro,
Shawn Guo85d65092011-05-27 23:48:12 +0800169 .read_w = tegra_sdhci_readw,
170 .write_l = tegra_sdhci_writel,
Russell King17710592014-04-25 12:58:55 +0100171 .set_clock = sdhci_set_clock,
Russell King2317f562014-04-25 12:57:07 +0100172 .set_bus_width = tegra_sdhci_set_bus_width,
Russell King03231f92014-04-25 12:57:12 +0100173 .reset = tegra_sdhci_reset,
Russell King96d7b782014-04-25 12:59:26 +0100174 .set_uhs_signaling = sdhci_set_uhs_signaling,
Andrew Brestickerf9260352014-05-22 08:55:36 -0700175 .get_max_clock = sdhci_pltfm_clk_get_max_clock,
Shawn Guo85d65092011-05-27 23:48:12 +0800176};
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500177
Lars-Peter Clausen1db5eeb2013-03-13 19:26:03 +0100178static const struct sdhci_pltfm_data sdhci_tegra20_pdata = {
Shawn Guo85d65092011-05-27 23:48:12 +0800179 .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
180 SDHCI_QUIRK_SINGLE_POWER_WRITE |
181 SDHCI_QUIRK_NO_HISPD_BIT |
Andrew Brestickerf9260352014-05-22 08:55:36 -0700182 SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
183 SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
Shawn Guo85d65092011-05-27 23:48:12 +0800184 .ops = &tegra_sdhci_ops,
185};
186
Thierry Redingd49d19c22015-11-16 10:27:14 +0100187static const struct sdhci_tegra_soc_data soc_data_tegra20 = {
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700188 .pdata = &sdhci_tegra20_pdata,
189 .nvquirks = NVQUIRK_FORCE_SDHCI_SPEC_200 |
190 NVQUIRK_ENABLE_BLOCK_GAP_DET,
191};
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700192
Lars-Peter Clausen1db5eeb2013-03-13 19:26:03 +0100193static const struct sdhci_pltfm_data sdhci_tegra30_pdata = {
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700194 .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
195 SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
196 SDHCI_QUIRK_SINGLE_POWER_WRITE |
197 SDHCI_QUIRK_NO_HISPD_BIT |
Andrew Brestickerf9260352014-05-22 08:55:36 -0700198 SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
199 SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700200 .ops = &tegra_sdhci_ops,
201};
202
Thierry Redingd49d19c22015-11-16 10:27:14 +0100203static const struct sdhci_tegra_soc_data soc_data_tegra30 = {
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700204 .pdata = &sdhci_tegra30_pdata,
Andrew Bresticker31453512014-05-22 08:55:35 -0700205 .nvquirks = NVQUIRK_ENABLE_SDHCI_SPEC_300 |
206 NVQUIRK_DISABLE_SDR50 |
207 NVQUIRK_DISABLE_SDR104,
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700208};
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700209
Rhyland Klein01df7ec2015-02-11 12:55:51 -0500210static const struct sdhci_ops tegra114_sdhci_ops = {
211 .get_ro = tegra_sdhci_get_ro,
212 .read_w = tegra_sdhci_readw,
213 .write_w = tegra_sdhci_writew,
214 .write_l = tegra_sdhci_writel,
215 .set_clock = sdhci_set_clock,
216 .set_bus_width = tegra_sdhci_set_bus_width,
217 .reset = tegra_sdhci_reset,
218 .set_uhs_signaling = sdhci_set_uhs_signaling,
219 .get_max_clock = sdhci_pltfm_clk_get_max_clock,
220};
221
Lars-Peter Clausen1db5eeb2013-03-13 19:26:03 +0100222static const struct sdhci_pltfm_data sdhci_tegra114_pdata = {
Rhyland Klein5ebf2552013-02-20 13:35:17 -0500223 .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
224 SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
225 SDHCI_QUIRK_SINGLE_POWER_WRITE |
226 SDHCI_QUIRK_NO_HISPD_BIT |
Andrew Brestickerf9260352014-05-22 08:55:36 -0700227 SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
228 SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
Rhyland Klein01df7ec2015-02-11 12:55:51 -0500229 .ops = &tegra114_sdhci_ops,
Rhyland Klein5ebf2552013-02-20 13:35:17 -0500230};
231
Thierry Redingd49d19c22015-11-16 10:27:14 +0100232static const struct sdhci_tegra_soc_data soc_data_tegra114 = {
Rhyland Klein5ebf2552013-02-20 13:35:17 -0500233 .pdata = &sdhci_tegra114_pdata,
Andrew Bresticker31453512014-05-22 08:55:35 -0700234 .nvquirks = NVQUIRK_DISABLE_SDR50 |
235 NVQUIRK_DISABLE_DDR50 |
Rhyland Klein01df7ec2015-02-11 12:55:51 -0500236 NVQUIRK_DISABLE_SDR104,
Rhyland Klein5ebf2552013-02-20 13:35:17 -0500237};
238
Bill Pemberton498d83e2012-11-19 13:24:22 -0500239static const struct of_device_id sdhci_tegra_dt_match[] = {
Stephen Warren67debea2014-01-06 11:17:47 -0700240 { .compatible = "nvidia,tegra124-sdhci", .data = &soc_data_tegra114 },
Rhyland Klein5ebf2552013-02-20 13:35:17 -0500241 { .compatible = "nvidia,tegra114-sdhci", .data = &soc_data_tegra114 },
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700242 { .compatible = "nvidia,tegra30-sdhci", .data = &soc_data_tegra30 },
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700243 { .compatible = "nvidia,tegra20-sdhci", .data = &soc_data_tegra20 },
Grant Likely275173b2011-08-23 12:15:33 -0600244 {}
245};
Arnd Bergmanne4404fa2013-04-23 15:05:57 -0400246MODULE_DEVICE_TABLE(of, sdhci_tegra_dt_match);
Grant Likely275173b2011-08-23 12:15:33 -0600247
Bill Pembertonc3be1ef2012-11-19 13:23:06 -0500248static int sdhci_tegra_probe(struct platform_device *pdev)
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500249{
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700250 const struct of_device_id *match;
251 const struct sdhci_tegra_soc_data *soc_data;
252 struct sdhci_host *host;
Shawn Guo85d65092011-05-27 23:48:12 +0800253 struct sdhci_pltfm_host *pltfm_host;
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700254 struct sdhci_tegra *tegra_host;
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500255 struct clk *clk;
256 int rc;
257
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700258 match = of_match_device(sdhci_tegra_dt_match, &pdev->dev);
Joseph Lob37f9d92012-08-17 15:04:31 +0800259 if (!match)
260 return -EINVAL;
261 soc_data = match->data;
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700262
Christian Daudt0e748232013-05-29 13:50:05 -0700263 host = sdhci_pltfm_init(pdev, soc_data->pdata, 0);
Shawn Guo85d65092011-05-27 23:48:12 +0800264 if (IS_ERR(host))
265 return PTR_ERR(host);
Shawn Guo85d65092011-05-27 23:48:12 +0800266 pltfm_host = sdhci_priv(host);
267
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700268 tegra_host = devm_kzalloc(&pdev->dev, sizeof(*tegra_host), GFP_KERNEL);
269 if (!tegra_host) {
270 dev_err(mmc_dev(host->mmc), "failed to allocate tegra_host\n");
271 rc = -ENOMEM;
Stephen Warren0e786102013-02-15 15:07:19 -0700272 goto err_alloc_tegra_host;
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700273 }
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700274 tegra_host->soc_data = soc_data;
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700275 pltfm_host->priv = tegra_host;
Grant Likely275173b2011-08-23 12:15:33 -0600276
Mylene JOSSERAND2391b342015-03-30 23:39:25 +0200277 rc = mmc_of_parse(host->mmc);
Simon Baatz47caa842013-06-09 22:14:16 +0200278 if (rc)
279 goto err_parse_dt;
Stephen Warren0e786102013-02-15 15:07:19 -0700280
Mylene JOSSERAND2391b342015-03-30 23:39:25 +0200281 tegra_host->power_gpio = devm_gpiod_get_optional(&pdev->dev, "power",
282 GPIOD_OUT_HIGH);
283 if (IS_ERR(tegra_host->power_gpio)) {
284 rc = PTR_ERR(tegra_host->power_gpio);
285 goto err_power_req;
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500286 }
287
Kevin Haoe4f79d92015-02-27 15:47:27 +0800288 clk = devm_clk_get(mmc_dev(host->mmc), NULL);
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500289 if (IS_ERR(clk)) {
290 dev_err(mmc_dev(host->mmc), "clk err\n");
291 rc = PTR_ERR(clk);
Shawn Guo85d65092011-05-27 23:48:12 +0800292 goto err_clk_get;
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500293 }
Prashant Gaikwad1e674bc2012-06-05 09:59:37 +0530294 clk_prepare_enable(clk);
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500295 pltfm_host->clk = clk;
296
Shawn Guo85d65092011-05-27 23:48:12 +0800297 rc = sdhci_add_host(host);
298 if (rc)
299 goto err_add_host;
300
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500301 return 0;
302
Shawn Guo85d65092011-05-27 23:48:12 +0800303err_add_host:
Prashant Gaikwad1e674bc2012-06-05 09:59:37 +0530304 clk_disable_unprepare(pltfm_host->clk);
Shawn Guo85d65092011-05-27 23:48:12 +0800305err_clk_get:
Shawn Guo85d65092011-05-27 23:48:12 +0800306err_power_req:
Simon Baatz47caa842013-06-09 22:14:16 +0200307err_parse_dt:
Stephen Warren0e786102013-02-15 15:07:19 -0700308err_alloc_tegra_host:
Shawn Guo85d65092011-05-27 23:48:12 +0800309 sdhci_pltfm_free(pdev);
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500310 return rc;
311}
312
Shawn Guo85d65092011-05-27 23:48:12 +0800313static struct platform_driver sdhci_tegra_driver = {
314 .driver = {
315 .name = "sdhci-tegra",
Grant Likely275173b2011-08-23 12:15:33 -0600316 .of_match_table = sdhci_tegra_dt_match,
Manuel Lauss29495aa2011-11-03 11:09:45 +0100317 .pm = SDHCI_PLTFM_PMOPS,
Shawn Guo85d65092011-05-27 23:48:12 +0800318 },
319 .probe = sdhci_tegra_probe,
Kevin Haocaebcae2015-02-27 15:47:31 +0800320 .remove = sdhci_pltfm_unregister,
Olof Johansson03d2bfc2011-01-01 23:52:56 -0500321};
322
Axel Lind1f81a62011-11-26 12:55:43 +0800323module_platform_driver(sdhci_tegra_driver);
Shawn Guo85d65092011-05-27 23:48:12 +0800324
325MODULE_DESCRIPTION("SDHCI driver for Tegra");
Stephen Warren3e44a1a2012-02-01 16:30:55 -0700326MODULE_AUTHOR("Google, Inc.");
Shawn Guo85d65092011-05-27 23:48:12 +0800327MODULE_LICENSE("GPL v2");