diff options
Diffstat (limited to 'arch/arm/mach-s3c2412')
-rw-r--r-- | arch/arm/mach-s3c2412/mach-jive.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/mach-smdk2413.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/mach-vstms.c | 4 |
3 files changed, 11 insertions, 6 deletions
diff --git a/arch/arm/mach-s3c2412/mach-jive.c b/arch/arm/mach-s3c2412/mach-jive.c index 5e758cf8bf82..2cd4044797cf 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 | }; |
@@ -452,14 +453,14 @@ static struct spi_board_info __initdata jive_spi_devs[] = { | |||
452 | 453 | ||
453 | /* I2C bus and device configuration. */ | 454 | /* I2C bus and device configuration. */ |
454 | 455 | ||
455 | static struct s3c2410_platform_i2c jive_i2c_cfg = { | 456 | static struct s3c2410_platform_i2c jive_i2c_cfg __initdata = { |
456 | .max_freq = 80 * 1000, | 457 | .max_freq = 80 * 1000, |
457 | .bus_freq = 50 * 1000, | 458 | .bus_freq = 50 * 1000, |
458 | .flags = S3C_IICFLG_FILTER, | 459 | .flags = S3C_IICFLG_FILTER, |
459 | .sda_delay = 2, | 460 | .sda_delay = 2, |
460 | }; | 461 | }; |
461 | 462 | ||
462 | static struct i2c_board_info jive_i2c_devs[] = { | 463 | static struct i2c_board_info jive_i2c_devs[] __initdata = { |
463 | [0] = { | 464 | [0] = { |
464 | I2C_BOARD_INFO("lis302dl", 0x1c), | 465 | I2C_BOARD_INFO("lis302dl", 0x1c), |
465 | .irq = IRQ_EINT14, | 466 | .irq = IRQ_EINT14, |
@@ -472,7 +473,7 @@ static struct platform_device *jive_devices[] __initdata = { | |||
472 | &s3c_device_usb, | 473 | &s3c_device_usb, |
473 | &s3c_device_rtc, | 474 | &s3c_device_rtc, |
474 | &s3c_device_wdt, | 475 | &s3c_device_wdt, |
475 | &s3c_device_i2c, | 476 | &s3c_device_i2c0, |
476 | &s3c_device_lcd, | 477 | &s3c_device_lcd, |
477 | &jive_device_lcdspi, | 478 | &jive_device_lcdspi, |
478 | &jive_device_wm8750, | 479 | &jive_device_wm8750, |
@@ -665,7 +666,7 @@ static void __init jive_machine_init(void) | |||
665 | 666 | ||
666 | spi_register_board_info(jive_spi_devs, ARRAY_SIZE(jive_spi_devs)); | 667 | spi_register_board_info(jive_spi_devs, ARRAY_SIZE(jive_spi_devs)); |
667 | 668 | ||
668 | s3c_device_i2c.dev.platform_data = &jive_i2c_cfg; | 669 | s3c_i2c0_set_platdata(&jive_i2c_cfg); |
669 | i2c_register_board_info(0, jive_i2c_devs, ARRAY_SIZE(jive_i2c_devs)); | 670 | i2c_register_board_info(0, jive_i2c_devs, ARRAY_SIZE(jive_i2c_devs)); |
670 | 671 | ||
671 | pm_power_off = jive_power_off; | 672 | pm_power_off = jive_power_off; |
diff --git a/arch/arm/mach-s3c2412/mach-smdk2413.c b/arch/arm/mach-s3c2412/mach-smdk2413.c index 8fd17b8d5679..eba66aa6bd20 100644 --- a/arch/arm/mach-s3c2412/mach-smdk2413.c +++ b/arch/arm/mach-s3c2412/mach-smdk2413.c | |||
@@ -38,6 +38,7 @@ | |||
38 | 38 | ||
39 | #include <mach/idle.h> | 39 | #include <mach/idle.h> |
40 | #include <plat/udc.h> | 40 | #include <plat/udc.h> |
41 | #include <plat/iic.h> | ||
41 | #include <mach/fb.h> | 42 | #include <mach/fb.h> |
42 | 43 | ||
43 | #include <plat/s3c2410.h> | 44 | #include <plat/s3c2410.h> |
@@ -105,7 +106,7 @@ static struct platform_device *smdk2413_devices[] __initdata = { | |||
105 | &s3c_device_usb, | 106 | &s3c_device_usb, |
106 | //&s3c_device_lcd, | 107 | //&s3c_device_lcd, |
107 | &s3c_device_wdt, | 108 | &s3c_device_wdt, |
108 | &s3c_device_i2c, | 109 | &s3c_device_i2c0, |
109 | &s3c_device_iis, | 110 | &s3c_device_iis, |
110 | &s3c_device_usbgadget, | 111 | &s3c_device_usbgadget, |
111 | }; | 112 | }; |
@@ -142,6 +143,7 @@ static void __init smdk2413_machine_init(void) | |||
142 | 143 | ||
143 | 144 | ||
144 | s3c24xx_udc_set_platdata(&smdk2413_udc_cfg); | 145 | s3c24xx_udc_set_platdata(&smdk2413_udc_cfg); |
146 | s3c_i2c0_set_platdata(NULL); | ||
145 | 147 | ||
146 | platform_add_devices(smdk2413_devices, ARRAY_SIZE(smdk2413_devices)); | 148 | platform_add_devices(smdk2413_devices, ARRAY_SIZE(smdk2413_devices)); |
147 | smdk_machine_init(); | 149 | smdk_machine_init(); |
diff --git a/arch/arm/mach-s3c2412/mach-vstms.c b/arch/arm/mach-s3c2412/mach-vstms.c index da32a6cb17ae..11e8ad49fc7b 100644 --- a/arch/arm/mach-s3c2412/mach-vstms.c +++ b/arch/arm/mach-s3c2412/mach-vstms.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <mach/idle.h> | 39 | #include <mach/idle.h> |
40 | #include <mach/fb.h> | 40 | #include <mach/fb.h> |
41 | 41 | ||
42 | #include <plat/iic.h> | ||
42 | #include <plat/nand.h> | 43 | #include <plat/nand.h> |
43 | 44 | ||
44 | #include <plat/s3c2410.h> | 45 | #include <plat/s3c2410.h> |
@@ -122,7 +123,7 @@ static struct s3c2410_platform_nand vstms_nand_info = { | |||
122 | static struct platform_device *vstms_devices[] __initdata = { | 123 | static struct platform_device *vstms_devices[] __initdata = { |
123 | &s3c_device_usb, | 124 | &s3c_device_usb, |
124 | &s3c_device_wdt, | 125 | &s3c_device_wdt, |
125 | &s3c_device_i2c, | 126 | &s3c_device_i2c0, |
126 | &s3c_device_iis, | 127 | &s3c_device_iis, |
127 | &s3c_device_rtc, | 128 | &s3c_device_rtc, |
128 | &s3c_device_nand, | 129 | &s3c_device_nand, |
@@ -151,6 +152,7 @@ static void __init vstms_map_io(void) | |||
151 | 152 | ||
152 | static void __init vstms_init(void) | 153 | static void __init vstms_init(void) |
153 | { | 154 | { |
155 | s3c_i2c0_set_platdata(NULL); | ||
154 | platform_add_devices(vstms_devices, ARRAY_SIZE(vstms_devices)); | 156 | platform_add_devices(vstms_devices, ARRAY_SIZE(vstms_devices)); |
155 | } | 157 | } |
156 | 158 | ||