aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-09-21 06:13:34 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-09-27 09:46:39 -0400
commit64de5ec168d9743903e6ec482c3e9f37af49f9c1 (patch)
tree177232c0fad2ef3959a8b7303f2d01076155cefc /arch/arm/mach-imx
parent4697bb926f43b8012ebd111ef43834f42126a0ef (diff)
ARM: imx: reorganize imx-i2c device registration to use a struct per SoC
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/devices-imx1.h3
-rw-r--r--arch/arm/mach-imx/devices-imx21.h3
-rw-r--r--arch/arm/mach-imx/devices-imx27.h9
3 files changed, 9 insertions, 6 deletions
diff --git a/arch/arm/mach-imx/devices-imx1.h b/arch/arm/mach-imx/devices-imx1.h
index 2861cb8b100a..6cf08640dae9 100644
--- a/arch/arm/mach-imx/devices-imx1.h
+++ b/arch/arm/mach-imx/devices-imx1.h
@@ -9,8 +9,9 @@
9#include <mach/mx1.h> 9#include <mach/mx1.h>
10#include <mach/devices-common.h> 10#include <mach/devices-common.h>
11 11
12extern const struct imx_imx_i2c_data imx1_imx_i2c_data __initconst;
12#define imx1_add_i2c_imx(pdata) \ 13#define imx1_add_i2c_imx(pdata) \
13 imx_add_imx_i2c(0, MX1_I2C_BASE_ADDR, SZ_4K, MX1_INT_I2C, pdata) 14 imx_add_imx_i2c(&imx1_imx_i2c_data, pdata)
14 15
15extern const struct imx_imx_uart_3irq_data imx1_imx_uart_data[] __initconst; 16extern const struct imx_imx_uart_3irq_data imx1_imx_uart_data[] __initconst;
16#define imx1_add_imx_uart(id, pdata) \ 17#define imx1_add_imx_uart(id, pdata) \
diff --git a/arch/arm/mach-imx/devices-imx21.h b/arch/arm/mach-imx/devices-imx21.h
index 24868c36d824..d3d2b2669b96 100644
--- a/arch/arm/mach-imx/devices-imx21.h
+++ b/arch/arm/mach-imx/devices-imx21.h
@@ -9,8 +9,9 @@
9#include <mach/mx21.h> 9#include <mach/mx21.h>
10#include <mach/devices-common.h> 10#include <mach/devices-common.h>
11 11
12extern const struct imx_imx_i2c_data imx21_imx_i2c_data __initconst;
12#define imx21_add_i2c_imx(pdata) \ 13#define imx21_add_i2c_imx(pdata) \
13 imx_add_imx_i2c(0, MX2x_I2C_BASE_ADDR, SZ_4K, MX2x_INT_I2C, pdata) 14 imx_add_imx_i2c(&imx21_imx_i2c_data, pdata)
14 15
15extern const struct imx_imx_ssi_data imx21_imx_ssi_data[] __initconst; 16extern const struct imx_imx_ssi_data imx21_imx_ssi_data[] __initconst;
16#define imx21_add_imx_ssi(id, pdata) \ 17#define imx21_add_imx_ssi(id, pdata) \
diff --git a/arch/arm/mach-imx/devices-imx27.h b/arch/arm/mach-imx/devices-imx27.h
index 2972e6912af4..193dfb55023b 100644
--- a/arch/arm/mach-imx/devices-imx27.h
+++ b/arch/arm/mach-imx/devices-imx27.h
@@ -9,10 +9,11 @@
9#include <mach/mx27.h> 9#include <mach/mx27.h>
10#include <mach/devices-common.h> 10#include <mach/devices-common.h>
11 11
12#define imx27_add_i2c_imx0(pdata) \ 12extern const struct imx_imx_i2c_data imx27_imx_i2c_data[] __initconst;
13 imx_add_imx_i2c(0, MX27_I2C1_BASE_ADDR, SZ_4K, MX27_INT_I2C1, pdata) 13#define imx27_add_imx_i2c(id, pdata) \
14#define imx27_add_i2c_imx1(pdata) \ 14 imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata)
15 imx_add_imx_i2c(1, MX27_I2C2_BASE_ADDR, SZ_4K, MX27_INT_I2C2, pdata) 15#define imx27_add_i2c_imx0(pdata) imx27_add_imx_i2c(0, pdata)
16#define imx27_add_i2c_imx1(pdata) imx27_add_imx_i2c(1, pdata)
16 17
17extern const struct imx_imx_ssi_data imx27_imx_ssi_data[] __initconst; 18extern const struct imx_imx_ssi_data imx27_imx_ssi_data[] __initconst;
18#define imx27_add_imx_ssi(id, pdata) \ 19#define imx27_add_imx_ssi(id, pdata) \