usb-mx2.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (C) 2009 Martin Fuzzey <mfuzzey@gmail.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __ASM_ARCH_MX21_USBH
  15. #define __ASM_ARCH_MX21_USBH
  16. enum mx21_usbh_xcvr {
  17. /* Values below as used by hardware (HWMODE register) */
  18. MX21_USBXCVR_TXDIF_RXDIF = 0,
  19. MX21_USBXCVR_TXDIF_RXSE = 1,
  20. MX21_USBXCVR_TXSE_RXDIF = 2,
  21. MX21_USBXCVR_TXSE_RXSE = 3,
  22. };
  23. struct mx21_usbh_platform_data {
  24. enum mx21_usbh_xcvr host_xcvr; /* tranceiver mode host 1,2 ports */
  25. enum mx21_usbh_xcvr otg_xcvr; /* tranceiver mode otg (as host) port */
  26. u16 enable_host1:1,
  27. enable_host2:1,
  28. enable_otg_host:1, /* enable "OTG" port (as host) */
  29. host1_xcverless:1, /* traceiverless host1 port */
  30. host1_txenoe:1, /* output enable host1 transmit enable */
  31. otg_ext_xcvr:1, /* external tranceiver for OTG port */
  32. unused:10;
  33. };
  34. #endif /* __ASM_ARCH_MX21_USBH */