regs-usb-phy.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (C) 2011 Samsung Electronics Co.Ltd
  3. * Author: Joonyoung Shim <jy0922.shim@samsung.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version.
  9. */
  10. #ifndef __PLAT_S5P_REGS_USB_PHY_H
  11. #define __PLAT_S5P_REGS_USB_PHY_H
  12. #define EXYNOS4_HSOTG_PHYREG(x) ((x) + S3C_VA_USB_HSPHY)
  13. #define EXYNOS4_PHYPWR EXYNOS4_HSOTG_PHYREG(0x00)
  14. #define PHY1_HSIC_NORMAL_MASK (0xf << 9)
  15. #define PHY1_HSIC1_SLEEP (1 << 12)
  16. #define PHY1_HSIC1_FORCE_SUSPEND (1 << 11)
  17. #define PHY1_HSIC0_SLEEP (1 << 10)
  18. #define PHY1_HSIC0_FORCE_SUSPEND (1 << 9)
  19. #define PHY1_STD_NORMAL_MASK (0x7 << 6)
  20. #define PHY1_STD_SLEEP (1 << 8)
  21. #define PHY1_STD_ANALOG_POWERDOWN (1 << 7)
  22. #define PHY1_STD_FORCE_SUSPEND (1 << 6)
  23. #define PHY0_NORMAL_MASK (0x39 << 0)
  24. #define PHY0_SLEEP (1 << 5)
  25. #define PHY0_OTG_DISABLE (1 << 4)
  26. #define PHY0_ANALOG_POWERDOWN (1 << 3)
  27. #define PHY0_FORCE_SUSPEND (1 << 0)
  28. #define EXYNOS4_PHYCLK EXYNOS4_HSOTG_PHYREG(0x04)
  29. #define PHY1_COMMON_ON_N (1 << 7)
  30. #define PHY0_COMMON_ON_N (1 << 4)
  31. #define PHY0_ID_PULLUP (1 << 2)
  32. #define CLKSEL_MASK (0x3 << 0)
  33. #define CLKSEL_SHIFT (0)
  34. #define CLKSEL_48M (0x0 << 0)
  35. #define CLKSEL_12M (0x2 << 0)
  36. #define CLKSEL_24M (0x3 << 0)
  37. #define EXYNOS4_RSTCON EXYNOS4_HSOTG_PHYREG(0x08)
  38. #define HOST_LINK_PORT_SWRST_MASK (0xf << 6)
  39. #define HOST_LINK_PORT2_SWRST (1 << 9)
  40. #define HOST_LINK_PORT1_SWRST (1 << 8)
  41. #define HOST_LINK_PORT0_SWRST (1 << 7)
  42. #define HOST_LINK_ALL_SWRST (1 << 6)
  43. #define PHY1_SWRST_MASK (0x7 << 3)
  44. #define PHY1_HSIC_SWRST (1 << 5)
  45. #define PHY1_STD_SWRST (1 << 4)
  46. #define PHY1_ALL_SWRST (1 << 3)
  47. #define PHY0_SWRST_MASK (0x7 << 0)
  48. #define PHY0_PHYLINK_SWRST (1 << 2)
  49. #define PHY0_HLINK_SWRST (1 << 1)
  50. #define PHY0_SWRST (1 << 0)
  51. #define EXYNOS4_PHY1CON EXYNOS4_HSOTG_PHYREG(0x34)
  52. #define FPENABLEN (1 << 0)
  53. #endif /* __PLAT_S5P_REGS_USB_PHY_H */