]> Pileus Git - ~andy/linux/blob - arch/arm/mach-ux500/devices-db8500.c
ARM: ux500: Deactivate enablement of DMA40 during ATAG booting
[~andy/linux] / arch / arm / mach-ux500 / devices-db8500.c
1 /*
2  * Copyright (C) ST-Ericsson SA 2010
3  *
4  * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
5  * License terms: GNU General Public License (GPL) version 2
6  */
7
8 #include <linux/kernel.h>
9 #include <linux/platform_device.h>
10 #include <linux/interrupt.h>
11 #include <linux/io.h>
12 #include <linux/amba/bus.h>
13 #include <linux/amba/pl022.h>
14 #include <linux/mfd/dbx500-prcmu.h>
15
16 #include "setup.h"
17 #include "irqs.h"
18
19 #include "db8500-regs.h"
20 #include "devices-db8500.h"
21
22 struct prcmu_pdata db8500_prcmu_pdata = {
23         .ab_platdata    = &ab8500_platdata,
24         .ab_irq         = IRQ_DB8500_AB8500,
25         .irq_base       = IRQ_PRCMU_BASE,
26         .version_offset = DB8500_PRCMU_FW_VERSION_OFFSET,
27         .legacy_offset  = DB8500_PRCMU_LEGACY_OFFSET,
28 };
29
30 static struct resource db8500_prcmu_res[] = {
31         {
32                 .name  = "prcmu",
33                 .start = U8500_PRCMU_BASE,
34                 .end   = U8500_PRCMU_BASE + SZ_8K - 1,
35                 .flags = IORESOURCE_MEM,
36         },
37         {
38                 .name  = "prcmu-tcdm",
39                 .start = U8500_PRCMU_TCDM_BASE,
40                 .end   = U8500_PRCMU_TCDM_BASE + SZ_4K - 1,
41                 .flags = IORESOURCE_MEM,
42         },
43         {
44                 .name  = "irq",
45                 .start = IRQ_DB8500_PRCMU1,
46                 .end   = IRQ_DB8500_PRCMU1,
47                 .flags = IORESOURCE_IRQ,
48         },
49         {
50                 .name  = "prcmu-tcpm",
51                 .start = U8500_PRCMU_TCPM_BASE,
52                 .end   = U8500_PRCMU_TCPM_BASE + SZ_32K - 1,
53                 .flags = IORESOURCE_MEM,
54         },
55 };
56
57 struct platform_device db8500_prcmu_device = {
58         .name                   = "db8500-prcmu",
59         .resource               = db8500_prcmu_res,
60         .num_resources          = ARRAY_SIZE(db8500_prcmu_res),
61         .dev = {
62                 .platform_data = &db8500_prcmu_pdata,
63         },
64 };