blob: 32f3ea168b6c068609abe1cc33cad2a2d39ff31d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Jaehoon Chung7aff9672012-10-15 19:10:31 +00002/*
3 * (C) Copyright 2012 SAMSUNG Electronics
4 * Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung7aff9672012-10-15 19:10:31 +00005 */
6
Sam Protsenko57ddb372024-08-07 22:14:26 -05007#include <clk.h>
Jaehoon Chung7aff9672012-10-15 19:10:31 +00008#include <dwmmc.h>
Simon Glass3ba929a2020-10-30 21:38:53 -06009#include <asm/global_data.h>
Amard8501212013-04-27 11:42:55 +053010#include <malloc.h>
Jaehoon Chungedd9d1dc2016-07-19 16:33:34 +090011#include <errno.h>
Jaehoon Chung7aff9672012-10-15 19:10:31 +000012#include <asm/arch/dwmmc.h>
13#include <asm/arch/clk.h>
Amard8501212013-04-27 11:42:55 +053014#include <asm/arch/pinmux.h>
Przemyslaw Marczakc3885b82015-02-20 12:29:26 +010015#include <asm/arch/power.h>
Jaehoon Chung62811102014-05-16 13:59:52 +090016#include <asm/gpio.h>
Sam Protsenko57ddb372024-08-07 22:14:26 -050017#include <linux/err.h>
Simon Glassbdd5f812023-09-14 18:21:46 -060018#include <linux/printk.h>
Jaehoon Chung7aff9672012-10-15 19:10:31 +000019
Amard8501212013-04-27 11:42:55 +053020#define DWMMC_MAX_CH_NUM 4
21#define DWMMC_MAX_FREQ 52000000
22#define DWMMC_MIN_FREQ 400000
Jaehoon Chungbcb03eab2015-02-04 15:48:40 +090023#define DWMMC_MMC0_SDR_TIMING_VAL 0x03030001
24#define DWMMC_MMC2_SDR_TIMING_VAL 0x03020001
25
Sam Protsenko40ad20d2024-08-07 22:14:31 -050026#define EXYNOS4412_FIXED_CIU_CLK_DIV 4
27
Sam Protsenko3b264402024-08-07 22:14:34 -050028/* Quirks */
29#define DWMCI_QUIRK_DISABLE_SMU BIT(0)
30
Jaehoon Chung98d18e92016-06-30 20:57:37 +090031#ifdef CONFIG_DM_MMC
32#include <dm.h>
33DECLARE_GLOBAL_DATA_PTR;
34
35struct exynos_mmc_plat {
36 struct mmc_config cfg;
37 struct mmc mmc;
38};
39#endif
40
Sam Protsenko60b63e42024-08-07 22:14:30 -050041/* Chip specific data */
42struct exynos_dwmmc_variant {
43 u32 clksel; /* CLKSEL register offset */
Sam Protsenko40ad20d2024-08-07 22:14:31 -050044 u8 div; /* (optional) fixed clock divider value: 0..7 */
Sam Protsenko3b264402024-08-07 22:14:34 -050045 u32 quirks; /* quirk flags - see DWMCI_QUIRK_... */
Sam Protsenko60b63e42024-08-07 22:14:30 -050046};
47
Jaehoon Chungbcb03eab2015-02-04 15:48:40 +090048/* Exynos implmentation specific drver private data */
49struct dwmci_exynos_priv_data {
Jaehoon Chung98d18e92016-06-30 20:57:37 +090050#ifdef CONFIG_DM_MMC
51 struct dwmci_host host;
52#endif
Sam Protsenko57ddb372024-08-07 22:14:26 -050053 struct clk clk;
Jaehoon Chungbcb03eab2015-02-04 15:48:40 +090054 u32 sdr_timing;
Sam Protsenko4fe61da2024-08-07 22:14:35 -050055 u32 ddr_timing;
Sam Protsenko60b63e42024-08-07 22:14:30 -050056 const struct exynos_dwmmc_variant *chip;
Jaehoon Chungbcb03eab2015-02-04 15:48:40 +090057};
Jaehoon Chung7aff9672012-10-15 19:10:31 +000058
Sam Protsenko3192a642024-08-07 22:14:24 -050059static struct dwmci_exynos_priv_data *exynos_dwmmc_get_priv(
60 struct dwmci_host *host)
61{
62#ifdef CONFIG_DM_MMC
63 return container_of(host, struct dwmci_exynos_priv_data, host);
64#else
65 return host->priv;
66#endif
67}
68
Sam Protsenko57ddb372024-08-07 22:14:26 -050069/**
70 * exynos_dwmmc_get_sclk - Get source clock (SDCLKIN) rate
71 * @host: MMC controller object
72 * @rate: Will contain clock rate, Hz
73 *
74 * Return: 0 on success or negative value on error
75 */
76static int exynos_dwmmc_get_sclk(struct dwmci_host *host, unsigned long *rate)
77{
78#ifdef CONFIG_CPU_V7A
79 *rate = get_mmc_clk(host->dev_index);
80#else
81 struct dwmci_exynos_priv_data *priv = exynos_dwmmc_get_priv(host);
82
83 *rate = clk_get_rate(&priv->clk);
84#endif
85
86 if (IS_ERR_VALUE(*rate))
87 return *rate;
88
89 return 0;
90}
91
92/**
93 * exynos_dwmmc_set_sclk - Set source clock (SDCLKIN) rate
94 * @host: MMC controller object
95 * @rate: Desired clock rate, Hz
96 *
97 * Return: 0 on success or negative value on error
98 */
99static int exynos_dwmmc_set_sclk(struct dwmci_host *host, unsigned long rate)
100{
101 int err;
102
103#ifdef CONFIG_CPU_V7A
104 unsigned long sclk;
105 unsigned int div;
106
107 err = exynos_dwmmc_get_sclk(host, &sclk);
108 if (err)
109 return err;
110
111 div = DIV_ROUND_UP(sclk, rate);
112 set_mmc_clk(host->dev_index, div);
113#else
114 struct dwmci_exynos_priv_data *priv = exynos_dwmmc_get_priv(host);
115
116 err = clk_set_rate(&priv->clk, rate);
117 if (err < 0)
118 return err;
119#endif
120
121 return 0;
122}
123
Amard8501212013-04-27 11:42:55 +0530124/*
125 * Function used as callback function to initialise the
126 * CLKSEL register for every mmc channel.
127 */
Siew Chin Limc51e7e12020-12-24 18:21:03 +0800128static int exynos_dwmci_clksel(struct dwmci_host *host)
Jaehoon Chung7aff9672012-10-15 19:10:31 +0000129{
Sam Protsenko3192a642024-08-07 22:14:24 -0500130 struct dwmci_exynos_priv_data *priv = exynos_dwmmc_get_priv(host);
Sam Protsenko4fe61da2024-08-07 22:14:35 -0500131 u32 timing;
Sam Protsenko3192a642024-08-07 22:14:24 -0500132
Sam Protsenko4fe61da2024-08-07 22:14:35 -0500133 if (host->mmc->selected_mode == MMC_DDR_52)
134 timing = priv->ddr_timing;
135 else
136 timing = priv->sdr_timing;
137
138 dwmci_writel(host, priv->chip->clksel, timing);
Siew Chin Limc51e7e12020-12-24 18:21:03 +0800139
140 return 0;
Amard8501212013-04-27 11:42:55 +0530141}
Jaehoon Chung7aff9672012-10-15 19:10:31 +0000142
Sam Protsenko40ad20d2024-08-07 22:14:31 -0500143/**
144 * exynos_dwmmc_get_ciu_div - Get internal clock divider value
145 * @host: MMC controller object
146 *
147 * Returns: Divider value, in range of 1..8
148 */
149static u8 exynos_dwmmc_get_ciu_div(struct dwmci_host *host)
Amard8501212013-04-27 11:42:55 +0530150{
Sam Protsenko60b63e42024-08-07 22:14:30 -0500151 struct dwmci_exynos_priv_data *priv = exynos_dwmmc_get_priv(host);
Sam Protsenko40ad20d2024-08-07 22:14:31 -0500152
153 if (priv->chip->div)
154 return priv->chip->div + 1;
Rajeshwari S Shindeccfa20b2014-02-05 10:48:15 +0530155
156 /*
157 * Since SDCLKIN is divided inside controller by the DIVRATIO
158 * value set in the CLKSEL register, we need to use the same output
159 * clock value to calculate the CLKDIV value.
160 * as per user manual:cclk_in = SDCLKIN / (DIVRATIO + 1)
161 */
Sam Protsenko40ad20d2024-08-07 22:14:31 -0500162 return ((dwmci_readl(host, priv->chip->clksel) >> DWMCI_DIVRATIO_BIT)
163 & DWMCI_DIVRATIO_MASK) + 1;
164}
Sam Protsenko57ddb372024-08-07 22:14:26 -0500165
Sam Protsenko40ad20d2024-08-07 22:14:31 -0500166unsigned int exynos_dwmci_get_clk(struct dwmci_host *host, uint freq)
167{
168 unsigned long sclk;
169 u8 clk_div;
170 int err;
171
172 clk_div = exynos_dwmmc_get_ciu_div(host);
Sam Protsenko57ddb372024-08-07 22:14:26 -0500173 err = exynos_dwmmc_get_sclk(host, &sclk);
174 if (err) {
175 printf("DWMMC%d: failed to get clock rate (%d)\n",
176 host->dev_index, err);
177 return 0;
178 }
Rajeshwari S Shindeccfa20b2014-02-05 10:48:15 +0530179
Sam Protsenko40ad20d2024-08-07 22:14:31 -0500180 return sclk / clk_div;
Jaehoon Chung7aff9672012-10-15 19:10:31 +0000181}
182
Jaehoon Chung42f81a82013-11-29 20:08:57 +0900183static void exynos_dwmci_board_init(struct dwmci_host *host)
184{
Sam Protsenko3192a642024-08-07 22:14:24 -0500185 struct dwmci_exynos_priv_data *priv = exynos_dwmmc_get_priv(host);
Jaehoon Chungbcb03eab2015-02-04 15:48:40 +0900186
Sam Protsenko3b264402024-08-07 22:14:34 -0500187 if (priv->chip->quirks & DWMCI_QUIRK_DISABLE_SMU) {
Jaehoon Chung42f81a82013-11-29 20:08:57 +0900188 dwmci_writel(host, EMMCP_MPSBEGIN0, 0);
189 dwmci_writel(host, EMMCP_SEND0, 0);
190 dwmci_writel(host, EMMCP_CTRL0,
191 MPSCTRL_SECURE_READ_BIT |
192 MPSCTRL_SECURE_WRITE_BIT |
193 MPSCTRL_NON_SECURE_READ_BIT |
194 MPSCTRL_NON_SECURE_WRITE_BIT | MPSCTRL_VALID);
195 }
Jaehoon Chung3d12e552015-02-04 15:48:39 +0900196
Jaehoon Chungbcb03eab2015-02-04 15:48:40 +0900197 /* Set to timing value at initial time */
198 if (priv->sdr_timing)
Jaehoon Chung3d12e552015-02-04 15:48:39 +0900199 exynos_dwmci_clksel(host);
Jaehoon Chung42f81a82013-11-29 20:08:57 +0900200}
201
Jaehoon Chungde61aaee2016-06-29 19:46:17 +0900202static int exynos_dwmci_core_init(struct dwmci_host *host)
Jaehoon Chung7aff9672012-10-15 19:10:31 +0000203{
Sam Protsenko57ddb372024-08-07 22:14:26 -0500204 unsigned long freq;
205 int err;
Jaehoon Chung62811102014-05-16 13:59:52 +0900206
207 if (host->bus_hz)
208 freq = host->bus_hz;
209 else
210 freq = DWMMC_MAX_FREQ;
211
Sam Protsenko57ddb372024-08-07 22:14:26 -0500212 err = exynos_dwmmc_set_sclk(host, freq);
213 if (err) {
214 printf("DWMMC%d: failed to set clock rate on probe (%d); "
215 "continue anyway\n", host->dev_index, err);
216 }
Jaehoon Chung7aff9672012-10-15 19:10:31 +0000217
Amard8501212013-04-27 11:42:55 +0530218 host->name = "EXYNOS DWMMC";
Jaehoon Chung42f81a82013-11-29 20:08:57 +0900219 host->board_init = exynos_dwmci_board_init;
Jaehoon Chungef91dd52014-05-16 13:59:57 +0900220 host->caps = MMC_MODE_DDR_52MHz;
Jaehoon Chung7aff9672012-10-15 19:10:31 +0000221 host->clksel = exynos_dwmci_clksel;
Jaehoon Chungd94735b2013-10-06 18:59:31 +0900222 host->get_mmc_clk = exynos_dwmci_get_clk;
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900223
224#ifndef CONFIG_DM_MMC
Amard8501212013-04-27 11:42:55 +0530225 /* Add the mmc channel to be registered with mmc core */
226 if (add_dwmci(host, DWMMC_MAX_FREQ, DWMMC_MIN_FREQ)) {
Jaehoon Chungde61aaee2016-06-29 19:46:17 +0900227 printf("DWMMC%d registration failed\n", host->dev_index);
Amard8501212013-04-27 11:42:55 +0530228 return -1;
229 }
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900230#endif
231
Amard8501212013-04-27 11:42:55 +0530232 return 0;
233}
Jaehoon Chung7aff9672012-10-15 19:10:31 +0000234
Jaehoon Chung62811102014-05-16 13:59:52 +0900235static int do_dwmci_init(struct dwmci_host *host)
Amard8501212013-04-27 11:42:55 +0530236{
Sam Protsenko0e28aa02024-08-07 22:14:25 -0500237#ifdef CONFIG_CPU_V7A
Jaehoon Chungde61aaee2016-06-29 19:46:17 +0900238 int flag, err;
Amard8501212013-04-27 11:42:55 +0530239
Jaehoon Chung62811102014-05-16 13:59:52 +0900240 flag = host->buswidth == 8 ? PINMUX_FLAG_8BIT_MODE : PINMUX_FLAG_NONE;
241 err = exynos_pinmux_config(host->dev_id, flag);
242 if (err) {
Jaehoon Chungde61aaee2016-06-29 19:46:17 +0900243 printf("DWMMC%d not configure\n", host->dev_index);
Jaehoon Chung62811102014-05-16 13:59:52 +0900244 return err;
245 }
Sam Protsenko0e28aa02024-08-07 22:14:25 -0500246#endif
Amard8501212013-04-27 11:42:55 +0530247
Jaehoon Chungde61aaee2016-06-29 19:46:17 +0900248 return exynos_dwmci_core_init(host);
Jaehoon Chung62811102014-05-16 13:59:52 +0900249}
Amard8501212013-04-27 11:42:55 +0530250
Sam Protsenkof78333a2024-08-07 22:14:27 -0500251#ifdef CONFIG_DM_MMC
252static int exynos_dwmmc_of_to_plat(struct udevice *dev)
Jaehoon Chung62811102014-05-16 13:59:52 +0900253{
Sam Protsenkof78333a2024-08-07 22:14:27 -0500254 struct dwmci_exynos_priv_data *priv = dev_get_priv(dev);
255 struct dwmci_host *host = &priv->host;
Jaehoon Chung62811102014-05-16 13:59:52 +0900256 int err = 0;
Sam Protsenkobab187c2024-08-07 22:14:29 -0500257 u32 div, timing[2];
Amard8501212013-04-27 11:42:55 +0530258
Sam Protsenko60b63e42024-08-07 22:14:30 -0500259 priv->chip = (struct exynos_dwmmc_variant *)dev_get_driver_data(dev);
260
Sam Protsenko0e28aa02024-08-07 22:14:25 -0500261#ifdef CONFIG_CPU_V7A
Sam Protsenko6002ceb2024-08-07 22:14:28 -0500262 const void *blob = gd->fdt_blob;
263 int node = dev_of_offset(dev);
264
Jaehoon Chung62811102014-05-16 13:59:52 +0900265 /* Extract device id for each mmc channel */
266 host->dev_id = pinmux_decode_periph_id(blob, node);
Amard8501212013-04-27 11:42:55 +0530267
Sam Protsenko6002ceb2024-08-07 22:14:28 -0500268 host->dev_index = dev_read_u32_default(dev, "index", host->dev_id);
Jaehoon Chungdb313bf2014-11-28 20:42:33 +0900269 if (host->dev_index == host->dev_id)
270 host->dev_index = host->dev_id - PERIPH_ID_SDMMC0;
271
Jaehoon Chunge0303c72016-06-29 19:46:16 +0900272 if (host->dev_index > 4) {
273 printf("DWMMC%d: Can't get the dev index\n", host->dev_index);
274 return -EINVAL;
275 }
Sam Protsenko0e28aa02024-08-07 22:14:25 -0500276#else
277 if (dev_read_bool(dev, "non-removable"))
278 host->dev_index = 0; /* eMMC */
279 else
280 host->dev_index = 2; /* SD card */
281#endif
Jaehoon Chunge0303c72016-06-29 19:46:16 +0900282
Jaehoon Chung865ecd92016-06-29 19:46:18 +0900283 /* Get the bus width from the device node (Default is 4bit buswidth) */
Sam Protsenko38d8d5d2024-08-07 22:14:32 -0500284 host->buswidth = dev_read_u32_default(dev, "bus-width", 4);
Amard8501212013-04-27 11:42:55 +0530285
Jaehoon Chung62811102014-05-16 13:59:52 +0900286 /* Set the base address from the device node */
Sam Protsenko745edd62024-08-07 22:14:23 -0500287 host->ioaddr = dev_read_addr_ptr(dev);
288 if (!host->ioaddr) {
Jaehoon Chungdb313bf2014-11-28 20:42:33 +0900289 printf("DWMMC%d: Can't get base address\n", host->dev_index);
Jaehoon Chung62811102014-05-16 13:59:52 +0900290 return -EINVAL;
291 }
Jaehoon Chung62811102014-05-16 13:59:52 +0900292
Sam Protsenko40ad20d2024-08-07 22:14:31 -0500293 if (priv->chip->div)
294 div = priv->chip->div;
295 else
296 div = dev_read_u32_default(dev, "samsung,dw-mshc-ciu-div", 0);
Sam Protsenkobab187c2024-08-07 22:14:29 -0500297 err = dev_read_u32_array(dev, "samsung,dw-mshc-sdr-timing", timing, 2);
Jaehoon Chung62811102014-05-16 13:59:52 +0900298 if (err) {
Sam Protsenkobab187c2024-08-07 22:14:29 -0500299 printf("DWMMC%d: Can't get sdr-timings\n", host->dev_index);
Jaehoon Chung62811102014-05-16 13:59:52 +0900300 return -EINVAL;
301 }
302
Sam Protsenkobab187c2024-08-07 22:14:29 -0500303 priv->sdr_timing = DWMCI_SET_SAMPLE_CLK(timing[0]) |
304 DWMCI_SET_DRV_CLK(timing[1]) |
305 DWMCI_SET_DIV_RATIO(div);
Jaehoon Chungbcb03eab2015-02-04 15:48:40 +0900306
307 /* sdr_timing didn't assigned anything, use the default value */
308 if (!priv->sdr_timing) {
309 if (host->dev_index == 0)
310 priv->sdr_timing = DWMMC_MMC0_SDR_TIMING_VAL;
311 else if (host->dev_index == 2)
312 priv->sdr_timing = DWMMC_MMC2_SDR_TIMING_VAL;
313 }
Jaehoon Chung62811102014-05-16 13:59:52 +0900314
Sam Protsenko4fe61da2024-08-07 22:14:35 -0500315 err = dev_read_u32_array(dev, "samsung,dw-mshc-ddr-timing", timing, 2);
316 if (err) {
317 debug("DWMMC%d: Can't get ddr-timings, using sdr-timings\n",
318 host->dev_index);
319 priv->ddr_timing = priv->sdr_timing;
320 } else {
321 priv->ddr_timing = DWMCI_SET_SAMPLE_CLK(timing[0]) |
322 DWMCI_SET_DRV_CLK(timing[1]) |
323 DWMCI_SET_DIV_RATIO(div);
324 }
325
Sam Protsenko751fdf12024-08-07 22:14:17 -0500326 host->fifo_depth = dev_read_u32_default(dev, "fifo-depth", 0);
Sam Protsenkob4dbd282024-08-07 22:14:33 -0500327 host->bus_hz = dev_read_u32_default(dev, "clock-frequency", 0);
Jaehoon Chung62811102014-05-16 13:59:52 +0900328
Jaehoon Chung7aff9672012-10-15 19:10:31 +0000329 return 0;
330}
Jaehoon Chung62811102014-05-16 13:59:52 +0900331
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900332static int exynos_dwmmc_probe(struct udevice *dev)
333{
Simon Glassfa20e932020-12-03 16:55:20 -0700334 struct exynos_mmc_plat *plat = dev_get_plat(dev);
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900335 struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev);
336 struct dwmci_exynos_priv_data *priv = dev_get_priv(dev);
337 struct dwmci_host *host = &priv->host;
338 int err;
339
Sam Protsenko57ddb372024-08-07 22:14:26 -0500340#ifndef CONFIG_CPU_V7A
341 err = clk_get_by_index(dev, 1, &priv->clk); /* ciu */
342 if (err)
343 return err;
344#endif
345
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900346 err = do_dwmci_init(host);
347 if (err)
348 return err;
349
Jaehoon Chungbf819d02016-09-23 19:13:16 +0900350 dwmci_setup_cfg(&plat->cfg, host, DWMMC_MAX_FREQ, DWMMC_MIN_FREQ);
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900351 host->mmc = &plat->mmc;
352 host->mmc->priv = &priv->host;
353 host->priv = dev;
354 upriv->mmc = host->mmc;
355
356 return dwmci_probe(dev);
357}
358
359static int exynos_dwmmc_bind(struct udevice *dev)
360{
Simon Glassfa20e932020-12-03 16:55:20 -0700361 struct exynos_mmc_plat *plat = dev_get_plat(dev);
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900362
Masahiro Yamadacdb67f32016-09-06 22:17:32 +0900363 return dwmci_bind(dev, &plat->mmc, &plat->cfg);
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900364}
365
Sam Protsenko60b63e42024-08-07 22:14:30 -0500366static const struct exynos_dwmmc_variant exynos4_drv_data = {
367 .clksel = DWMCI_CLKSEL,
Sam Protsenko40ad20d2024-08-07 22:14:31 -0500368 .div = EXYNOS4412_FIXED_CIU_CLK_DIV - 1,
Sam Protsenko60b63e42024-08-07 22:14:30 -0500369};
370
371static const struct exynos_dwmmc_variant exynos5_drv_data = {
372 .clksel = DWMCI_CLKSEL,
Sam Protsenko3b264402024-08-07 22:14:34 -0500373#ifdef CONFIG_EXYNOS5420
374 .quirks = DWMCI_QUIRK_DISABLE_SMU,
375#endif
Sam Protsenko60b63e42024-08-07 22:14:30 -0500376};
377
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900378static const struct udevice_id exynos_dwmmc_ids[] = {
Sam Protsenko60b63e42024-08-07 22:14:30 -0500379 {
380 .compatible = "samsung,exynos4412-dw-mshc",
381 .data = (ulong)&exynos4_drv_data,
382 }, {
383 .compatible = "samsung,exynos-dwmmc",
384 .data = (ulong)&exynos5_drv_data,
385 },
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900386 { }
387};
388
389U_BOOT_DRIVER(exynos_dwmmc_drv) = {
390 .name = "exynos_dwmmc",
391 .id = UCLASS_MMC,
392 .of_match = exynos_dwmmc_ids,
Sam Protsenkof78333a2024-08-07 22:14:27 -0500393 .of_to_plat = exynos_dwmmc_of_to_plat,
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900394 .bind = exynos_dwmmc_bind,
395 .ops = &dm_dwmci_ops,
396 .probe = exynos_dwmmc_probe,
Simon Glass8a2b47f2020-12-03 16:55:17 -0700397 .priv_auto = sizeof(struct dwmci_exynos_priv_data),
Simon Glass71fa5b42020-12-03 16:55:18 -0700398 .plat_auto = sizeof(struct exynos_mmc_plat),
Jaehoon Chung98d18e92016-06-30 20:57:37 +0900399};
400#endif