diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2005-06-25 11:58:21 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-06-25 11:58:21 -0400 |
commit | ea23d1ac7e380aefc00d691c7c9a3e747bc2531f (patch) | |
tree | caed589db6c7bfb4a14a5163c628fa425233bf04 /arch/arm/mach-ixp2000/enp2611.c | |
parent | 456b6b863a6a1a80e369e42568817747a427b072 (diff) |
[PATCH] ARM: 2750/1: add i2c platform device for enp2611 on-board i2c bus
Patch from Lennert Buytenhek
On the enp2611, GPIO 7 and 6 are connected to an on-board i2c bus that
attaches to the SODIMM module slot (for SPD) and an LM84 temperature
sensor. Add a platform device for this i2c bus.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp2000/enp2611.c')
-rw-r--r-- | arch/arm/mach-ixp2000/enp2611.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp2000/enp2611.c b/arch/arm/mach-ixp2000/enp2611.c index 04b38bcf9aac..f3a291b6a9fb 100644 --- a/arch/arm/mach-ixp2000/enp2611.c +++ b/arch/arm/mach-ixp2000/enp2611.c | |||
@@ -197,8 +197,23 @@ static struct platform_device enp2611_flash = { | |||
197 | .resource = &enp2611_flash_resource, | 197 | .resource = &enp2611_flash_resource, |
198 | }; | 198 | }; |
199 | 199 | ||
200 | static struct ixp2000_i2c_pins enp2611_i2c_gpio_pins = { | ||
201 | .sda_pin = ENP2611_GPIO_SDA, | ||
202 | .scl_pin = ENP2611_GPIO_SCL, | ||
203 | }; | ||
204 | |||
205 | static struct platform_device enp2611_i2c_controller = { | ||
206 | .name = "IXP2000-I2C", | ||
207 | .id = 0, | ||
208 | .dev = { | ||
209 | .platform_data = &enp2611_i2c_gpio_pins | ||
210 | }, | ||
211 | .num_resources = 0 | ||
212 | }; | ||
213 | |||
200 | static struct platform_device *enp2611_devices[] __initdata = { | 214 | static struct platform_device *enp2611_devices[] __initdata = { |
201 | &enp2611_flash | 215 | &enp2611_flash, |
216 | &enp2611_i2c_controller | ||
202 | }; | 217 | }; |
203 | 218 | ||
204 | static void __init enp2611_init_machine(void) | 219 | static void __init enp2611_init_machine(void) |