Skip to content

Commit

Permalink
ARM: S3C64XX: Raise the frequency of the second I2C bus on Cragganmore
Browse files Browse the repository at this point in the history
The S3C I2C driver defaults to a rather low 66kHz, ask for 400kHz for
a bit of a speed boost.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Mark Brown authored and Kukjin Kim committed Dec 2, 2011
1 parent aaed44e commit 8351c7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm/mach-s3c64xx/mach-crag6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,11 @@ static struct i2c_board_info i2c_devs1[] __initdata = {
{ I2C_BOARD_INFO("wm1250-ev1", 0x27) },
};

static struct s3c2410_platform_i2c i2c1_pdata = {
.frequency = 400000,
.bus_num = 1,
};

static void __init crag6410_map_io(void)
{
s3c64xx_init_io(NULL, 0);
Expand Down Expand Up @@ -692,7 +697,7 @@ static void __init crag6410_machine_init(void)
s3c_sdhci2_set_platdata(&crag6410_hsmmc2_pdata);

s3c_i2c0_set_platdata(&i2c0_pdata);
s3c_i2c1_set_platdata(NULL);
s3c_i2c1_set_platdata(&i2c1_pdata);
s3c_fb_set_platdata(&crag6410_lcd_pdata);

i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0));
Expand Down

0 comments on commit 8351c7a

Please sign in to comment.