blob: ea6c9f2d558f5fa038a80d31933d41397a18c4e7 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Hans de Goededfc1efe2015-08-08 16:03:29 +02002/*
3 * (C) 2015 Hans de Goede <hdegoede@redhat.com>
Hans de Goededfc1efe2015-08-08 16:03:29 +02004 */
5
6/*
7 * Support for the ANX9804 bridge chip, which can take pixel data coming
8 * from a parallel LCD interface and translate it on the flight into a DP
9 * interface for driving eDP TFT displays.
10 */
11
12#ifndef _ANX9804_H
13#define _ANX9804_H
14
15#define ANX9804_DATA_RATE_1620M 0x06
16#define ANX9804_DATA_RATE_2700M 0x0a
17
18#ifdef CONFIG_VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804
Samuel Holland75fe0f42021-10-08 00:17:24 -050019void anx9804_init(struct udevice *i2c_bus, u8 lanes, u8 data_rate, int bpp);
Hans de Goededfc1efe2015-08-08 16:03:29 +020020#else
Samuel Holland75fe0f42021-10-08 00:17:24 -050021static inline void anx9804_init(struct udevice *i2c_bus, u8 lanes, u8 data_rate,
Hans de Goededfc1efe2015-08-08 16:03:29 +020022 int bpp) {}
23#endif
Samuel Holland75fe0f42021-10-08 00:17:24 -050024
Hans de Goededfc1efe2015-08-08 16:03:29 +020025#endif