void __init exynos5_arndale_octa_mmc_init(void) { exynos_dwmci_set_platdata(&arndale_octa_dwmci0_pdata, 0); exynos_dwmci_set_platdata(&arndale_octa_dwmci1_pdata, 1); exynos_dwmci_set_platdata(&arndale_octa_dwmci2_pdata, 2); platform_add_devices(arndale_octa_mmc_devices, ARRAY_SIZE(arndale_octa_mmc_devices)); }
void __init exynos5_universal5420_mmc_init(void) { exynos_dwmci_set_platdata(&universal5420_dwmci0_pdata, 0); exynos_dwmci_set_platdata(&universal5420_dwmci1_pdata, 1); exynos_dwmci_set_platdata(&universal5420_dwmci2_pdata, 2); platform_add_devices(universal5420_mmc_devices, ARRAY_SIZE(universal5420_mmc_devices)); }
void __init exynos5_universal5420_mmc_init(void) { #if defined(CONFIG_N1A) || defined(CONFIG_N2A) || defined(CONFIG_V2A) if (system_rev == 15) universal5420_dwmci0_pdata.caps2 &= ~(MMC_CAP2_HS200_1_8V_SDR | MMC_CAP2_HS200_1_8V_DDR); #endif exynos_dwmci_set_platdata(&universal5420_dwmci0_pdata, 0); exynos_dwmci_set_platdata(&universal5420_dwmci1_pdata, 1); exynos_dwmci_set_platdata(&universal5420_dwmci2_pdata, 2); platform_add_devices(universal5420_mmc_devices, ARRAY_SIZE(universal5420_mmc_devices)); }
void __init exynos5_odroidxu_mmc_init(void) { int OM_STAT=0; if (samsung_rev() < EXYNOS5410_REV_1_0) smdk5410_dwmci0_pdata.caps &= ~(MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR); #ifndef CONFIG_EXYNOS_EMMC_HS200 smdk5410_dwmci0_pdata.caps2 &= ~MMC_CAP2_HS200_1_8V_SDR; #endif exynos_dwmci_set_platdata(&smdk5410_dwmci0_pdata, 0); exynos_dwmci_set_platdata(&smdk5410_dwmci2_pdata, 2); OM_STAT = readl(EXYNOS_OM_STAT); if(OM_STAT == 0x4) { // T-Flash_CH2 exynos_dwmci_set_platdata(&smdk5410_dwmci2_pdata, 2); exynos_dwmci_set_platdata(&smdk5410_dwmci0_pdata, 0); platform_add_devices(odroidxu_tflash_devices, ARRAY_SIZE(odroidxu_tflash_devices)); } else { // emmc44_CH0 exynos_dwmci_set_platdata(&smdk5410_dwmci0_pdata, 0); exynos_dwmci_set_platdata(&smdk5410_dwmci2_pdata, 2); platform_add_devices(odroidxu_emmc_devices, ARRAY_SIZE(odroidxu_emmc_devices)); } }