diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-07-03 06:24:43 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-07-03 11:51:29 -0400 |
commit | 7a28db61463d90043f7298a2e130af5630ff06ac (patch) | |
tree | c73e4bd269fb70bcee216d06d12b9bd72df3c59c /arch/arm/mach-s3c2440/mach-anubis.c | |
parent | 60d6698bb39a16f11006735cde9d55a4654c34ca (diff) |
[ARM] ANUBIS: Add i2c device list to Simtec Anubis
Add i2c board info initialiser to setup the list of
I2C devices present on an Simtec Anubis.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-anubis.c')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-anubis.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2440/mach-anubis.c b/arch/arm/mach-s3c2440/mach-anubis.c index 26536a2dd82c..09af8b23500b 100644 --- a/arch/arm/mach-s3c2440/mach-anubis.c +++ b/arch/arm/mach-s3c2440/mach-anubis.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* linux/arch/arm/mach-s3c2440/mach-anubis.c | 1 | /* linux/arch/arm/mach-s3c2440/mach-anubis.c |
2 | * | 2 | * |
3 | * Copyright (c) 2003-2005 Simtec Electronics | 3 | * Copyright (c) 2003-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 | * |
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/serial_core.h> | 18 | #include <linux/serial_core.h> |
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/ata_platform.h> | 20 | #include <linux/ata_platform.h> |
21 | #include <linux/i2c.h> | ||
21 | 22 | ||
22 | #include <linux/sm501.h> | 23 | #include <linux/sm501.h> |
23 | #include <linux/sm501-regs.h> | 24 | #include <linux/sm501-regs.h> |
@@ -421,6 +422,15 @@ static struct clk *anubis_clocks[] = { | |||
421 | &s3c24xx_uclk, | 422 | &s3c24xx_uclk, |
422 | }; | 423 | }; |
423 | 424 | ||
425 | /* I2C devices. */ | ||
426 | |||
427 | static struct i2c_board_info anubis_i2c_devs[] __initdata = { | ||
428 | { | ||
429 | I2C_BOARD_INFO("tps65011", 0x48), | ||
430 | .irq = IRQ_EINT20, | ||
431 | } | ||
432 | }; | ||
433 | |||
424 | static void __init anubis_map_io(void) | 434 | static void __init anubis_map_io(void) |
425 | { | 435 | { |
426 | /* initialise the clocks */ | 436 | /* initialise the clocks */ |
@@ -460,6 +470,9 @@ static void __init anubis_map_io(void) | |||
460 | static void __init anubis_init(void) | 470 | static void __init anubis_init(void) |
461 | { | 471 | { |
462 | platform_add_devices(anubis_devices, ARRAY_SIZE(anubis_devices)); | 472 | platform_add_devices(anubis_devices, ARRAY_SIZE(anubis_devices)); |
473 | |||
474 | i2c_register_board_info(0, anubis_i2c_devs, | ||
475 | ARRAY_SIZE(anubis_i2c_devs)); | ||
463 | } | 476 | } |
464 | 477 | ||
465 | 478 | ||