omap2430.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (C) 2005-2006 by Texas Instruments
  3. *
  4. * SPDX-License-Identifier: GPL-2.0
  5. */
  6. #ifndef __MUSB_OMAP243X_H__
  7. #define __MUSB_OMAP243X_H__
  8. #ifndef __UBOOT__
  9. #include <plat/usb.h>
  10. #else
  11. #undef RESETDONE
  12. #endif
  13. /*
  14. * OMAP2430-specific definitions
  15. */
  16. #define OTG_REVISION 0x400
  17. #define OTG_SYSCONFIG 0x404
  18. # define MIDLEMODE 12 /* bit position */
  19. # define FORCESTDBY (0 << MIDLEMODE)
  20. # define NOSTDBY (1 << MIDLEMODE)
  21. # define SMARTSTDBY (2 << MIDLEMODE)
  22. # define SIDLEMODE 3 /* bit position */
  23. # define FORCEIDLE (0 << SIDLEMODE)
  24. # define NOIDLE (1 << SIDLEMODE)
  25. # define SMARTIDLE (2 << SIDLEMODE)
  26. # define ENABLEWAKEUP (1 << 2)
  27. # define SOFTRST (1 << 1)
  28. # define AUTOIDLE (1 << 0)
  29. #define OTG_SYSSTATUS 0x408
  30. # define RESETDONE (1 << 0)
  31. #define OTG_INTERFSEL 0x40c
  32. # define EXTCP (1 << 2)
  33. # define PHYSEL 0 /* bit position */
  34. # define UTMI_8BIT (0 << PHYSEL)
  35. # define ULPI_12PIN (1 << PHYSEL)
  36. # define ULPI_8PIN (2 << PHYSEL)
  37. #define OTG_SIMENABLE 0x410
  38. # define TM1 (1 << 0)
  39. #define OTG_FORCESTDBY 0x414
  40. # define ENABLEFORCE (1 << 0)
  41. /*
  42. * OMAP4-specific definitions
  43. */
  44. #define USBOTGHS_CONTROL_AVALID (1 << 0)
  45. #define USBOTGHS_CONTROL_VBUSVALID (1 << 2)
  46. #define USBOTGHS_CONTROL_IDDIG (1 << 4)
  47. #endif /* __MUSB_OMAP243X_H__ */