omap2430.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (C) 2005-2006 by Texas Instruments
  3. *
  4. * The Inventra Controller Driver for Linux is free software; you
  5. * can redistribute it and/or modify it under the terms of the GNU
  6. * General Public License version 2 as published by the Free Software
  7. * Foundation.
  8. */
  9. #ifndef __MUSB_OMAP243X_H__
  10. #define __MUSB_OMAP243X_H__
  11. #ifndef __UBOOT__
  12. #include <plat/usb.h>
  13. #else
  14. #undef RESETDONE
  15. #endif
  16. /*
  17. * OMAP2430-specific definitions
  18. */
  19. #define OTG_REVISION 0x400
  20. #define OTG_SYSCONFIG 0x404
  21. # define MIDLEMODE 12 /* bit position */
  22. # define FORCESTDBY (0 << MIDLEMODE)
  23. # define NOSTDBY (1 << MIDLEMODE)
  24. # define SMARTSTDBY (2 << MIDLEMODE)
  25. # define SIDLEMODE 3 /* bit position */
  26. # define FORCEIDLE (0 << SIDLEMODE)
  27. # define NOIDLE (1 << SIDLEMODE)
  28. # define SMARTIDLE (2 << SIDLEMODE)
  29. # define ENABLEWAKEUP (1 << 2)
  30. # define SOFTRST (1 << 1)
  31. # define AUTOIDLE (1 << 0)
  32. #define OTG_SYSSTATUS 0x408
  33. # define RESETDONE (1 << 0)
  34. #define OTG_INTERFSEL 0x40c
  35. # define EXTCP (1 << 2)
  36. # define PHYSEL 0 /* bit position */
  37. # define UTMI_8BIT (0 << PHYSEL)
  38. # define ULPI_12PIN (1 << PHYSEL)
  39. # define ULPI_8PIN (2 << PHYSEL)
  40. #define OTG_SIMENABLE 0x410
  41. # define TM1 (1 << 0)
  42. #define OTG_FORCESTDBY 0x414
  43. # define ENABLEFORCE (1 << 0)
  44. #endif /* __MUSB_OMAP243X_H__ */