Adding support for MOXA ART SoC. Testing port of linux-2.6.32.60-moxart.
[linux-3.6.7-moxart.git] / include / linux / platform_data / s3c-hsotg.h
blob8b79e0967f9caf6a524012664ee2e8b99e390ceb
1 /* include/linux/platform_data/s3c-hsotg.h
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
5 * Ben Dooks <ben@simtec.co.uk>
6 * http://armlinux.simtec.co.uk/
8 * S3C USB2.0 High-speed / OtG platform information
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #ifndef __LINUX_USB_S3C_HSOTG_H
16 #define __LINUX_USB_S3C_HSOTG_H
18 enum s3c_hsotg_dmamode {
19 S3C_HSOTG_DMA_NONE, /* do not use DMA at-all */
20 S3C_HSOTG_DMA_ONLY, /* always use DMA */
21 S3C_HSOTG_DMA_DRV, /* DMA is chosen by driver */
24 /**
25 * struct s3c_hsotg_plat - platform data for high-speed otg/udc
26 * @dma: Whether to use DMA or not.
27 * @is_osc: The clock source is an oscillator, not a crystal
29 struct s3c_hsotg_plat {
30 enum s3c_hsotg_dmamode dma;
31 unsigned int is_osc:1;
32 int phy_type;
34 int (*phy_init)(struct platform_device *pdev, int type);
35 int (*phy_exit)(struct platform_device *pdev, int type);
38 extern void s3c_hsotg_set_platdata(struct s3c_hsotg_plat *pd);
40 #endif /* __LINUX_USB_S3C_HSOTG_H */