devices.c (02f652626a8f23e513877cb751c8ea533739c28f) devices.c (994642934d99b9a4d5447d628de7c321c4fde5fe)
1#include <linux/module.h>
2#include <linux/kernel.h>
3#include <linux/init.h>
4#include <linux/platform_device.h>
5#include <linux/dma-mapping.h>
6
7#include <mach/pxa-regs.h>
8#include <mach/udc.h>

--- 247 unchanged lines hidden (view full) ---

256
257void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info)
258{
259 if (cpu_is_pxa27x())
260 pxa2xx_mfp_config(ARRAY_AND_SIZE(pxa27x_i2c_mfp_cfg));
261 pxa_register_device(&pxa_device_i2c, info);
262}
263
1#include <linux/module.h>
2#include <linux/kernel.h>
3#include <linux/init.h>
4#include <linux/platform_device.h>
5#include <linux/dma-mapping.h>
6
7#include <mach/pxa-regs.h>
8#include <mach/udc.h>

--- 247 unchanged lines hidden (view full) ---

256
257void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info)
258{
259 if (cpu_is_pxa27x())
260 pxa2xx_mfp_config(ARRAY_AND_SIZE(pxa27x_i2c_mfp_cfg));
261 pxa_register_device(&pxa_device_i2c, info);
262}
263
264#ifdef CONFIG_PXA27x
265static struct resource pxa27x_resources_i2c_power[] = {
266 {
267 .start = 0x40f00180,
268 .end = 0x40f001a3,
269 .flags = IORESOURCE_MEM,
270 }, {
271 .start = IRQ_PWRI2C,
272 .end = IRQ_PWRI2C,
273 .flags = IORESOURCE_IRQ,
274 },
275};
276
277struct platform_device pxa27x_device_i2c_power = {
278 .name = "pxa2xx-i2c",
279 .id = 1,
280 .resource = pxa27x_resources_i2c_power,
281 .num_resources = ARRAY_SIZE(pxa27x_resources_i2c_power),
282};
283#endif
284
285#ifdef CONFIG_PXA3xx
286static struct resource pxa3xx_resources_i2c_power[] = {
287 {
288 .start = 0x40f500c0,
289 .end = 0x40f500d3,
290 .flags = IORESOURCE_MEM,
291 }, {
292 .start = IRQ_PWRI2C,
293 .end = IRQ_PWRI2C,
294 .flags = IORESOURCE_IRQ,
295 },
296};
297
298struct platform_device pxa3xx_device_i2c_power = {
299 .name = "pxa2xx-i2c",
300 .id = 1,
301 .resource = pxa3xx_resources_i2c_power,
302 .num_resources = ARRAY_SIZE(pxa3xx_resources_i2c_power),
303};
304#endif
305
264static struct resource pxai2s_resources[] = {
265 {
266 .start = 0x40400000,
267 .end = 0x40400083,
268 .flags = IORESOURCE_MEM,
269 }, {
270 .start = IRQ_I2S,
271 .end = IRQ_I2S,

--- 623 unchanged lines hidden ---
306static struct resource pxai2s_resources[] = {
307 {
308 .start = 0x40400000,
309 .end = 0x40400083,
310 .flags = IORESOURCE_MEM,
311 }, {
312 .start = IRQ_I2S,
313 .end = IRQ_I2S,

--- 623 unchanged lines hidden ---