1 /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
13 #include <linux/kernel.h>
14 #include <linux/platform_device.h>
16 #include <mach/board.h>
17 #include <mach/msm_iomap.h>
20 static struct resource resources_dmov_adm0
[] = {
22 .start
= MSM8X60_DMOV_ADM0_PHYS
,
23 .end
= MSM8X60_DMOV_ADM0_PHYS
+ MSM8X60_DMOV_ADM0_SIZE
- 1,
24 .flags
= IORESOURCE_MEM
,
27 .start
= INT_ADM0_AARM
,
28 .flags
= IORESOURCE_IRQ
,
32 static struct resource resources_dmov_adm1
[] = {
34 .start
= MSM8X60_DMOV_ADM1_PHYS
,
35 .end
= MSM8X60_DMOV_ADM1_PHYS
+ MSM8X60_DMOV_ADM1_SIZE
- 1,
36 .flags
= IORESOURCE_MEM
,
39 .start
= INT_ADM1_AARM
,
40 .flags
= IORESOURCE_IRQ
,
44 struct platform_device msm_device_dmov_adm0
= {
47 .num_resources
= ARRAY_SIZE(resources_dmov_adm0
),
48 .resource
= resources_dmov_adm0
,
51 struct platform_device msm_device_dmov_adm1
= {
54 .num_resources
= ARRAY_SIZE(resources_dmov_adm1
),
55 .resource
= resources_dmov_adm1
,