summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c/include/plat/udc-hs.h
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-05-16 22:05:27 +0100
committerBen Dooks <ben-linux@fluff.org>2009-05-16 22:13:52 +0100
commitf0e1fa760099eef43f4450471d795807a1cc43c8 (patch)
tree173c95c9c24a3ca12b08493bf5bfc25862656fc1 /arch/arm/plat-s3c/include/plat/udc-hs.h
parent496a3f0927197ca155a604478bf6e7db3eca3bbd (diff)
downloadtalos-op-linux-f0e1fa760099eef43f4450471d795807a1cc43c8.tar.gz
talos-op-linux-f0e1fa760099eef43f4450471d795807a1cc43c8.zip
[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>
Diffstat (limited to 'arch/arm/plat-s3c/include/plat/udc-hs.h')
-rw-r--r--arch/arm/plat-s3c/include/plat/udc-hs.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c/include/plat/udc-hs.h b/arch/arm/plat-s3c/include/plat/udc-hs.h
new file mode 100644
index 000000000000..dd04db043109
--- /dev/null
+++ b/arch/arm/plat-s3c/include/plat/udc-hs.h
@@ -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;
+};
OpenPOWER on IntegriCloud