diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mxs/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-mxs/mach-tx28.c | 10 |
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 | ||
50 | config MACH_TX28 | 51 | config 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 | ||
144 | static struct i2c_board_info tx28_stk5v3_i2c_boardinfo[] __initdata = { | ||
145 | { | ||
146 | I2C_BOARD_INFO("ds1339", 0x68), | ||
147 | }, | ||
148 | }; | ||
149 | |||
143 | static void __init tx28_stk5v3_init(void) | 150 | static 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 | ||
159 | static void __init tx28_timer_init(void) | 169 | static void __init tx28_timer_init(void) |