blob: 33a844ab6917077c6bb6b8728372c00f57d73cbe [file] [log] [blame]
Ben Dooksf0e1fa72009-05-16 22:05:27 +01001/* linux/arch/arm/plat-s3c/dev-usb-hsotg.c
2 *
3 * Copyright 2008 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
5 * http://armlinux.simtec.co.uk/
6 *
7 * S3C series device definition for USB high-speed UDC/OtG block
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12*/
13
14#include <linux/kernel.h>
15#include <linux/string.h>
16#include <linux/platform_device.h>
Ben Dooks28485522010-01-27 18:13:59 +090017#include <linux/dma-mapping.h>
Ben Dooksf0e1fa72009-05-16 22:05:27 +010018
19#include <mach/irqs.h>
20#include <mach/map.h>
21
22#include <plat/devs.h>
23
24static struct resource s3c_usb_hsotg_resources[] = {
25 [0] = {
26 .start = S3C_PA_USB_HSOTG,
27 .end = S3C_PA_USB_HSOTG + 0x10000 - 1,
28 .flags = IORESOURCE_MEM,
29 },
30 [1] = {
31 .start = IRQ_OTG,
32 .end = IRQ_OTG,
33 .flags = IORESOURCE_IRQ,
34 },
35};
36
Ben Dooks28485522010-01-27 18:13:59 +090037static u64 s3c_hsotg_dmamask = DMA_BIT_MASK(32);
38
Ben Dooksf0e1fa72009-05-16 22:05:27 +010039struct platform_device s3c_device_usb_hsotg = {
40 .name = "s3c-hsotg",
41 .id = -1,
42 .num_resources = ARRAY_SIZE(s3c_usb_hsotg_resources),
43 .resource = s3c_usb_hsotg_resources,
Ben Dooks28485522010-01-27 18:13:59 +090044 .dev = {
45 .dma_mask = &s3c_hsotg_dmamask,
46 .coherent_dma_mask = DMA_BIT_MASK(32),
47 },
Ben Dooksf0e1fa72009-05-16 22:05:27 +010048};