blob: e37f0f571c027832fe75d2f14fca6f06a6462826 (
plain)
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
|
/* linux/arch/arm/mach-exynos4/dev-tmu.c
*
* Copyright 2011 by SAMSUNG
*
* 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/kernel.h>
#include <linux/string.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/platform_data/exynos4_tmu.h>
#include <asm/irq.h>
#include <mach/irqs.h>
#include <mach/map.h>
#include <plat/devs.h>
static struct resource exynos4_tmu_resource[] = {
[0] = {
.start = EXYNOS4_PA_TMU,
.end = EXYNOS4_PA_TMU + 0xFFFF - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_TMU_TRIG0,
.end = IRQ_TMU_TRIG0,
.flags = IORESOURCE_IRQ,
},
};
struct platform_device exynos4_device_tmu = {
.name = "exynos4-tmu",
.id = -1,
.num_resources = ARRAY_SIZE(exynos4_tmu_resource),
.resource = exynos4_tmu_resource,
};
|