From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Dooks Subject: [patch 6/8] BAST: Add i2c device list on Simtec Bast Date: Thu, 29 May 2008 14:22:50 +0100 Message-ID: <20080529132407.003503849@fluff.org.uk> References: <20080529132244.818543231@fluff.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline; filename=simtec/simtec-mach-bast-add-i2c-boardinfo.patch List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Cc: Ben Dooks List-Id: linux-i2c@vger.kernel.org Add i2c boardinfo for the connected i2c devices on the Simtec Bast. Signed-off-by: Ben Dooks Index: linux-2.6.26-rc4-quilt2/arch/arm/mach-s3c2410/mach-bast.c =================================================================== --- linux-2.6.26-rc4-quilt2.orig/arch/arm/mach-s3c2410/mach-bast.c 2008-05-28 22:37:09.000000000 +0100 +++ linux-2.6.26-rc4-quilt2/arch/arm/mach-s3c2410/mach-bast.c 2008-05-29 10:20:54.000000000 +0100 @@ -1,6 +1,6 @@ /* linux/arch/arm/mach-s3c2410/mach-bast.c * - * Copyright (c) 2003-2005 Simtec Electronics + * Copyright (c) 2003-2005,2008 Simtec Electronics * Ben Dooks * * http://www.simtec.co.uk/products/EB2410ITX/ @@ -21,6 +21,7 @@ #include #include #include +#include #include @@ -534,6 +535,23 @@ static struct s3c2410fb_mach_info __init .default_display = 1, }; +/* I2C devices fitted. */ + +static struct i2c_board_info bast_i2c_devs[] __initdata = { + { + .type = "tlv320aic23", + .addr = 0x1a, + }, { + .type = "eeprom", + .addr = 0x50, + }, { + .type = "simtec-pmu", + .addr = 0x6b, + }, { + .type = "ch7013", + .addr = 0x75, + }, +}; /* Standard BAST devices */ @@ -593,6 +611,9 @@ static void __init bast_init(void) s3c24xx_fb_set_platdata(&bast_fb_info); platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); + i2c_register_board_info(0, bast_i2c_devs, + ARRAY_SIZE(bast_i2c_devs)); + nor_simtec_init(); } -- Ben (ben-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org, http://www.fluff.org/) 'a smiley only costs 4 bytes' _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c