pxa27x_udc.h 633 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  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>
  7. */
  8. #ifndef __PXA270X_UDC_H__
  9. #define __PXA270X_UDC_H__
  10. #include <asm/byteorder.h>
  11. /* Endpoint 0 states */
  12. #define EP0_IDLE 0
  13. #define EP0_IN_DATA 1
  14. #define EP0_OUT_DATA 2
  15. #define EP0_XFER_COMPLETE 3
  16. /* Endpoint parameters */
  17. #define MAX_ENDPOINTS 4
  18. #define EP0_MAX_PACKET_SIZE 16
  19. #define UDC_OUT_ENDPOINT 0x02
  20. #define UDC_IN_ENDPOINT 0x01
  21. #define UDC_INT_ENDPOINT 0x05
  22. #endif