+ gpio_set_drv(i, S5P_GPIO_DRV_4X);
+ }
+
+ ret = s5p_mmc_init(0, 4);
+ if (ret)
+ error("MMC: Failed to init MMC:0.\n");
+
+ /*
+ * SD card (T_FLASH) detect and init
+ * T_FLASH_DETECT: EINT28: GPH3[4] input mode
+ */
+ gpio_request(S5PC110_GPIO_H34, "t_flash_detect");
+ gpio_cfg_pin(S5PC110_GPIO_H34, S5P_GPIO_INPUT);
+ gpio_set_pull(S5PC110_GPIO_H34, S5P_GPIO_PULL_UP);
+
+ if (!gpio_get_value(S5PC110_GPIO_H34)) {
+ for (i = S5PC110_GPIO_G20; i < S5PC110_GPIO_G27; i++) {
+ if (i == S5PC110_GPIO_G22)
+ continue;
+
+ /* GPG2[0:6] special function 2 */
+ gpio_cfg_pin(i, 0x2);
+ /* GPG2[0:6] pull disable */
+ gpio_set_pull(i, S5P_GPIO_PULL_NONE);
+ /* GPG2[0:6] drv 4x */
+ gpio_set_drv(i, S5P_GPIO_DRV_4X);
+ }
+
+ ret_sd = s5p_mmc_init(2, 4);
+ if (ret_sd)
+ error("MMC: Failed to init SD card (MMC:2).\n");