From 566bc8dbd72fa719c798f98d0bc0b0883e34920b Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Thu, 3 Jul 2008 11:24:41 +0100 Subject: [PATCH] --- yaml --- r: 100843 b: refs/heads/master c: 042cf0f21feebc07b70bab9176c6be59f5fcdbc5 h: refs/heads/master i: 100841: 12c2de97aef589a5fce214b2ee57e45c57ecb2da 100839: 76d877bd4592ba2466a7b480c01e5d11bf0727e6 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-s3c2410/mach-bast.c | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 38e656cb9939..48bc1749472d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f337422147ca28fad0ff18d67a82c8b475872109 +refs/heads/master: 042cf0f21feebc07b70bab9176c6be59f5fcdbc5 diff --git a/trunk/arch/arm/mach-s3c2410/mach-bast.c b/trunk/arch/arm/mach-s3c2410/mach-bast.c index 2a512e863141..965f27129707 100644 --- a/trunk/arch/arm/mach-s3c2410/mach-bast.c +++ b/trunk/arch/arm/mach-s3c2410/mach-bast.c @@ -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,17 @@ static struct s3c2410fb_mach_info __initdata bast_fb_info = { .default_display = 1, }; +/* I2C devices fitted. */ + +static struct i2c_board_info bast_i2c_devs[] __initdata = { + { + I2C_BOARD_INFO("tlv320aic23", 0x1a), + }, { + I2C_BOARD_INFO("simtec-pmu", 0x6b), + }, { + I2C_BOARD_INFO("ch7013", 0x75), + }, +}; /* Standard BAST devices */ @@ -593,6 +605,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(); }