pxa27x_udc.h 633 B

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