diff options
author | Eric Miao <eric.miao@marvell.com> | 2008-11-28 03:00:24 -0500 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2008-12-02 01:42:40 -0500 |
commit | 6f584cfab47173bcbf06b67cb22d519e95317311 (patch) | |
tree | a8f89cd017e6e8b66cc7aa4a77c38951bb0fd628 | |
parent | 14758220520c45755ae9de3c3073f03bd71f098a (diff) |
[ARM] pxa: move I2C pin configurations out into board specific files
Signed-off-by: Eric Miao <eric.miao@marvell.com>
-rw-r--r-- | arch/arm/mach-pxa/cm-x300.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/devices.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-pxa/ezx.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/magician.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/mainstone.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pcm990-baseboard.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 4 |
7 files changed, 24 insertions, 8 deletions
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index 36a789ce8037..ff0c577cd1ac 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -136,6 +136,10 @@ static mfp_cfg_t cm_x300_mfp_cfg[] __initdata = { | |||
136 | GPIO82_GPIO | MFP_PULL_HIGH, /* MMC CD */ | 136 | GPIO82_GPIO | MFP_PULL_HIGH, /* MMC CD */ |
137 | GPIO85_GPIO, /* MMC WP */ | 137 | GPIO85_GPIO, /* MMC WP */ |
138 | GPIO99_GPIO, /* Ethernet IRQ */ | 138 | GPIO99_GPIO, /* Ethernet IRQ */ |
139 | |||
140 | /* Standard I2C */ | ||
141 | GPIO21_I2C_SCL, | ||
142 | GPIO22_I2C_SDA, | ||
139 | }; | 143 | }; |
140 | 144 | ||
141 | #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) | 145 | #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) |
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 55699a216f93..88c362651445 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <mach/mmc.h> | 10 | #include <mach/mmc.h> |
11 | #include <mach/irda.h> | 11 | #include <mach/irda.h> |
12 | #include <mach/i2c.h> | 12 | #include <mach/i2c.h> |
13 | #include <mach/mfp-pxa27x.h> | ||
14 | #include <mach/ohci.h> | 13 | #include <mach/ohci.h> |
15 | #include <mach/pxa27x_keypad.h> | 14 | #include <mach/pxa27x_keypad.h> |
16 | #include <mach/pxa2xx_spi.h> | 15 | #include <mach/pxa2xx_spi.h> |
@@ -249,15 +248,8 @@ struct platform_device pxa_device_i2c = { | |||
249 | .num_resources = ARRAY_SIZE(pxai2c_resources), | 248 | .num_resources = ARRAY_SIZE(pxai2c_resources), |
250 | }; | 249 | }; |
251 | 250 | ||
252 | static unsigned long pxa27x_i2c_mfp_cfg[] = { | ||
253 | GPIO117_I2C_SCL, | ||
254 | GPIO118_I2C_SDA, | ||
255 | }; | ||
256 | |||
257 | void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info) | 251 | void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info) |
258 | { | 252 | { |
259 | if (cpu_is_pxa27x()) | ||
260 | pxa2xx_mfp_config(ARRAY_AND_SIZE(pxa27x_i2c_mfp_cfg)); | ||
261 | pxa_register_device(&pxa_device_i2c, info); | 253 | pxa_register_device(&pxa_device_i2c, info); |
262 | } | 254 | } |
263 | 255 | ||
diff --git a/arch/arm/mach-pxa/ezx.c b/arch/arm/mach-pxa/ezx.c index cc3d850cc0b6..a3084125aee7 100644 --- a/arch/arm/mach-pxa/ezx.c +++ b/arch/arm/mach-pxa/ezx.c | |||
@@ -112,6 +112,10 @@ static unsigned long ezx_pin_config[] __initdata = { | |||
112 | GPIO91_USB_P3_1, /* ICL_XRXD */ | 112 | GPIO91_USB_P3_1, /* ICL_XRXD */ |
113 | GPIO56_USB_P3_4, /* ICL_VMOUT */ | 113 | GPIO56_USB_P3_4, /* ICL_VMOUT */ |
114 | GPIO113_USB_P3_3, /* /ICL_VMIN */ | 114 | GPIO113_USB_P3_3, /* /ICL_VMIN */ |
115 | |||
116 | /* I2C */ | ||
117 | GPIO117_I2C_SCL, | ||
118 | GPIO118_I2C_SDA, | ||
115 | }; | 119 | }; |
116 | 120 | ||
117 | static void __init ezx_init(void) | 121 | static void __init ezx_init(void) |
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index 519138bc5f85..bf59cec27def 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -123,6 +123,10 @@ static unsigned long magician_pin_config[] __initdata = { | |||
123 | GPIO107_GPIO, /* DS1WM_IRQ */ | 123 | GPIO107_GPIO, /* DS1WM_IRQ */ |
124 | GPIO108_GPIO, /* GSM_READY */ | 124 | GPIO108_GPIO, /* GSM_READY */ |
125 | GPIO115_GPIO, /* nPEN_IRQ */ | 125 | GPIO115_GPIO, /* nPEN_IRQ */ |
126 | |||
127 | /* I2C */ | ||
128 | GPIO117_I2C_SCL, | ||
129 | GPIO118_I2C_SDA, | ||
126 | }; | 130 | }; |
127 | 131 | ||
128 | /* | 132 | /* |
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index f2c7ad8f2b6b..5f224968043c 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -128,6 +128,10 @@ static unsigned long mainstone_pin_config[] = { | |||
128 | GPIO108_KP_MKOUT_5, | 128 | GPIO108_KP_MKOUT_5, |
129 | GPIO96_KP_MKOUT_6, | 129 | GPIO96_KP_MKOUT_6, |
130 | 130 | ||
131 | /* I2C */ | ||
132 | GPIO117_I2C_SCL, | ||
133 | GPIO118_I2C_SDA, | ||
134 | |||
131 | /* GPIO */ | 135 | /* GPIO */ |
132 | GPIO1_GPIO | WAKEUP_ON_EDGE_BOTH, | 136 | GPIO1_GPIO | WAKEUP_ON_EDGE_BOTH, |
133 | }; | 137 | }; |
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index f601425f1b1e..1e7515452285 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -55,6 +55,10 @@ static unsigned long pcm990_pin_config[] __initdata = { | |||
55 | GPIO89_USBH1_PEN, | 55 | GPIO89_USBH1_PEN, |
56 | /* PWM0 */ | 56 | /* PWM0 */ |
57 | GPIO16_PWM0_OUT, | 57 | GPIO16_PWM0_OUT, |
58 | |||
59 | /* I2C */ | ||
60 | GPIO117_I2C_SCL, | ||
61 | GPIO118_I2C_SDA, | ||
58 | }; | 62 | }; |
59 | 63 | ||
60 | /* | 64 | /* |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 3be76ee2bdbf..ebfb146f2214 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -122,6 +122,10 @@ static unsigned long spitz_pin_config[] __initdata = { | |||
122 | GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */ | 122 | GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */ |
123 | GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */ | 123 | GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */ |
124 | 124 | ||
125 | /* I2C */ | ||
126 | GPIO117_I2C_SCL, | ||
127 | GPIO118_I2C_SDA, | ||
128 | |||
125 | GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, | 129 | GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, |
126 | }; | 130 | }; |
127 | 131 | ||