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