aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2011-02-28 11:40:05 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2011-03-07 13:29:18 -0500
commita77dd2aa92388d61f7344a32b06fd1de70e71928 (patch)
treed93929bd39b66ca90a697d875416cb0eaaa556ce
parent30feed37f21e00655475d8bf17bcea02221e53d2 (diff)
arm: mxs: tx28: add i2c bus and connected RTC
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-mxs/Kconfig1
-rw-r--r--arch/arm/mach-mxs/mach-tx28.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/Kconfig b/arch/arm/mach-mxs/Kconfig
index 895d06604e15..4f0b67345179 100644
--- a/arch/arm/mach-mxs/Kconfig
+++ b/arch/arm/mach-mxs/Kconfig
@@ -45,6 +45,7 @@ config MODULE_TX28
45 select MXS_HAVE_AMBA_DUART 45 select MXS_HAVE_AMBA_DUART
46 select MXS_HAVE_PLATFORM_AUART 46 select MXS_HAVE_PLATFORM_AUART
47 select MXS_HAVE_PLATFORM_FEC 47 select MXS_HAVE_PLATFORM_FEC
48 select MXS_HAVE_PLATFORM_MXS_I2C
48 select MXS_HAVE_PLATFORM_MXS_PWM 49 select MXS_HAVE_PLATFORM_MXS_PWM
49 50
50config MACH_TX28 51config MACH_TX28
diff --git a/arch/arm/mach-mxs/mach-tx28.c b/arch/arm/mach-mxs/mach-tx28.c
index b609b84784d0..b65e3719cbc4 100644
--- a/arch/arm/mach-mxs/mach-tx28.c
+++ b/arch/arm/mach-mxs/mach-tx28.c
@@ -14,6 +14,7 @@
14#include <linux/platform_device.h> 14#include <linux/platform_device.h>
15#include <linux/spi/spi.h> 15#include <linux/spi/spi.h>
16#include <linux/spi/spi_gpio.h> 16#include <linux/spi/spi_gpio.h>
17#include <linux/i2c.h>
17 18
18#include <asm/mach/arch.h> 19#include <asm/mach/arch.h>
19#include <asm/mach/time.h> 20#include <asm/mach/time.h>
@@ -140,6 +141,12 @@ static struct spi_board_info tx28_spi_board_info[] = {
140 }, 141 },
141}; 142};
142 143
144static struct i2c_board_info tx28_stk5v3_i2c_boardinfo[] __initdata = {
145 {
146 I2C_BOARD_INFO("ds1339", 0x68),
147 },
148};
149
143static void __init tx28_stk5v3_init(void) 150static void __init tx28_stk5v3_init(void)
144{ 151{
145 mxs_iomux_setup_multiple_pads(tx28_stk5v3_pads, 152 mxs_iomux_setup_multiple_pads(tx28_stk5v3_pads,
@@ -154,6 +161,9 @@ static void __init tx28_stk5v3_init(void)
154 ARRAY_SIZE(tx28_spi_board_info)); 161 ARRAY_SIZE(tx28_spi_board_info));
155 mxs_add_platform_device("leds-gpio", 0, NULL, 0, 162 mxs_add_platform_device("leds-gpio", 0, NULL, 0,
156 &tx28_stk5v3_led_data, sizeof(tx28_stk5v3_led_data)); 163 &tx28_stk5v3_led_data, sizeof(tx28_stk5v3_led_data));
164 mx28_add_mxs_i2c(0);
165 i2c_register_board_info(0, tx28_stk5v3_i2c_boardinfo,
166 ARRAY_SIZE(tx28_stk5v3_i2c_boardinfo));
157} 167}
158 168
159static void __init tx28_timer_init(void) 169static void __init tx28_timer_init(void)