rk_mipi.h 620 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
  4. * Author: Eric Gao <eric.gao@rock-chips.com>
  5. */
  6. #ifndef __RK_MIPI_H
  7. #define __RK_MIPI_H
  8. struct rk_mipi_priv {
  9. uintptr_t regs;
  10. void *grf;
  11. struct udevice *panel;
  12. struct mipi_dsi *dsi;
  13. u32 ref_clk;
  14. u32 sys_clk;
  15. u32 pix_clk;
  16. u32 phy_clk;
  17. u32 txbyte_clk;
  18. u32 txesc_clk;
  19. };
  20. int rk_mipi_read_timing(struct udevice *dev,
  21. struct display_timing *timing);
  22. int rk_mipi_dsi_enable(struct udevice *dev,
  23. const struct display_timing *timing);
  24. int rk_mipi_phy_enable(struct udevice *dev);
  25. #endif