mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 20:43:32 +00:00
2421497cb7
Two displays supported by the sunxi display driver (each one used by a single board) require initialization over I2C. Both previously used i2c_soft; replace this with the i2c-gpio instance that already exists in those boards' device trees (sun5i-a13-utoo-p66 and sun6i-a31-colombus). Since the i2c-gpio nodes are not referenced by any other node in the device trees (the device trees have no panel node), the I2C bus is selected by its node name. This panel initialization code was the only i2c_soft user, so the i2c_soft GPIO setup code can be removed now as well. Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
25 lines
668 B
C
25 lines
668 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) 2015 Hans de Goede <hdegoede@redhat.com>
|
|
*/
|
|
|
|
/*
|
|
* Support for the ANX9804 bridge chip, which can take pixel data coming
|
|
* from a parallel LCD interface and translate it on the flight into a DP
|
|
* interface for driving eDP TFT displays.
|
|
*/
|
|
|
|
#ifndef _ANX9804_H
|
|
#define _ANX9804_H
|
|
|
|
#define ANX9804_DATA_RATE_1620M 0x06
|
|
#define ANX9804_DATA_RATE_2700M 0x0a
|
|
|
|
#ifdef CONFIG_VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804
|
|
void anx9804_init(struct udevice *i2c_bus, u8 lanes, u8 data_rate, int bpp);
|
|
#else
|
|
static inline void anx9804_init(struct udevice *i2c_bus, u8 lanes, u8 data_rate,
|
|
int bpp) {}
|
|
#endif
|
|
|
|
#endif
|