Philipp Tomsich | 147fd3a | 2017-05-31 17:59:33 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef __RK_HDMI_H__ |
| 8 | #define __RK_HDMI_H__ |
| 9 | |
| 10 | struct rkhdmi_driverdata { |
| 11 | /* configuration */ |
| 12 | u8 i2c_clk_high; |
| 13 | u8 i2c_clk_low; |
| 14 | const char * const *regulator_names; |
| 15 | u32 regulator_names_cnt; |
| 16 | /* setters/getters */ |
| 17 | int (*set_input_vop)(struct udevice *dev); |
| 18 | int (*clk_config)(struct udevice *dev); |
| 19 | }; |
| 20 | |
| 21 | struct rk_hdmi_priv { |
| 22 | struct dw_hdmi hdmi; |
| 23 | void *grf; |
| 24 | }; |
| 25 | |
| 26 | int rk_hdmi_read_edid(struct udevice *dev, u8 *buf, int buf_size); |
| 27 | void rk_hdmi_probe_regulators(struct udevice *dev, |
| 28 | const char * const *names, int cnt); |
| 29 | int rk_hdmi_ofdata_to_platdata(struct udevice *dev); |
| 30 | int rk_hdmi_probe(struct udevice *dev); |
| 31 | |
| 32 | #endif |