aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/devices/platform-imx-i2c.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-09-30 10:44:53 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-01 03:32:05 -0400
commit44505c0768971f4aa94ca09c8155448a46a7ff8a (patch)
treec2ce5c93554182d73eaa95972c4ba9a7cff646a7 /arch/arm/plat-mxc/devices/platform-imx-i2c.c
parent64de5ec168d9743903e6ec482c3e9f37af49f9c1 (diff)
ARM: mx5: dynamically register imx-i2c devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/devices/platform-imx-i2c.c')
-rw-r--r--arch/arm/plat-mxc/devices/platform-imx-i2c.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-imx-i2c.c b/arch/arm/plat-mxc/devices/platform-imx-i2c.c
index ab9670b96c8a..ca988d40a3d7 100644
--- a/arch/arm/plat-mxc/devices/platform-imx-i2c.c
+++ b/arch/arm/plat-mxc/devices/platform-imx-i2c.c
@@ -68,6 +68,15 @@ const struct imx_imx_i2c_data imx35_imx_i2c_data[] __initconst = {
68}; 68};
69#endif /* ifdef CONFIG_ARCH_MX35 */ 69#endif /* ifdef CONFIG_ARCH_MX35 */
70 70
71#ifdef CONFIG_ARCH_MX51
72const struct imx_imx_i2c_data imx51_imx_i2c_data[] __initconst = {
73#define imx51_imx_i2c_data_entry(_id, _hwid) \
74 imx_imx_i2c_data_entry(MX51, _id, _hwid, SZ_4K)
75 imx51_imx_i2c_data_entry(0, 1),
76 imx51_imx_i2c_data_entry(1, 2),
77};
78#endif /* ifdef CONFIG_ARCH_MX51 */
79
71struct platform_device *__init imx_add_imx_i2c( 80struct platform_device *__init imx_add_imx_i2c(
72 const struct imx_imx_i2c_data *data, 81 const struct imx_imx_i2c_data *data,
73 const struct imxi2c_platform_data *pdata) 82 const struct imxi2c_platform_data *pdata)