xref: /openbmc/u-boot/drivers/video/rockchip/rk_vop.h (revision 13bdce8f8cadf07bc81d7000a04e48f3028de543)
1 /*
2  * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef __RK_VOP_H__
8 #define __RK_VOP_H__
9 
10 #include <asm/arch/vop_rk3288.h>
11 
12 struct rk_vop_priv {
13 	void *grf;
14 	void *regs;
15 };
16 
17 enum vop_features {
18 	VOP_FEATURE_OUTPUT_10BIT = (1 << 0),
19 };
20 
21 struct rkvop_driverdata {
22 	/* configuration */
23 	u32 features;
24 	/* block-specific setters/getters */
25 	void (*set_pin_polarity)(struct udevice *, enum vop_modes, u32);
26 };
27 
28 int rk_vop_probe(struct udevice *dev);
29 int rk_vop_bind(struct udevice *dev);
30 void rk_vop_probe_regulators(struct udevice *dev,
31 			     const char * const *names, int cnt);
32 
33 #endif
34