1 /* 2 * (C) Copyright 2008-2017 Fuzhou Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef _ROCKCHIP_PANEL_H_ 8 #define _ROCKCHIP_PANEL_H_ 9 10 struct display_state; 11 12 struct rockchip_panel_funcs { 13 int (*init)(struct display_state *state); 14 void (*deinit)(struct display_state *state); 15 int (*prepare)(struct display_state *state); 16 void (*unprepare)(struct display_state *state); 17 int (*enable)(struct display_state *state); 18 void (*disable)(struct display_state *state); 19 }; 20 21 struct rockchip_panel { 22 struct udevice *dev; 23 u32 bus_format; 24 const struct rockchip_panel_funcs *funcs; 25 const void *data; 26 }; 27 28 #endif /* _ROCKCHIP_PANEL_H_ */ 29