void s3c2416_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) { unsigned int gpio; unsigned int end; end = S3C2410_GPL(0 + width); /* Set all the necessary GPG pins to special-function 0 */ for (gpio = S3C2410_GPL(0); gpio < end; gpio++) { s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2)); s3c_gpio_setpull(gpio, S3C_GPIO_PULL_NONE); } s3c_gpio_cfgpin(S3C2410_GPL(8), S3C_GPIO_SFN(2)); s3c_gpio_setpull(S3C2410_GPL(8), S3C_GPIO_PULL_NONE); s3c_gpio_cfgpin(S3C2410_GPL(9), S3C_GPIO_SFN(2)); s3c_gpio_setpull(S3C2410_GPL(9), S3C_GPIO_PULL_NONE); }
.owner = THIS_MODULE, .label = "GPIOJ", .ngpio = 16, }, }, { .base = S3C2443_GPKCON, .chip = { .base = S3C2410_GPK(0), .owner = THIS_MODULE, .label = "GPIOK", .ngpio = 16, }, }, { .base = S3C2443_GPLCON, .chip = { .base = S3C2410_GPL(0), .owner = THIS_MODULE, .label = "GPIOL", .ngpio = 15, }, }, { .base = S3C2443_GPMCON, .chip = { .base = S3C2410_GPM(0), .owner = THIS_MODULE, .label = "GPIOM", .ngpio = 2, }, }, #endif };