Commit 0804765a authored by Naveen Krishna Chatradhi's avatar Naveen Krishna Chatradhi Committed by Kukjin Kim

ARM: SAMSUNG: Remove unnecessary duplication of plat_data on TSADC

The default plat_data struct for TSADC is added in devs-ts.c
and duplication is removed from the following machines.
Signed-off-by: default avatarNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 5e8e0a10
...@@ -205,12 +205,6 @@ static struct platform_device mini6410_lcd_powerdev = { ...@@ -205,12 +205,6 @@ static struct platform_device mini6410_lcd_powerdev = {
.dev.platform_data = &mini6410_lcd_power_data, .dev.platform_data = &mini6410_lcd_power_data,
}; };
static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};
static struct platform_device *mini6410_devices[] __initdata = { static struct platform_device *mini6410_devices[] __initdata = {
&mini6410_device_eth, &mini6410_device_eth,
&s3c_device_hsmmc0, &s3c_device_hsmmc0,
...@@ -319,7 +313,7 @@ static void __init mini6410_machine_init(void) ...@@ -319,7 +313,7 @@ static void __init mini6410_machine_init(void)
s3c_nand_set_platdata(&mini6410_nand_info); s3c_nand_set_platdata(&mini6410_nand_info);
s3c_fb_set_platdata(&mini6410_lcd_pdata); s3c_fb_set_platdata(&mini6410_lcd_pdata);
s3c24xx_ts_set_platdata(&s3c_ts_platform); s3c24xx_ts_set_platdata(NULL);
/* configure nCS1 width to 16 bits */ /* configure nCS1 width to 16 bits */
......
...@@ -198,12 +198,6 @@ static struct platform_device *real6410_devices[] __initdata = { ...@@ -198,12 +198,6 @@ static struct platform_device *real6410_devices[] __initdata = {
&s3c_device_ohci, &s3c_device_ohci,
}; };
static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};
static void __init real6410_map_io(void) static void __init real6410_map_io(void)
{ {
u32 tmp; u32 tmp;
...@@ -300,7 +294,7 @@ static void __init real6410_machine_init(void) ...@@ -300,7 +294,7 @@ static void __init real6410_machine_init(void)
s3c_fb_set_platdata(&real6410_lcd_pdata); s3c_fb_set_platdata(&real6410_lcd_pdata);
s3c_nand_set_platdata(&real6410_nand_info); s3c_nand_set_platdata(&real6410_nand_info);
s3c24xx_ts_set_platdata(&s3c_ts_platform); s3c24xx_ts_set_platdata(NULL);
/* configure nCS1 width to 16 bits */ /* configure nCS1 width to 16 bits */
......
...@@ -658,12 +658,6 @@ static struct i2c_board_info i2c_devs1[] __initdata = { ...@@ -658,12 +658,6 @@ static struct i2c_board_info i2c_devs1[] __initdata = {
{ I2C_BOARD_INFO("24c128", 0x57), }, /* Samsung S524AD0XD1 */ { I2C_BOARD_INFO("24c128", 0x57), }, /* Samsung S524AD0XD1 */
}; };
static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};
/* LCD Backlight data */ /* LCD Backlight data */
static struct samsung_bl_gpio_info smdk6410_bl_gpio_info = { static struct samsung_bl_gpio_info smdk6410_bl_gpio_info = {
.no = S3C64XX_GPF(15), .no = S3C64XX_GPF(15),
...@@ -705,7 +699,7 @@ static void __init smdk6410_machine_init(void) ...@@ -705,7 +699,7 @@ static void __init smdk6410_machine_init(void)
samsung_keypad_set_platdata(&smdk6410_keypad_data); samsung_keypad_set_platdata(&smdk6410_keypad_data);
s3c24xx_ts_set_platdata(&s3c_ts_platform); s3c24xx_ts_set_platdata(NULL);
/* configure nCS1 width to 16 bits */ /* configure nCS1 width to 16 bits */
......
...@@ -129,12 +129,6 @@ static struct i2c_board_info smdk6440_i2c_devs1[] __initdata = { ...@@ -129,12 +129,6 @@ static struct i2c_board_info smdk6440_i2c_devs1[] __initdata = {
/* To be populated */ /* To be populated */
}; };
static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};
/* LCD Backlight data */ /* LCD Backlight data */
static struct samsung_bl_gpio_info smdk6440_bl_gpio_info = { static struct samsung_bl_gpio_info smdk6440_bl_gpio_info = {
.no = S5P6440_GPF(15), .no = S5P6440_GPF(15),
...@@ -155,7 +149,7 @@ static void __init smdk6440_map_io(void) ...@@ -155,7 +149,7 @@ static void __init smdk6440_map_io(void)
static void __init smdk6440_machine_init(void) static void __init smdk6440_machine_init(void)
{ {
s3c24xx_ts_set_platdata(&s3c_ts_platform); s3c24xx_ts_set_platdata(NULL);
s3c_i2c0_set_platdata(&s5p6440_i2c0_data); s3c_i2c0_set_platdata(&s5p6440_i2c0_data);
s3c_i2c1_set_platdata(&s5p6440_i2c1_data); s3c_i2c1_set_platdata(&s5p6440_i2c1_data);
......
...@@ -148,12 +148,6 @@ static struct i2c_board_info smdk6450_i2c_devs1[] __initdata = { ...@@ -148,12 +148,6 @@ static struct i2c_board_info smdk6450_i2c_devs1[] __initdata = {
{ I2C_BOARD_INFO("24c128", 0x57), },/* Samsung S524AD0XD1 EEPROM */ { I2C_BOARD_INFO("24c128", 0x57), },/* Samsung S524AD0XD1 EEPROM */
}; };
static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};
/* LCD Backlight data */ /* LCD Backlight data */
static struct samsung_bl_gpio_info smdk6450_bl_gpio_info = { static struct samsung_bl_gpio_info smdk6450_bl_gpio_info = {
.no = S5P6450_GPF(15), .no = S5P6450_GPF(15),
...@@ -174,7 +168,7 @@ static void __init smdk6450_map_io(void) ...@@ -174,7 +168,7 @@ static void __init smdk6450_map_io(void)
static void __init smdk6450_machine_init(void) static void __init smdk6450_machine_init(void)
{ {
s3c24xx_ts_set_platdata(&s3c_ts_platform); s3c24xx_ts_set_platdata(NULL);
s3c_i2c0_set_platdata(&s5p6450_i2c0_data); s3c_i2c0_set_platdata(&s5p6450_i2c0_data);
s3c_i2c1_set_platdata(&s5p6450_i2c1_data); s3c_i2c1_set_platdata(&s5p6450_i2c1_data);
......
...@@ -203,12 +203,6 @@ static struct platform_device *smdkc100_devices[] __initdata = { ...@@ -203,12 +203,6 @@ static struct platform_device *smdkc100_devices[] __initdata = {
&s5pc100_device_spdif, &s5pc100_device_spdif,
}; };
static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};
/* LCD Backlight data */ /* LCD Backlight data */
static struct samsung_bl_gpio_info smdkc100_bl_gpio_info = { static struct samsung_bl_gpio_info smdkc100_bl_gpio_info = {
.no = S5PC100_GPD(0), .no = S5PC100_GPD(0),
...@@ -228,7 +222,7 @@ static void __init smdkc100_map_io(void) ...@@ -228,7 +222,7 @@ static void __init smdkc100_map_io(void)
static void __init smdkc100_machine_init(void) static void __init smdkc100_machine_init(void)
{ {
s3c24xx_ts_set_platdata(&s3c_ts_platform); s3c24xx_ts_set_platdata(NULL);
/* I2C */ /* I2C */
s3c_i2c0_set_platdata(NULL); s3c_i2c0_set_platdata(NULL);
......
...@@ -265,12 +265,6 @@ static struct i2c_board_info smdkv210_i2c_devs2[] __initdata = { ...@@ -265,12 +265,6 @@ static struct i2c_board_info smdkv210_i2c_devs2[] __initdata = {
/* To Be Updated */ /* To Be Updated */
}; };
static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};
/* LCD Backlight data */ /* LCD Backlight data */
static struct samsung_bl_gpio_info smdkv210_bl_gpio_info = { static struct samsung_bl_gpio_info smdkv210_bl_gpio_info = {
.no = S5PV210_GPD0(3), .no = S5PV210_GPD0(3),
...@@ -296,7 +290,7 @@ static void __init smdkv210_machine_init(void) ...@@ -296,7 +290,7 @@ static void __init smdkv210_machine_init(void)
smdkv210_dm9000_init(); smdkv210_dm9000_init();
samsung_keypad_set_platdata(&smdkv210_keypad_data); samsung_keypad_set_platdata(&smdkv210_keypad_data);
s3c24xx_ts_set_platdata(&s3c_ts_platform); s3c24xx_ts_set_platdata(NULL);
s3c_i2c0_set_platdata(NULL); s3c_i2c0_set_platdata(NULL);
s3c_i2c1_set_platdata(NULL); s3c_i2c1_set_platdata(NULL);
......
...@@ -43,8 +43,17 @@ struct platform_device s3c_device_ts = { ...@@ -43,8 +43,17 @@ struct platform_device s3c_device_ts = {
.resource = s3c_ts_resource, .resource = s3c_ts_resource,
}; };
static struct s3c2410_ts_mach_info default_ts_data __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};
void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd) void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd)
{ {
if (!pd)
pd = &default_ts_data;
s3c_set_platdata(pd, sizeof(struct s3c2410_ts_mach_info), s3c_set_platdata(pd, sizeof(struct s3c2410_ts_mach_info),
&s3c_device_ts); &s3c_device_ts);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment