2 * Copyright (C) ST-Ericsson SA 2010
4 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
5 * License terms: GNU General Public License (GPL) version 2
8 #include <linux/kernel.h>
9 #include <linux/platform_device.h>
10 #include <linux/interrupt.h>
12 #include <linux/amba/bus.h>
14 #include <mach/hardware.h>
15 #include <mach/setup.h>
17 struct amba_device u8500_ssp0_device = {
19 .coherent_dma_mask = ~0,
23 .start = U8500_SSP0_BASE,
24 .end = U8500_SSP0_BASE + SZ_4K - 1,
25 .flags = IORESOURCE_MEM,
27 .irq = {IRQ_SSP0, NO_IRQ },
28 /* ST-Ericsson modified id */
29 .periphid = SSP_PER_ID,
32 static struct resource u8500_i2c0_resources[] = {
34 .start = U8500_I2C0_BASE,
35 .end = U8500_I2C0_BASE + SZ_4K - 1,
36 .flags = IORESOURCE_MEM,
41 .flags = IORESOURCE_IRQ,
45 struct platform_device u8500_i2c0_device = {
48 .resource = u8500_i2c0_resources,
49 .num_resources = ARRAY_SIZE(u8500_i2c0_resources),
52 static struct resource u8500_i2c4_resources[] = {
54 .start = U8500_I2C4_BASE,
55 .end = U8500_I2C4_BASE + SZ_4K - 1,
56 .flags = IORESOURCE_MEM,
61 .flags = IORESOURCE_IRQ,
65 struct platform_device u8500_i2c4_device = {
68 .resource = u8500_i2c4_resources,
69 .num_resources = ARRAY_SIZE(u8500_i2c4_resources),