ehci.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * (C) Copyright 2011
  3. * Alexander Holler <holler@ahsoftware.de>
  4. *
  5. * Based on "drivers/usb/host/ehci-omap.c" from Linux 2.6.37
  6. *
  7. * See there for additional Copyrights.
  8. *
  9. * See file CREDITS for list of people who contributed to this
  10. * project.
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License as
  14. * published by the Free Software Foundation; either version 2 of
  15. * the License, or (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25. * MA 02110-1301 USA
  26. */
  27. #ifndef _OMAP3_EHCI_H_
  28. #define _OMAP3_EHCI_H_
  29. /* USB/EHCI registers */
  30. #define OMAP_USBTLL_BASE 0x48062000UL
  31. #define OMAP_UHH_BASE 0x48064000UL
  32. #define OMAP_EHCI_BASE 0x48064800UL
  33. /* TLL Register Set */
  34. #define OMAP_USBTLL_SYSCONFIG_SOFTRESET (1 << 1)
  35. #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP (1 << 2)
  36. #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE (1 << 3)
  37. #define OMAP_USBTLL_SYSCONFIG_CACTIVITY (1 << 8)
  38. #define OMAP_USBTLL_SYSSTATUS_RESETDONE 1
  39. /* UHH Register Set */
  40. #define OMAP_UHH_SYSCONFIG_SOFTRESET (1 << 1)
  41. #define OMAP_UHH_SYSCONFIG_CACTIVITY (1 << 8)
  42. #define OMAP_UHH_SYSCONFIG_SIDLEMODE (1 << 3)
  43. #define OMAP_UHH_SYSCONFIG_ENAWAKEUP (1 << 2)
  44. #define OMAP_UHH_SYSCONFIG_MIDLEMODE (1 << 12)
  45. #define OMAP_UHH_SYSSTATUS_EHCI_RESETDONE (1 << 2)
  46. #define OMAP_UHH_SYSCONFIG_VAL (OMAP_UHH_SYSCONFIG_CACTIVITY | \
  47. OMAP_UHH_SYSCONFIG_SIDLEMODE | \
  48. OMAP_UHH_SYSCONFIG_ENAWAKEUP | \
  49. OMAP_UHH_SYSCONFIG_MIDLEMODE)
  50. #endif /* _OMAP3_EHCI_H_ */