Remy Bohmer | a954f1a | 2009-04-05 11:43:28 +0200 | [diff] [blame] | 1 | /* |
| 2 | * PXA27x register declarations and HCD data structures |
| 3 | * |
| 4 | * Copyright (C) 2007 Rodolfo Giometti <giometti@linux.it> |
| 5 | * Copyright (C) 2007 Eurotech S.p.A. <info@eurotech.it> |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Remy Bohmer | a954f1a | 2009-04-05 11:43:28 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | |
| 11 | #ifndef __PXA270X_UDC_H__ |
| 12 | #define __PXA270X_UDC_H__ |
| 13 | |
| 14 | #include <asm/byteorder.h> |
| 15 | |
| 16 | /* Endpoint 0 states */ |
| 17 | #define EP0_IDLE 0 |
| 18 | #define EP0_IN_DATA 1 |
| 19 | #define EP0_OUT_DATA 2 |
| 20 | #define EP0_XFER_COMPLETE 3 |
| 21 | |
| 22 | |
| 23 | /* Endpoint parameters */ |
| 24 | #define MAX_ENDPOINTS 4 |
Remy Bohmer | a954f1a | 2009-04-05 11:43:28 +0200 | [diff] [blame] | 25 | |
| 26 | #define EP0_MAX_PACKET_SIZE 16 |
Troy Kisky | df446f5 | 2013-10-10 15:28:04 -0700 | [diff] [blame] | 27 | |
Remy Bohmer | a954f1a | 2009-04-05 11:43:28 +0200 | [diff] [blame] | 28 | #define UDC_OUT_ENDPOINT 0x02 |
Remy Bohmer | a954f1a | 2009-04-05 11:43:28 +0200 | [diff] [blame] | 29 | #define UDC_IN_ENDPOINT 0x01 |
Remy Bohmer | a954f1a | 2009-04-05 11:43:28 +0200 | [diff] [blame] | 30 | #define UDC_INT_ENDPOINT 0x05 |
Remy Bohmer | a954f1a | 2009-04-05 11:43:28 +0200 | [diff] [blame] | 31 | |
| 32 | #endif |