1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * PXA27x register declarations and HCD data structures
5 * Copyright (C) 2007 Rodolfo Giometti <giometti@linux.it>
6 * Copyright (C) 2007 Eurotech S.p.A. <info@eurotech.it>
10 #ifndef __PXA270X_UDC_H__
11 #define __PXA270X_UDC_H__
13 #include <asm/byteorder.h>
15 /* Endpoint 0 states */
18 #define EP0_OUT_DATA 2
19 #define EP0_XFER_COMPLETE 3
22 /* Endpoint parameters */
23 #define MAX_ENDPOINTS 4
25 #define EP0_MAX_PACKET_SIZE 16
27 #define UDC_OUT_ENDPOINT 0x02
28 #define UDC_IN_ENDPOINT 0x01
29 #define UDC_INT_ENDPOINT 0x05