dw-dphy-data.h 734 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates.
  4. *
  5. * Synopsys DesignWare MIPI D-PHY platform data
  6. *
  7. * Author: Luis Oliveira <Luis.Oliveira@synopsys.com>
  8. */
  9. #include <linux/phy/phy.h>
  10. #include <linux/kernel.h>
  11. #include <dw-mipi-csi-pltfrm.h>
  12. #ifndef __DW_DPHY_DATA_H__
  13. #define __DW_DPHY_DATA_H__
  14. struct dw_phy_pdata {
  15. u32 dphy_frequency;
  16. u8 dphy_te_len;
  17. u32 config_8l;
  18. u8 dphy_gen;
  19. u8 phy_type;
  20. u8 id;
  21. };
  22. static const struct pdata_names phys[] = {
  23. { .name = "phy-dw-dphy.0.0", },
  24. { .name = "phy-dw-dphy.1.1", },
  25. };
  26. struct dw_dphy_rx;
  27. struct plat_dw_dphy {
  28. int (*get_resources)(struct device *dev, struct dw_dphy_rx *dphy);
  29. };
  30. #endif /*__DW_DPHY_DATA_H__ */