anx9804.h 661 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) 2015 Hans de Goede <hdegoede@redhat.com>
  4. */
  5. /*
  6. * Support for the ANX9804 bridge chip, which can take pixel data coming
  7. * from a parallel LCD interface and translate it on the flight into a DP
  8. * interface for driving eDP TFT displays.
  9. */
  10. #ifndef _ANX9804_H
  11. #define _ANX9804_H
  12. #define ANX9804_DATA_RATE_1620M 0x06
  13. #define ANX9804_DATA_RATE_2700M 0x0a
  14. #ifdef CONFIG_VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804
  15. void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate, int bpp);
  16. #else
  17. static inline void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate,
  18. int bpp) {}
  19. #endif
  20. #endif