diff options
author | Dongjin Kim <tobetter@gmail.com> | 2013-02-22 10:17:45 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 12:55:32 -0400 |
commit | 0f6e73d0abde95973354b4921b4d08acf01a8b5c (patch) | |
tree | 33ab2e5f746b3eb0b4fd852d05ab1b3b58fcc545 /drivers/mmc/host | |
parent | 20183d509cadfaee3b2b3ebe368431d566403c3d (diff) |
mmc: dw_mmc: Add MSHC compatible for Exynos4412
This patch adds the compatible string for MSHC controller of Exynos4412.
And exynos5250_dwmmc_caps is renamed to exynos_dwmmc_caps, since it has the
capabilities of common features supported by Exynos4 and Exynos5.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/dw_mmc-exynos.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index 517a6033ead8..c7f09762e6c0 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c | |||
@@ -189,8 +189,8 @@ static int dw_mci_exynos_setup_bus(struct dw_mci *host, | |||
189 | return 0; | 189 | return 0; |
190 | } | 190 | } |
191 | 191 | ||
192 | /* Exynos5250 controller specific capabilities */ | 192 | /* Common capabilities of Exynos4/Exynos5 SoC */ |
193 | static unsigned long exynos5250_dwmmc_caps[4] = { | 193 | static unsigned long exynos_dwmmc_caps[4] = { |
194 | MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR | | 194 | MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR | |
195 | MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23, | 195 | MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23, |
196 | MMC_CAP_CMD23, | 196 | MMC_CAP_CMD23, |
@@ -198,8 +198,8 @@ static unsigned long exynos5250_dwmmc_caps[4] = { | |||
198 | MMC_CAP_CMD23, | 198 | MMC_CAP_CMD23, |
199 | }; | 199 | }; |
200 | 200 | ||
201 | static const struct dw_mci_drv_data exynos5250_drv_data = { | 201 | static const struct dw_mci_drv_data exynos_drv_data = { |
202 | .caps = exynos5250_dwmmc_caps, | 202 | .caps = exynos_dwmmc_caps, |
203 | .init = dw_mci_exynos_priv_init, | 203 | .init = dw_mci_exynos_priv_init, |
204 | .setup_clock = dw_mci_exynos_setup_clock, | 204 | .setup_clock = dw_mci_exynos_setup_clock, |
205 | .prepare_command = dw_mci_exynos_prepare_command, | 205 | .prepare_command = dw_mci_exynos_prepare_command, |
@@ -209,8 +209,10 @@ static const struct dw_mci_drv_data exynos5250_drv_data = { | |||
209 | }; | 209 | }; |
210 | 210 | ||
211 | static const struct of_device_id dw_mci_exynos_match[] = { | 211 | static const struct of_device_id dw_mci_exynos_match[] = { |
212 | { .compatible = "samsung,exynos4412-dw-mshc", | ||
213 | .data = &exynos_drv_data, }, | ||
212 | { .compatible = "samsung,exynos5250-dw-mshc", | 214 | { .compatible = "samsung,exynos5250-dw-mshc", |
213 | .data = &exynos5250_drv_data, }, | 215 | .data = &exynos_drv_data, }, |
214 | {}, | 216 | {}, |
215 | }; | 217 | }; |
216 | MODULE_DEVICE_TABLE(of, dw_mci_exynos_match); | 218 | MODULE_DEVICE_TABLE(of, dw_mci_exynos_match); |