blob: 88bdfd70d3701eb2f3ff0e10f6896a827bced8f0 (
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
|
/* Base S3C64XX usbgadget resource and device definitions */
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/ioport.h>
#include <mach/map.h>
#include <plat/map-base.h>
#include <plat/devs.h>
#include <plat/irqs.h>
static struct resource s3c_usbgadget_resource[] = {
[0] = {
.start = S3C64XX_PA_OTG,
.end = S3C64XX_PA_OTG + 0x200000 - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_OTG,
.end = IRQ_OTG,
.flags = IORESOURCE_IRQ,
}
};
struct platform_device s3c_device_usbgadget = {
.name = "s3c-otg-usbgadget",
.id = -1,
.num_resources = ARRAY_SIZE(s3c_usbgadget_resource),
.resource = s3c_usbgadget_resource,
};
EXPORT_SYMBOL(s3c_device_usbgadget);
|