diff options
| author | Tony Luck <tony.luck@intel.com> | 2005-05-17 18:53:14 -0400 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2005-05-17 18:53:14 -0400 |
| commit | 325a479c4c110db278ef3361460a48c4093252cc (patch) | |
| tree | bcfbf4d0647d9442045639a5c19da59d55190e81 /arch/arm/mach-pxa/generic.c | |
| parent | ebcc80c1b6629a445f7471cc1ddb48faf8a84e70 (diff) | |
| parent | 7f9eaedf894dbaa08c157832e9a6c9c03ffed1ed (diff) | |
Merge with temp tree to get David's gdb inferior calls patch
Diffstat (limited to 'arch/arm/mach-pxa/generic.c')
| -rw-r--r-- | arch/arm/mach-pxa/generic.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index b1575b8dc1cd..a45aaa115a76 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c | |||
| @@ -220,6 +220,30 @@ static struct platform_device stuart_device = { | |||
| 220 | .id = 2, | 220 | .id = 2, |
| 221 | }; | 221 | }; |
| 222 | 222 | ||
| 223 | static struct resource i2c_resources[] = { | ||
| 224 | { | ||
| 225 | .start = 0x40301680, | ||
| 226 | .end = 0x403016a3, | ||
| 227 | .flags = IORESOURCE_MEM, | ||
| 228 | }, { | ||
| 229 | .start = IRQ_I2C, | ||
| 230 | .end = IRQ_I2C, | ||
| 231 | .flags = IORESOURCE_IRQ, | ||
| 232 | }, | ||
| 233 | }; | ||
| 234 | |||
| 235 | static struct platform_device i2c_device = { | ||
| 236 | .name = "pxa2xx-i2c", | ||
| 237 | .id = 0, | ||
| 238 | .resource = i2c_resources, | ||
| 239 | .num_resources = ARRAY_SIZE(i2c_resources), | ||
| 240 | }; | ||
| 241 | |||
| 242 | void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info) | ||
| 243 | { | ||
| 244 | i2c_device.dev.platform_data = info; | ||
| 245 | } | ||
| 246 | |||
| 223 | static struct platform_device *devices[] __initdata = { | 247 | static struct platform_device *devices[] __initdata = { |
| 224 | &pxamci_device, | 248 | &pxamci_device, |
| 225 | &udc_device, | 249 | &udc_device, |
| @@ -227,6 +251,7 @@ static struct platform_device *devices[] __initdata = { | |||
| 227 | &ffuart_device, | 251 | &ffuart_device, |
| 228 | &btuart_device, | 252 | &btuart_device, |
| 229 | &stuart_device, | 253 | &stuart_device, |
| 254 | &i2c_device, | ||
| 230 | }; | 255 | }; |
| 231 | 256 | ||
| 232 | static int __init pxa_init(void) | 257 | static int __init pxa_init(void) |
