diff options
| author | Lukasz Majewski <l.majewski@samsung.com> | 2012-05-04 08:16:59 -0400 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2012-05-04 08:53:09 -0400 |
| commit | 127d42ae47703fe7b7bc59c0fb687a05e22a92a4 (patch) | |
| tree | ff6df34d708ccef908c5f1430a7b41091cdc6b89 /include/linux/platform_data | |
| parent | 4f06539ffa1948f1d2623f549136c87e33dc1d75 (diff) | |
usb:hsotg:samsung: Remove platform dependency from s3c-hsotg
This code removes platform dependency from s3c-hsotg driver.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/s3c-hsotg.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/platform_data/s3c-hsotg.h b/include/linux/platform_data/s3c-hsotg.h new file mode 100644 index 000000000000..97ec12c2ded4 --- /dev/null +++ b/include/linux/platform_data/s3c-hsotg.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* include/linux/platform_data/s3c-hsotg.h | ||
| 2 | * | ||
| 3 | * Copyright 2008 Openmoko, Inc. | ||
| 4 | * Copyright 2008 Simtec Electronics | ||
| 5 | * Ben Dooks <ben@simtec.co.uk> | ||
| 6 | * http://armlinux.simtec.co.uk/ | ||
| 7 | * | ||
| 8 | * S3C USB2.0 High-speed / OtG platform information | ||
| 9 | * | ||
| 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. | ||
| 13 | */ | ||
| 14 | |||
| 15 | enum s3c_hsotg_dmamode { | ||
| 16 | S3C_HSOTG_DMA_NONE, /* do not use DMA at-all */ | ||
| 17 | S3C_HSOTG_DMA_ONLY, /* always use DMA */ | ||
| 18 | S3C_HSOTG_DMA_DRV, /* DMA is chosen by driver */ | ||
| 19 | }; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * struct s3c_hsotg_plat - platform data for high-speed otg/udc | ||
| 23 | * @dma: Whether to use DMA or not. | ||
| 24 | * @is_osc: The clock source is an oscillator, not a crystal | ||
| 25 | */ | ||
| 26 | struct s3c_hsotg_plat { | ||
| 27 | enum s3c_hsotg_dmamode dma; | ||
| 28 | unsigned int is_osc:1; | ||
| 29 | int phy_type; | ||
| 30 | |||
| 31 | int (*phy_init)(struct platform_device *pdev, int type); | ||
| 32 | int (*phy_exit)(struct platform_device *pdev, int type); | ||
| 33 | }; | ||
| 34 | |||
| 35 | extern void s3c_hsotg_set_platdata(struct s3c_hsotg_plat *pd); | ||
