]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - include/linux/platform_data/s3c-hsotg.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[mirror_ubuntu-hirsute-kernel.git] / include / linux / platform_data / s3c-hsotg.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
127d42ae 2/* include/linux/platform_data/s3c-hsotg.h
f0e1fa76
BD
3 *
4 * Copyright 2008 Openmoko, Inc.
5 * Copyright 2008 Simtec Electronics
6 * Ben Dooks <ben@simtec.co.uk>
7 * http://armlinux.simtec.co.uk/
8 *
9 * S3C USB2.0 High-speed / OtG platform information
f0e1fa76
BD
10*/
11
66177cc1
SK
12#ifndef __LINUX_USB_S3C_HSOTG_H
13#define __LINUX_USB_S3C_HSOTG_H
14
56cc6cb7
AB
15struct platform_device;
16
1f91b4cc 17enum dwc2_hsotg_dmamode {
f0e1fa76
BD
18 S3C_HSOTG_DMA_NONE, /* do not use DMA at-all */
19 S3C_HSOTG_DMA_ONLY, /* always use DMA */
20 S3C_HSOTG_DMA_DRV, /* DMA is chosen by driver */
21};
22
23/**
1f91b4cc 24 * struct dwc2_hsotg_plat - platform data for high-speed otg/udc
f0e1fa76
BD
25 * @dma: Whether to use DMA or not.
26 * @is_osc: The clock source is an oscillator, not a crystal
27 */
1f91b4cc
FB
28struct dwc2_hsotg_plat {
29 enum dwc2_hsotg_dmamode dma;
127d42ae
LM
30 unsigned int is_osc:1;
31 int phy_type;
99f6e1f5
JS
32
33 int (*phy_init)(struct platform_device *pdev, int type);
34 int (*phy_exit)(struct platform_device *pdev, int type);
f0e1fa76 35};
99f6e1f5 36
1f91b4cc 37extern void dwc2_hsotg_set_platdata(struct dwc2_hsotg_plat *pd);
66177cc1
SK
38
39#endif /* __LINUX_USB_S3C_HSOTG_H */