Initial commit
[kernel/linux-3.0.git] / arch / arm / plat-s5p / dev-jpeg.c
1 /*
2  * Copyright (C) 2010-2011 Samsung Electronics Co., Ltd.
3  *
4  * S5P series device definition for JPEG
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9 */
10
11 #include <linux/kernel.h>
12 #include <linux/interrupt.h>
13 #include <linux/platform_device.h>
14 #include <mach/map.h>
15
16 static struct resource s5p_jpeg_resource[] = {
17         [0] = {
18                 .start = S5P_PA_JPEG,
19                 .end   = S5P_PA_JPEG + SZ_64K - 1,
20                 .flags = IORESOURCE_MEM,
21         },
22         [1] = {
23                 .start = IRQ_JPEG,
24                 .end   = IRQ_JPEG,
25                 .flags = IORESOURCE_IRQ,
26         }
27 };
28
29 struct platform_device s5p_device_jpeg = {
30         .name             = "s5p-jpeg",
31         .id               = -1,
32         .num_resources    = ARRAY_SIZE(s5p_jpeg_resource),
33         .resource         = s5p_jpeg_resource,
34 };
35 EXPORT_SYMBOL(s5p_device_jpeg);