diff options
-rw-r--r-- | arch/arm/mach-s3c2440/mach-osiris.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2440/mach-osiris.c b/arch/arm/mach-s3c2440/mach-osiris.c index 8a8acdbd072d..af996b0e91e8 100644 --- a/arch/arm/mach-s3c2440/mach-osiris.c +++ b/arch/arm/mach-s3c2440/mach-osiris.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2440/mach-osiris.c | 1 | /* linux/arch/arm/mach-s3c2440/mach-osiris.c |
2 | * | 2 | * |
3 | * Copyright (c) 2005 Simtec Electronics | 3 | * Copyright (c) 2005,2008 Simtec Electronics |
4 | * http://armlinux.simtec.co.uk/ | 4 | * http://armlinux.simtec.co.uk/ |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * | 6 | * |
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/sysdev.h> | 19 | #include <linux/sysdev.h> |
20 | #include <linux/serial_core.h> | 20 | #include <linux/serial_core.h> |
21 | #include <linux/clk.h> | 21 | #include <linux/clk.h> |
22 | #include <linux/i2c.h> | ||
22 | 23 | ||
23 | #include <asm/mach/arch.h> | 24 | #include <asm/mach/arch.h> |
24 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
@@ -322,6 +323,15 @@ static struct sys_device osiris_pm_sysdev = { | |||
322 | .cls = &osiris_pm_sysclass, | 323 | .cls = &osiris_pm_sysclass, |
323 | }; | 324 | }; |
324 | 325 | ||
326 | /* I2C devices fitted. */ | ||
327 | |||
328 | static struct i2c_board_info osiris_i2c_devs[] __initdata = { | ||
329 | { | ||
330 | I2C_BOARD_INFO("tps65011", 0x48), | ||
331 | .irq = IRQ_EINT20, | ||
332 | }, | ||
333 | }; | ||
334 | |||
325 | /* Standard Osiris devices */ | 335 | /* Standard Osiris devices */ |
326 | 336 | ||
327 | static struct platform_device *osiris_devices[] __initdata = { | 337 | static struct platform_device *osiris_devices[] __initdata = { |
@@ -388,6 +398,9 @@ static void __init osiris_init(void) | |||
388 | sysdev_class_register(&osiris_pm_sysclass); | 398 | sysdev_class_register(&osiris_pm_sysclass); |
389 | sysdev_register(&osiris_pm_sysdev); | 399 | sysdev_register(&osiris_pm_sysdev); |
390 | 400 | ||
401 | i2c_register_board_info(0, osiris_i2c_devs, | ||
402 | ARRAY_SIZE(osiris_i2c_devs)); | ||
403 | |||
391 | platform_add_devices(osiris_devices, ARRAY_SIZE(osiris_devices)); | 404 | platform_add_devices(osiris_devices, ARRAY_SIZE(osiris_devices)); |
392 | }; | 405 | }; |
393 | 406 | ||