aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mx31moboard.c
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@epfl.ch>2009-04-21 04:24:22 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-05-07 10:17:44 -0400
commit4ec6ecc77872a57b471b60dce298ed25556944f0 (patch)
tree994eaef8f2767f09288b8358a1f50f38a1fe21ad /arch/arm/mach-mx3/mx31moboard.c
parent56c7a45bee7313d49dd58465492cdbd49fea8e16 (diff)
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 <valentin.longchamp@epfl.ch> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31moboard.c')
-rw-r--r--arch/arm/mach-mx3/mx31moboard.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mx31moboard.c
index 60a51459d583..d846527e1a59 100644
--- a/arch/arm/mach-mx3/mx31moboard.c
+++ b/arch/arm/mach-mx3/mx31moboard.c
@@ -32,6 +32,7 @@
32#include <mach/hardware.h> 32#include <mach/hardware.h>
33#include <mach/imx-uart.h> 33#include <mach/imx-uart.h>
34#include <mach/iomux-mx3.h> 34#include <mach/iomux-mx3.h>
35#include <mach/i2c.h>
35 36
36#include "devices.h" 37#include "devices.h"
37 38
@@ -89,6 +90,14 @@ static struct imxuart_platform_data uart_pdata = {
89 .flags = IMXUART_HAVE_RTSCTS, 90 .flags = IMXUART_HAVE_RTSCTS,
90}; 91};
91 92
93static struct imxi2c_platform_data moboard_i2c0_pdata = {
94 .bitrate = 400000,
95};
96
97static struct imxi2c_platform_data moboard_i2c1_pdata = {
98 .bitrate = 100000,
99};
100
92static struct platform_device *devices[] __initdata = { 101static struct platform_device *devices[] __initdata = {
93 &mx31moboard_flash, 102 &mx31moboard_flash,
94}; 103};
@@ -109,6 +118,9 @@ static void __init mxc_board_init(void)
109 mxc_register_device(&mxc_uart_device0, &uart_pdata); 118 mxc_register_device(&mxc_uart_device0, &uart_pdata);
110 mxc_register_device(&mxc_uart_device4, &uart_pdata); 119 mxc_register_device(&mxc_uart_device4, &uart_pdata);
111 120
121 mxc_register_device(&mxc_i2c_device0, &moboard_i2c0_pdata);
122 mxc_register_device(&mxc_i2c_device1, &moboard_i2c1_pdata);
123
112 switch (mx31moboard_baseboard) { 124 switch (mx31moboard_baseboard) {
113 case MX31NOBOARD: 125 case MX31NOBOARD:
114 break; 126 break;