2019-06-04 16:11:33 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-05-04 20:16:59 +08:00
|
|
|
/* include/linux/platform_data/s3c-hsotg.h
|
2009-05-17 05:05:27 +08:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2012-07-17 19:07:45 +08:00
|
|
|
#ifndef __LINUX_USB_S3C_HSOTG_H
|
|
|
|
#define __LINUX_USB_S3C_HSOTG_H
|
|
|
|
|
2013-02-15 06:26:56 +08:00
|
|
|
struct platform_device;
|
|
|
|
|
2015-08-07 07:11:54 +08:00
|
|
|
enum dwc2_hsotg_dmamode {
|
2009-05-17 05:05:27 +08:00
|
|
|
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 */
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2015-08-07 07:11:54 +08:00
|
|
|
* struct dwc2_hsotg_plat - platform data for high-speed otg/udc
|
2009-05-17 05:05:27 +08:00
|
|
|
* @dma: Whether to use DMA or not.
|
|
|
|
* @is_osc: The clock source is an oscillator, not a crystal
|
|
|
|
*/
|
2015-08-07 07:11:54 +08:00
|
|
|
struct dwc2_hsotg_plat {
|
|
|
|
enum dwc2_hsotg_dmamode dma;
|
2012-05-04 20:16:59 +08:00
|
|
|
unsigned int is_osc:1;
|
|
|
|
int phy_type;
|
2012-03-07 20:23:47 +08:00
|
|
|
|
|
|
|
int (*phy_init)(struct platform_device *pdev, int type);
|
|
|
|
int (*phy_exit)(struct platform_device *pdev, int type);
|
2009-05-17 05:05:27 +08:00
|
|
|
};
|
2012-03-07 20:23:47 +08:00
|
|
|
|
2015-08-07 07:11:54 +08:00
|
|
|
extern void dwc2_hsotg_set_platdata(struct dwc2_hsotg_plat *pd);
|
2012-07-17 19:07:45 +08:00
|
|
|
|
|
|
|
#endif /* __LINUX_USB_S3C_HSOTG_H */
|