diff options
Diffstat (limited to 'arch/arm/mach-s3c2412/mach-jive.c')
-rw-r--r-- | arch/arm/mach-s3c2412/mach-jive.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c2412/mach-jive.c b/arch/arm/mach-s3c2412/mach-jive.c index 25ff1ec9f8ad..e08a0f06224e 100644 --- a/arch/arm/mach-s3c2412/mach-jive.c +++ b/arch/arm/mach-s3c2412/mach-jive.c | |||
@@ -53,6 +53,7 @@ | |||
53 | #include <plat/cpu.h> | 53 | #include <plat/cpu.h> |
54 | #include <plat/pm.h> | 54 | #include <plat/pm.h> |
55 | #include <plat/udc.h> | 55 | #include <plat/udc.h> |
56 | #include <plat/iic.h> | ||
56 | 57 | ||
57 | static struct map_desc jive_iodesc[] __initdata = { | 58 | static struct map_desc jive_iodesc[] __initdata = { |
58 | }; | 59 | }; |
@@ -450,14 +451,14 @@ static struct spi_board_info __initdata jive_spi_devs[] = { | |||
450 | 451 | ||
451 | /* I2C bus and device configuration. */ | 452 | /* I2C bus and device configuration. */ |
452 | 453 | ||
453 | static struct s3c2410_platform_i2c jive_i2c_cfg = { | 454 | static struct s3c2410_platform_i2c jive_i2c_cfg __initdata = { |
454 | .max_freq = 80 * 1000, | 455 | .max_freq = 80 * 1000, |
455 | .bus_freq = 50 * 1000, | 456 | .bus_freq = 50 * 1000, |
456 | .flags = S3C_IICFLG_FILTER, | 457 | .flags = S3C_IICFLG_FILTER, |
457 | .sda_delay = 2, | 458 | .sda_delay = 2, |
458 | }; | 459 | }; |
459 | 460 | ||
460 | static struct i2c_board_info jive_i2c_devs[] = { | 461 | static struct i2c_board_info jive_i2c_devs[] __initdata = { |
461 | [0] = { | 462 | [0] = { |
462 | I2C_BOARD_INFO("lis302dl", 0x1c), | 463 | I2C_BOARD_INFO("lis302dl", 0x1c), |
463 | .irq = IRQ_EINT14, | 464 | .irq = IRQ_EINT14, |
@@ -470,7 +471,7 @@ static struct platform_device *jive_devices[] __initdata = { | |||
470 | &s3c_device_usb, | 471 | &s3c_device_usb, |
471 | &s3c_device_rtc, | 472 | &s3c_device_rtc, |
472 | &s3c_device_wdt, | 473 | &s3c_device_wdt, |
473 | &s3c_device_i2c, | 474 | &s3c_device_i2c0, |
474 | &s3c_device_lcd, | 475 | &s3c_device_lcd, |
475 | &jive_device_lcdspi, | 476 | &jive_device_lcdspi, |
476 | &jive_device_wm8750, | 477 | &jive_device_wm8750, |
@@ -663,7 +664,7 @@ static void __init jive_machine_init(void) | |||
663 | 664 | ||
664 | spi_register_board_info(jive_spi_devs, ARRAY_SIZE(jive_spi_devs)); | 665 | spi_register_board_info(jive_spi_devs, ARRAY_SIZE(jive_spi_devs)); |
665 | 666 | ||
666 | s3c_device_i2c.dev.platform_data = &jive_i2c_cfg; | 667 | s3c_i2c0_set_platdata(&jive_i2c_cfg); |
667 | i2c_register_board_info(0, jive_i2c_devs, ARRAY_SIZE(jive_i2c_devs)); | 668 | i2c_register_board_info(0, jive_i2c_devs, ARRAY_SIZE(jive_i2c_devs)); |
668 | 669 | ||
669 | pm_power_off = jive_power_off; | 670 | pm_power_off = jive_power_off; |