1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* linux/arch/arm/plat-s5p/dev-ace.c
*
* Copyright (C) 2011 Samsung Electronics
*
* Base S5P Crypto Engine resource and device definitions
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/platform_device.h>
#include <mach/map.h>
#include <mach/irqs.h>
static struct resource s5p_ace_resource[] = {
[0] = {
.start = S5P_PA_ACE,
.end = S5P_PA_ACE + SZ_32K - 1,
.flags = IORESOURCE_MEM,
},
#if defined(CONFIG_ARCH_S5PV210)
[1] = {
.start = IRQ_SSS_INT,
.end = IRQ_SSS_HASH,
.flags = IORESOURCE_IRQ,
},
#elif defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
[1] = {
.start = IRQ_INTFEEDCTRL_SSS,
.end = IRQ_INTFEEDCTRL_SSS,
.flags = IORESOURCE_IRQ,
},
#endif
};
struct platform_device s5p_device_ace = {
.name = "s5p-ace",
.id = 0,
.num_resources = ARRAY_SIZE(s5p_ace_resource),
.resource = s5p_ace_resource,
};
EXPORT_SYMBOL(s5p_device_ace);
|