ehci.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * OMAP EHCI port support
  3. * Based on LINUX KERNEL
  4. * drivers/usb/host/ehci-omap.c and drivers/mfd/omap-usb-host.c
  5. *
  6. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com
  7. * Author: Govindraj R <govindraj.raja@ti.com>
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 of
  11. * the License as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. #ifndef _OMAP4_EHCI_H_
  22. #define _OMAP4_EHCI_H_
  23. #define OMAP_EHCI_BASE (OMAP44XX_L4_CORE_BASE + 0x64C00)
  24. #define OMAP_UHH_BASE (OMAP44XX_L4_CORE_BASE + 0x64000)
  25. #define OMAP_USBTLL_BASE (OMAP44XX_L4_CORE_BASE + 0x62000)
  26. /* UHH, TLL and opt clocks */
  27. #define CM_L3INIT_HSUSBHOST_CLKCTRL 0x4A009358UL
  28. #define HSUSBHOST_CLKCTRL_CLKSEL_UTMI_P1_MASK (1 << 24)
  29. /* TLL Register Set */
  30. #define OMAP_USBTLL_SYSCONFIG_SIDLEMODE (1 << 3)
  31. #define OMAP_USBTLL_SYSCONFIG_ENAWAKEUP (1 << 2)
  32. #define OMAP_USBTLL_SYSCONFIG_SOFTRESET (1 << 1)
  33. #define OMAP_USBTLL_SYSCONFIG_CACTIVITY (1 << 8)
  34. #define OMAP_USBTLL_SYSSTATUS_RESETDONE 1
  35. #define OMAP_UHH_SYSCONFIG_SOFTRESET 1
  36. #define OMAP_UHH_SYSSTATUS_EHCI_RESETDONE (1 << 2)
  37. #define OMAP_UHH_SYSCONFIG_NOIDLE (1 << 2)
  38. #define OMAP_UHH_SYSCONFIG_NOSTDBY (1 << 4)
  39. #define OMAP_UHH_SYSCONFIG_VAL (OMAP_UHH_SYSCONFIG_NOIDLE | \
  40. OMAP_UHH_SYSCONFIG_NOSTDBY)
  41. #endif /* _OMAP4_EHCI_H_ */