From 4ec6ecc77872a57b471b60dce298ed25556944f0 Mon Sep 17 00:00:00 2001 From: Valentin Longchamp Date: Tue, 21 Apr 2009 10:24:22 +0200 Subject: mx31moboard: add i2c support (v2) Changes since v1: all the pins needed for the drivers are claimed in another patch Signed-off-by: Valentin Longchamp Signed-off-by: Sascha Hauer --- arch/arm/mach-mx3/mx31moboard.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'arch/arm/mach-mx3/mx31moboard.c') diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mx31moboard.c index 60a51459d58..d846527e1a5 100644 --- a/arch/arm/mach-mx3/mx31moboard.c +++ b/arch/arm/mach-mx3/mx31moboard.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "devices.h" @@ -89,6 +90,14 @@ static struct imxuart_platform_data uart_pdata = { .flags = IMXUART_HAVE_RTSCTS, }; +static struct imxi2c_platform_data moboard_i2c0_pdata = { + .bitrate = 400000, +}; + +static struct imxi2c_platform_data moboard_i2c1_pdata = { + .bitrate = 100000, +}; + static struct platform_device *devices[] __initdata = { &mx31moboard_flash, }; @@ -109,6 +118,9 @@ static void __init mxc_board_init(void) mxc_register_device(&mxc_uart_device0, &uart_pdata); mxc_register_device(&mxc_uart_device4, &uart_pdata); + mxc_register_device(&mxc_i2c_device0, &moboard_i2c0_pdata); + mxc_register_device(&mxc_i2c_device1, &moboard_i2c1_pdata); + switch (mx31moboard_baseboard) { case MX31NOBOARD: break; -- cgit v1.2.3