-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ARM] S3C: Add USB high-speed/OtG device definitions
Add platform device definitions for the high-speed and OtG capable device block on the newer Samsung parts. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
- Loading branch information
Ben Dooks
authored and
Ben Dooks
committed
May 16, 2009
1 parent
496a3f0
commit f0e1fa7
Showing
6 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* linux/arch/arm/plat-s3c/dev-usb-hsotg.c | ||
* | ||
* Copyright 2008 Simtec Electronics | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* http://armlinux.simtec.co.uk/ | ||
* | ||
* S3C series device definition for USB high-speed UDC/OtG block | ||
* | ||
* 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 <mach/irqs.h> | ||
#include <mach/map.h> | ||
|
||
#include <plat/devs.h> | ||
|
||
static struct resource s3c_usb_hsotg_resources[] = { | ||
[0] = { | ||
.start = S3C_PA_USB_HSOTG, | ||
.end = S3C_PA_USB_HSOTG + 0x10000 - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
[1] = { | ||
.start = IRQ_OTG, | ||
.end = IRQ_OTG, | ||
.flags = IORESOURCE_IRQ, | ||
}, | ||
}; | ||
|
||
struct platform_device s3c_device_usb_hsotg = { | ||
.name = "s3c-hsotg", | ||
.id = -1, | ||
.num_resources = ARRAY_SIZE(s3c_usb_hsotg_resources), | ||
.resource = s3c_usb_hsotg_resources, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* arch/arm/plat-s3c/include/plat/udc-hs.h | ||
* | ||
* Copyright 2008 Openmoko, Inc. | ||
* Copyright 2008 Simtec Electronics | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* http://armlinux.simtec.co.uk/ | ||
* | ||
* S3C USB2.0 High-speed / OtG platform information | ||
* | ||
* 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. | ||
*/ | ||
|
||
enum s3c_hostg_dmamode { | ||
S3C_HSOTG_DMA_NONE, /* do not use DMA at-all */ | ||
S3C_HSOTG_DMA_ONLY, /* always use DMA */ | ||
S3C_HSOTG_DMA_DRV, /* DMA is chosen by driver */ | ||
}; | ||
|
||
/** | ||
* struct s3c_hsotg_plat - platform data for high-speed otg/udc | ||
* @dma: Whether to use DMA or not. | ||
* @is_osc: The clock source is an oscillator, not a crystal | ||
*/ | ||
struct s3c_hsotg_plat { | ||
enum s3c_hostg_dmamode dma; | ||
unsigned int is_osc : 1; | ||
}; |