1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0+ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Copyright (C) 2012 Hauke Mehrtens <hauke@hauke-m.de> 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify it 6*4882a593Smuzhiyun * under the terms of the GNU General Public License as published by the 7*4882a593Smuzhiyun * Free Software Foundation; either version 2 of the License, or (at your 8*4882a593Smuzhiyun * option) any later version. 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * This program is distributed in the hope that it will be useful, but 11*4882a593Smuzhiyun * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12*4882a593Smuzhiyun * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13*4882a593Smuzhiyun * for more details. 14*4882a593Smuzhiyun * 15*4882a593Smuzhiyun * You should have received a copy of the GNU General Public License 16*4882a593Smuzhiyun * along with this program; if not, write to the Free Software Foundation, 17*4882a593Smuzhiyun * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18*4882a593Smuzhiyun */ 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #ifndef __USB_CORE_OHCI_PDRIVER_H 21*4882a593Smuzhiyun #define __USB_CORE_OHCI_PDRIVER_H 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun /** 24*4882a593Smuzhiyun * struct usb_ohci_pdata - platform_data for generic ohci driver 25*4882a593Smuzhiyun * 26*4882a593Smuzhiyun * @big_endian_desc: BE descriptors 27*4882a593Smuzhiyun * @big_endian_mmio: BE registers 28*4882a593Smuzhiyun * @no_big_frame_no: no big endian frame_no shift 29*4882a593Smuzhiyun * @num_ports: number of ports 30*4882a593Smuzhiyun * 31*4882a593Smuzhiyun * These are general configuration options for the OHCI controller. All of 32*4882a593Smuzhiyun * these options are activating more or less workarounds for some hardware. 33*4882a593Smuzhiyun */ 34*4882a593Smuzhiyun struct usb_ohci_pdata { 35*4882a593Smuzhiyun unsigned big_endian_desc:1; 36*4882a593Smuzhiyun unsigned big_endian_mmio:1; 37*4882a593Smuzhiyun unsigned no_big_frame_no:1; 38*4882a593Smuzhiyun unsigned int num_ports; 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun /* Turn on all power and clocks */ 41*4882a593Smuzhiyun int (*power_on)(struct platform_device *pdev); 42*4882a593Smuzhiyun /* Turn off all power and clocks */ 43*4882a593Smuzhiyun void (*power_off)(struct platform_device *pdev); 44*4882a593Smuzhiyun /* Turn on only VBUS suspend power and hotplug detection, 45*4882a593Smuzhiyun * turn off everything else */ 46*4882a593Smuzhiyun void (*power_suspend)(struct platform_device *pdev); 47*4882a593Smuzhiyun }; 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun #endif /* __USB_CORE_OHCI_PDRIVER_H */ 50