diff options
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/sdhci.h')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/sdhci.h | 63 |
1 files changed, 33 insertions, 30 deletions
diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-samsung/include/plat/sdhci.h index 5a41a0b69eec..b0bdf16549d5 100644 --- a/arch/arm/plat-samsung/include/plat/sdhci.h +++ b/arch/arm/plat-samsung/include/plat/sdhci.h | |||
@@ -1,4 +1,7 @@ | |||
1 | /* linux/arch/arm/plat-s3c/include/plat/sdhci.h | 1 | /* linux/arch/arm/plat-samsung/include/plat/sdhci.h |
2 | * | ||
3 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com | ||
2 | * | 5 | * |
3 | * Copyright 2008 Openmoko, Inc. | 6 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 7 | * Copyright 2008 Simtec Electronics |
@@ -119,10 +122,10 @@ extern void s5pv210_setup_sdhci0_cfg_gpio(struct platform_device *, int w); | |||
119 | extern void s5pv210_setup_sdhci1_cfg_gpio(struct platform_device *, int w); | 122 | extern void s5pv210_setup_sdhci1_cfg_gpio(struct platform_device *, int w); |
120 | extern void s5pv210_setup_sdhci2_cfg_gpio(struct platform_device *, int w); | 123 | extern void s5pv210_setup_sdhci2_cfg_gpio(struct platform_device *, int w); |
121 | extern void s5pv210_setup_sdhci3_cfg_gpio(struct platform_device *, int w); | 124 | extern void s5pv210_setup_sdhci3_cfg_gpio(struct platform_device *, int w); |
122 | extern void s5pv310_setup_sdhci0_cfg_gpio(struct platform_device *, int w); | 125 | extern void exynos4_setup_sdhci0_cfg_gpio(struct platform_device *, int w); |
123 | extern void s5pv310_setup_sdhci1_cfg_gpio(struct platform_device *, int w); | 126 | extern void exynos4_setup_sdhci1_cfg_gpio(struct platform_device *, int w); |
124 | extern void s5pv310_setup_sdhci2_cfg_gpio(struct platform_device *, int w); | 127 | extern void exynos4_setup_sdhci2_cfg_gpio(struct platform_device *, int w); |
125 | extern void s5pv310_setup_sdhci3_cfg_gpio(struct platform_device *, int w); | 128 | extern void exynos4_setup_sdhci3_cfg_gpio(struct platform_device *, int w); |
126 | 129 | ||
127 | /* S3C2416 SDHCI setup */ | 130 | /* S3C2416 SDHCI setup */ |
128 | 131 | ||
@@ -334,57 +337,57 @@ static inline void s5pv210_default_sdhci3(void) { } | |||
334 | 337 | ||
335 | #endif /* CONFIG_S5PV210_SETUP_SDHCI */ | 338 | #endif /* CONFIG_S5PV210_SETUP_SDHCI */ |
336 | 339 | ||
337 | /* S5PV310 SDHCI setup */ | 340 | /* EXYNOS4 SDHCI setup */ |
338 | #ifdef CONFIG_S5PV310_SETUP_SDHCI | 341 | #ifdef CONFIG_EXYNOS4_SETUP_SDHCI |
339 | extern char *s5pv310_hsmmc_clksrcs[4]; | 342 | extern char *exynos4_hsmmc_clksrcs[4]; |
340 | 343 | ||
341 | extern void s5pv310_setup_sdhci_cfg_card(struct platform_device *dev, | 344 | extern void exynos4_setup_sdhci_cfg_card(struct platform_device *dev, |
342 | void __iomem *r, | 345 | void __iomem *r, |
343 | struct mmc_ios *ios, | 346 | struct mmc_ios *ios, |
344 | struct mmc_card *card); | 347 | struct mmc_card *card); |
345 | 348 | ||
346 | static inline void s5pv310_default_sdhci0(void) | 349 | static inline void exynos4_default_sdhci0(void) |
347 | { | 350 | { |
348 | #ifdef CONFIG_S3C_DEV_HSMMC | 351 | #ifdef CONFIG_S3C_DEV_HSMMC |
349 | s3c_hsmmc0_def_platdata.clocks = s5pv310_hsmmc_clksrcs; | 352 | s3c_hsmmc0_def_platdata.clocks = exynos4_hsmmc_clksrcs; |
350 | s3c_hsmmc0_def_platdata.cfg_gpio = s5pv310_setup_sdhci0_cfg_gpio; | 353 | s3c_hsmmc0_def_platdata.cfg_gpio = exynos4_setup_sdhci0_cfg_gpio; |
351 | s3c_hsmmc0_def_platdata.cfg_card = s5pv310_setup_sdhci_cfg_card; | 354 | s3c_hsmmc0_def_platdata.cfg_card = exynos4_setup_sdhci_cfg_card; |
352 | #endif | 355 | #endif |
353 | } | 356 | } |
354 | 357 | ||
355 | static inline void s5pv310_default_sdhci1(void) | 358 | static inline void exynos4_default_sdhci1(void) |
356 | { | 359 | { |
357 | #ifdef CONFIG_S3C_DEV_HSMMC1 | 360 | #ifdef CONFIG_S3C_DEV_HSMMC1 |
358 | s3c_hsmmc1_def_platdata.clocks = s5pv310_hsmmc_clksrcs; | 361 | s3c_hsmmc1_def_platdata.clocks = exynos4_hsmmc_clksrcs; |
359 | s3c_hsmmc1_def_platdata.cfg_gpio = s5pv310_setup_sdhci1_cfg_gpio; | 362 | s3c_hsmmc1_def_platdata.cfg_gpio = exynos4_setup_sdhci1_cfg_gpio; |
360 | s3c_hsmmc1_def_platdata.cfg_card = s5pv310_setup_sdhci_cfg_card; | 363 | s3c_hsmmc1_def_platdata.cfg_card = exynos4_setup_sdhci_cfg_card; |
361 | #endif | 364 | #endif |
362 | } | 365 | } |
363 | 366 | ||
364 | static inline void s5pv310_default_sdhci2(void) | 367 | static inline void exynos4_default_sdhci2(void) |
365 | { | 368 | { |
366 | #ifdef CONFIG_S3C_DEV_HSMMC2 | 369 | #ifdef CONFIG_S3C_DEV_HSMMC2 |
367 | s3c_hsmmc2_def_platdata.clocks = s5pv310_hsmmc_clksrcs; | 370 | s3c_hsmmc2_def_platdata.clocks = exynos4_hsmmc_clksrcs; |
368 | s3c_hsmmc2_def_platdata.cfg_gpio = s5pv310_setup_sdhci2_cfg_gpio; | 371 | s3c_hsmmc2_def_platdata.cfg_gpio = exynos4_setup_sdhci2_cfg_gpio; |
369 | s3c_hsmmc2_def_platdata.cfg_card = s5pv310_setup_sdhci_cfg_card; | 372 | s3c_hsmmc2_def_platdata.cfg_card = exynos4_setup_sdhci_cfg_card; |
370 | #endif | 373 | #endif |
371 | } | 374 | } |
372 | 375 | ||
373 | static inline void s5pv310_default_sdhci3(void) | 376 | static inline void exynos4_default_sdhci3(void) |
374 | { | 377 | { |
375 | #ifdef CONFIG_S3C_DEV_HSMMC3 | 378 | #ifdef CONFIG_S3C_DEV_HSMMC3 |
376 | s3c_hsmmc3_def_platdata.clocks = s5pv310_hsmmc_clksrcs; | 379 | s3c_hsmmc3_def_platdata.clocks = exynos4_hsmmc_clksrcs; |
377 | s3c_hsmmc3_def_platdata.cfg_gpio = s5pv310_setup_sdhci3_cfg_gpio; | 380 | s3c_hsmmc3_def_platdata.cfg_gpio = exynos4_setup_sdhci3_cfg_gpio; |
378 | s3c_hsmmc3_def_platdata.cfg_card = s5pv310_setup_sdhci_cfg_card; | 381 | s3c_hsmmc3_def_platdata.cfg_card = exynos4_setup_sdhci_cfg_card; |
379 | #endif | 382 | #endif |
380 | } | 383 | } |
381 | 384 | ||
382 | #else | 385 | #else |
383 | static inline void s5pv310_default_sdhci0(void) { } | 386 | static inline void exynos4_default_sdhci0(void) { } |
384 | static inline void s5pv310_default_sdhci1(void) { } | 387 | static inline void exynos4_default_sdhci1(void) { } |
385 | static inline void s5pv310_default_sdhci2(void) { } | 388 | static inline void exynos4_default_sdhci2(void) { } |
386 | static inline void s5pv310_default_sdhci3(void) { } | 389 | static inline void exynos4_default_sdhci3(void) { } |
387 | 390 | ||
388 | #endif /* CONFIG_S5PV310_SETUP_SDHCI */ | 391 | #endif /* CONFIG_EXYNOS4_SETUP_SDHCI */ |
389 | 392 | ||
390 | #endif /* __PLAT_S3C_SDHCI_H */ | 393 | #endif /* __PLAT_S3C_SDHCI_H */ |