Merge branch 'u-boot-stm32_20190827' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / include / usb / designware_udc.h
index ae98e8c2c2090930950d035b03b30821d3d16238..f874e5c35cc2d1f21c064cbf6689700a6a4ede1f 100644 (file)
@@ -1,24 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2009
  * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
  */
 
 #ifndef __DW_UDC_H
@@ -189,18 +172,6 @@ struct udcfifo_regs {
        u32 *fifo_p;
 };
 
-/*
- * USBTTY definitions
- */
-#define  EP0_MAX_PACKET_SIZE           64
-#define  UDC_INT_ENDPOINT              1
-#define  UDC_INT_PACKET_SIZE           64
-#define  UDC_OUT_ENDPOINT              2
-#define  UDC_BULK_PACKET_SIZE          64
-#define  UDC_IN_ENDPOINT               3
-#define  UDC_OUT_PACKET_SIZE           64
-#define  UDC_IN_PACKET_SIZE            64
-
 /*
  * UDC endpoint definitions
  */
@@ -209,22 +180,4 @@ struct udcfifo_regs {
 #define  UDC_EP2                       2
 #define  UDC_EP3                       3
 
-/*
- * Function declarations
- */
-
-void udc_irq(void);
-
-void udc_set_nak(int epid);
-void udc_unset_nak(int epid);
-int udc_endpoint_write(struct usb_endpoint_instance *endpoint);
-int udc_init(void);
-void udc_enable(struct usb_device_instance *device);
-void udc_disable(void);
-void udc_connect(void);
-void udc_disconnect(void);
-void udc_startup_events(struct usb_device_instance *device);
-void udc_setup_ep(struct usb_device_instance *device, unsigned int ep,
-                 struct usb_endpoint_instance *endpoint);
-
 #endif /* __DW_UDC_H */