xref: /openbmc/u-boot/include/usb/pxa27x_udc.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
23ccbfb25SRemy Bohmer /*
33ccbfb25SRemy Bohmer  * PXA27x register declarations and HCD data structures
43ccbfb25SRemy Bohmer  *
53ccbfb25SRemy Bohmer  * Copyright (C) 2007 Rodolfo Giometti <giometti@linux.it>
63ccbfb25SRemy Bohmer  * Copyright (C) 2007 Eurotech S.p.A. <info@eurotech.it>
73ccbfb25SRemy Bohmer  */
83ccbfb25SRemy Bohmer 
93ccbfb25SRemy Bohmer 
103ccbfb25SRemy Bohmer #ifndef __PXA270X_UDC_H__
113ccbfb25SRemy Bohmer #define __PXA270X_UDC_H__
123ccbfb25SRemy Bohmer 
133ccbfb25SRemy Bohmer #include <asm/byteorder.h>
143ccbfb25SRemy Bohmer 
153ccbfb25SRemy Bohmer /* Endpoint 0 states */
163ccbfb25SRemy Bohmer #define EP0_IDLE		0
173ccbfb25SRemy Bohmer #define EP0_IN_DATA		1
183ccbfb25SRemy Bohmer #define EP0_OUT_DATA		2
193ccbfb25SRemy Bohmer #define EP0_XFER_COMPLETE	3
203ccbfb25SRemy Bohmer 
213ccbfb25SRemy Bohmer 
223ccbfb25SRemy Bohmer /* Endpoint parameters */
233ccbfb25SRemy Bohmer #define MAX_ENDPOINTS		4
243ccbfb25SRemy Bohmer 
253ccbfb25SRemy Bohmer #define EP0_MAX_PACKET_SIZE     16
26449697f1STroy Kisky 
273ccbfb25SRemy Bohmer #define UDC_OUT_ENDPOINT        0x02
283ccbfb25SRemy Bohmer #define UDC_IN_ENDPOINT         0x01
293ccbfb25SRemy Bohmer #define UDC_INT_ENDPOINT        0x05
303ccbfb25SRemy Bohmer 
313ccbfb25SRemy Bohmer #endif
32