blob: 07d14821c31d2a7cafe023ca869aab4caba897b8 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Remy Bohmera954f1a2009-04-05 11:43:28 +02002/*
3 * PXA27x register declarations and HCD data structures
4 *
5 * Copyright (C) 2007 Rodolfo Giometti <giometti@linux.it>
6 * Copyright (C) 2007 Eurotech S.p.A. <info@eurotech.it>
Remy Bohmera954f1a2009-04-05 11:43:28 +02007 */
8
9
10#ifndef __PXA270X_UDC_H__
11#define __PXA270X_UDC_H__
12
13#include <asm/byteorder.h>
14
15/* Endpoint 0 states */
16#define EP0_IDLE 0
17#define EP0_IN_DATA 1
18#define EP0_OUT_DATA 2
19#define EP0_XFER_COMPLETE 3
20
21
22/* Endpoint parameters */
23#define MAX_ENDPOINTS 4
Remy Bohmera954f1a2009-04-05 11:43:28 +020024
25#define EP0_MAX_PACKET_SIZE 16
Troy Kiskydf446f52013-10-10 15:28:04 -070026
Remy Bohmera954f1a2009-04-05 11:43:28 +020027#define UDC_OUT_ENDPOINT 0x02
Remy Bohmera954f1a2009-04-05 11:43:28 +020028#define UDC_IN_ENDPOINT 0x01
Remy Bohmera954f1a2009-04-05 11:43:28 +020029#define UDC_INT_ENDPOINT 0x05
Remy Bohmera954f1a2009-04-05 11:43:28 +020030
31#endif