void s3c_i2c2_cfg_gpio(struct platform_device *dev) { s3c_gpio_cfgpin(S5PV210_GPD1(4), S3C_GPIO_SFN(2)); s3c_gpio_setpull(S5PV210_GPD1(4), S3C_GPIO_PULL_NONE); s3c_gpio_cfgpin(S5PV210_GPD1(5), S3C_GPIO_SFN(2)); s3c_gpio_setpull(S5PV210_GPD1(5), S3C_GPIO_PULL_NONE); }
void s3c_i2c1_cfg_gpio(struct platform_device *dev) { s3c_gpio_cfgpin(S5PV210_GPD1(2), S3C_GPIO_SFN(2)); s3c_gpio_setpull(S5PV210_GPD1(2), S3C_GPIO_PULL_UP); s3c_gpio_cfgpin(S5PV210_GPD1(3), S3C_GPIO_SFN(2)); s3c_gpio_setpull(S5PV210_GPD1(3), S3C_GPIO_PULL_UP); }
.ngpio = S5PV210_GPIO_C1_NR, .label = "GPC1", }, }, { .base = S5PV210_GPD0_BASE, .config = &gpio_cfg, .chip = { .base = S5PV210_GPD0(0), .ngpio = S5PV210_GPIO_D0_NR, .label = "GPD0", }, }, { .base = S5PV210_GPD1_BASE, .config = &gpio_cfg, .chip = { .base = S5PV210_GPD1(0), .ngpio = S5PV210_GPIO_D1_NR, .label = "GPD1", }, }, { .base = S5PV210_GPE0_BASE, .config = &gpio_cfg, .chip = { .base = S5PV210_GPE0(0), .ngpio = S5PV210_GPIO_E0_NR, .label = "GPE0", }, }, { .base = S5PV210_GPE1_BASE, .config = &gpio_cfg, .chip = {
void s3c_i2c2_cfg_gpio(struct platform_device *dev) { s3c_gpio_cfgall_range(S5PV210_GPD1(4), 2, S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP); }
.data = vd5376_table, .ndatas = ARRAY_SIZE(vd5376_table), .scan_ms = 50, }; static struct platform_device vd5376_mouse_device = { .name = "vd5376-mouse", .dev = { .platform_data = &vd5376_mouse_data, }, }; #endif #ifdef CONFIG_I2C_GPIO static struct i2c_gpio_platform_data i2c_gpio_platdata = { .sda_pin = S5PV210_GPD1(0), .scl_pin = S5PV210_GPD1(1), .udelay = 10, .sda_is_open_drain = 0, .scl_is_open_drain = 0, .scl_is_output_only = 0 }; static struct platform_device mango_i2c0_gpio = { .name = "i2c-gpio", .id = 0, .dev.platform_data = &i2c_gpio_platdata, }; static struct i2c_gpio_platform_data i2c2_gpio_platdata = { .sda_pin = S5PV210_GPD1(4),