omap2430.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #include <linux/platform_data/usb-omap.h>
  8. /*
  9. * OMAP2430-specific definitions
  10. */
  11. #define OTG_REVISION 0x400
  12. #define OTG_SYSCONFIG 0x404
  13. # define MIDLEMODE 12 /* bit position */
  14. # define FORCESTDBY (0 << MIDLEMODE)
  15. # define NOSTDBY (1 << MIDLEMODE)
  16. # define SMARTSTDBY (2 << MIDLEMODE)
  17. # define SIDLEMODE 3 /* bit position */
  18. # define FORCEIDLE (0 << SIDLEMODE)
  19. # define NOIDLE (1 << SIDLEMODE)
  20. # define SMARTIDLE (2 << SIDLEMODE)
  21. # define ENABLEWAKEUP (1 << 2)
  22. # define SOFTRST (1 << 1)
  23. # define AUTOIDLE (1 << 0)
  24. #define OTG_SYSSTATUS 0x408
  25. # define RESETDONE (1 << 0)
  26. #define OTG_INTERFSEL 0x40c
  27. # define EXTCP (1 << 2)
  28. # define PHYSEL 0 /* bit position */
  29. # define UTMI_8BIT (0 << PHYSEL)
  30. # define ULPI_12PIN (1 << PHYSEL)
  31. # define ULPI_8PIN (2 << PHYSEL)
  32. #define OTG_SIMENABLE 0x410
  33. # define TM1 (1 << 0)
  34. #define OTG_FORCESTDBY 0x414
  35. # define ENABLEFORCE (1 << 0)
  36. #endif /* __MUSB_OMAP243X_H__ */