ehci_omap3.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 _EHCI_OMAP3_H_
  28. #define _EHCI_OMAP3_H_
  29. /* USB/EHCI registers */
  30. #define OMAP3_USBTLL_BASE 0x48062000UL
  31. #define OMAP3_UHH_BASE 0x48064000UL
  32. #define OMAP3_EHCI_BASE 0x48064800UL
  33. /* TLL Register Set */
  34. #define OMAP_USBTLL_SYSCONFIG (0x10)
  35. #define OMAP_USBTLL_SYSCONFIG_SOFTRESET (1 << 1)
  36. #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP (1 << 2)
  37. #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE (1 << 3)
  38. #define OMAP_USBTLL_SYSCONFIG_CACTIVITY (1 << 8)
  39. #define OMAP_USBTLL_SYSSTATUS (0x14)
  40. #define OMAP_USBTLL_SYSSTATUS_RESETDONE (1 << 0)
  41. /* UHH Register Set */
  42. #define OMAP_UHH_SYSCONFIG (0x10)
  43. #define OMAP_UHH_SYSCONFIG_SOFTRESET (1 << 1)
  44. #define OMAP_UHH_SYSCONFIG_CACTIVITY (1 << 8)
  45. #define OMAP_UHH_SYSCONFIG_SIDLEMODE (1 << 3)
  46. #define OMAP_UHH_SYSCONFIG_ENAWAKEUP (1 << 2)
  47. #define OMAP_UHH_SYSCONFIG_MIDLEMODE (1 << 12)
  48. #define OMAP_UHH_HOSTCONFIG (0x40)
  49. #define OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN (1 << 2)
  50. #define OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN (1 << 3)
  51. #define OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN (1 << 4)
  52. #endif /* _EHCI_OMAP3_H_ */