ufshci-dwc.h 876 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * UFS Host driver for Synopsys Designware Core
  3. *
  4. * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com)
  5. *
  6. * Authors: Joao Pinto <jpinto@synopsys.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef _UFSHCI_DWC_H
  13. #define _UFSHCI_DWC_H
  14. /* DWC HC UFSHCI specific Registers */
  15. enum dwc_specific_registers {
  16. DWC_UFS_REG_HCLKDIV = 0xFC,
  17. };
  18. /* Clock Divider Values: Hex equivalent of frequency in MHz */
  19. enum clk_div_values {
  20. DWC_UFS_REG_HCLKDIV_DIV_62_5 = 0x3e,
  21. DWC_UFS_REG_HCLKDIV_DIV_125 = 0x7d,
  22. DWC_UFS_REG_HCLKDIV_DIV_200 = 0xc8,
  23. };
  24. /* Selector Index */
  25. enum selector_index {
  26. SELIND_LN0_TX = 0x00,
  27. SELIND_LN1_TX = 0x01,
  28. SELIND_LN0_RX = 0x04,
  29. SELIND_LN1_RX = 0x05,
  30. };
  31. #endif /* End of Header */