]> git.sur5r.net Git - u-boot/blob - drivers/video/rockchip/rk_vop.h
rockchip: video: refactor rk_vop and split RK3288-specific code off
[u-boot] / drivers / video / rockchip / rk_vop.h
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 *regs;
14 };
15
16 enum vop_features {
17         VOP_FEATURE_OUTPUT_10BIT = (1 << 0),
18 };
19
20 struct rkvop_driverdata {
21         /* configuration */
22         u32 features;
23         /* block-specific setters/getters */
24         void (*set_pin_polarity)(struct udevice *, enum vop_modes, u32);
25 };
26
27 int rk_vop_probe(struct udevice *dev);
28 int rk_vop_bind(struct udevice *dev);
29 void rk_vop_probe_regulators(struct udevice *dev,
30                              const char * const *names, int cnt);
31
32 #endif