diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-07-03 11:24:43 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-07-03 16:51:29 +0100 |
commit | 7a28db61463d90043f7298a2e130af5630ff06ac (patch) | |
tree | c73e4bd269fb70bcee216d06d12b9bd72df3c59c /arch/arm/mach-s3c2440 | |
parent | 60d6698bb39a16f11006735cde9d55a4654c34ca (diff) | |
download | op-kernel-dev-7a28db61463d90043f7298a2e130af5630ff06ac.zip op-kernel-dev-7a28db61463d90043f7298a2e130af5630ff06ac.tar.gz |
[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')
-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 26536a2..09af8b2 100644 --- a/arch/arm/mach-s3c2440/mach-anubis.c +++ b/arch/arm/mach-s3c2440/mach-anubis.c @@ -1,6 +1,6 @@ /* linux/arch/arm/mach-s3c2440/mach-anubis.c * - * Copyright (c) 2003-2005 Simtec Electronics + * Copyright (c) 2003-2005,2008 Simtec Electronics * http://armlinux.simtec.co.uk/ * Ben Dooks <ben@simtec.co.uk> * @@ -18,6 +18,7 @@ #include <linux/serial_core.h> #include <linux/platform_device.h> #include <linux/ata_platform.h> +#include <linux/i2c.h> #include <linux/sm501.h> #include <linux/sm501-regs.h> @@ -421,6 +422,15 @@ static struct clk *anubis_clocks[] = { &s3c24xx_uclk, }; +/* I2C devices. */ + +static struct i2c_board_info anubis_i2c_devs[] __initdata = { + { + I2C_BOARD_INFO("tps65011", 0x48), + .irq = IRQ_EINT20, + } +}; + static void __init anubis_map_io(void) { /* initialise the clocks */ @@ -460,6 +470,9 @@ static void __init anubis_map_io(void) static void __init anubis_init(void) { platform_add_devices(anubis_devices, ARRAY_SIZE(anubis_devices)); + + i2c_register_board_info(0, anubis_i2c_devs, + ARRAY_SIZE(anubis_i2c_devs)); } |