Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Hans de Goede | 66525bb | 2015-08-08 16:03:29 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) 2015 Hans de Goede <hdegoede@redhat.com> |
Hans de Goede | 66525bb | 2015-08-08 16:03:29 +0200 | [diff] [blame] | 4 | */ |
| 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 Holland | 2421497 | 2021-10-08 00:17:24 -0500 | [diff] [blame] | 19 | void anx9804_init(struct udevice *i2c_bus, u8 lanes, u8 data_rate, int bpp); |
Hans de Goede | 66525bb | 2015-08-08 16:03:29 +0200 | [diff] [blame] | 20 | #else |
Samuel Holland | 2421497 | 2021-10-08 00:17:24 -0500 | [diff] [blame] | 21 | static inline void anx9804_init(struct udevice *i2c_bus, u8 lanes, u8 data_rate, |
Hans de Goede | 66525bb | 2015-08-08 16:03:29 +0200 | [diff] [blame] | 22 | int bpp) {} |
| 23 | #endif |
Samuel Holland | 2421497 | 2021-10-08 00:17:24 -0500 | [diff] [blame] | 24 | |
Hans de Goede | 66525bb | 2015-08-08 16:03:29 +0200 | [diff] [blame] | 25 | #endif |