mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 17:10:42 +09:00
147fd3ac5a
To prepare for the addition of RK3399 HDMI support, the HDMI driver is refactored and broken into a chip-specific and a generic part. This change adds the internal interfaces, makes common/reusable functions externally visible and splits the RK3288 driver into a separate file. For the probing of regulators, we reuse the infrastructure created during the VOP refactoring... i.e. we simply call into the helper function defined for the VOP. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
33 lines
744 B
C
33 lines
744 B
C
/*
|
|
* Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __RK_HDMI_H__
|
|
#define __RK_HDMI_H__
|
|
|
|
struct rkhdmi_driverdata {
|
|
/* configuration */
|
|
u8 i2c_clk_high;
|
|
u8 i2c_clk_low;
|
|
const char * const *regulator_names;
|
|
u32 regulator_names_cnt;
|
|
/* setters/getters */
|
|
int (*set_input_vop)(struct udevice *dev);
|
|
int (*clk_config)(struct udevice *dev);
|
|
};
|
|
|
|
struct rk_hdmi_priv {
|
|
struct dw_hdmi hdmi;
|
|
void *grf;
|
|
};
|
|
|
|
int rk_hdmi_read_edid(struct udevice *dev, u8 *buf, int buf_size);
|
|
void rk_hdmi_probe_regulators(struct udevice *dev,
|
|
const char * const *names, int cnt);
|
|
int rk_hdmi_ofdata_to_platdata(struct udevice *dev);
|
|
int rk_hdmi_probe(struct udevice *dev);
|
|
|
|
#endif
|