omap2430.h 1.3 KB

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