blob: c0fe3b393b45dfd9f6a2845dc415c8770adab432 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Hans de Goede66525bb2015-08-08 16:03:29 +02002/*
3 * (C) 2015 Hans de Goede <hdegoede@redhat.com>
Hans de Goede66525bb2015-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
19void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate, int bpp);
20#else
21static inline void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate,
22 int bpp) {}
23#endif
24#endif