video: fsl_dcu_fb: refactor init functions
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Mon, 10 Jun 2019 11:47:49 +0000 (14:47 +0300)
committerAnatolij Gustschin <agust@denx.de>
Sun, 28 Jul 2019 22:08:49 +0000 (00:08 +0200)
commita6eedb670d56fe0d8784f2f5737077d79d96a4e5
tree197edd8384cec4550475451068d730f29d3e552c
parent75551c8bfc9545e31ec2ce238cac3857904007b8
video: fsl_dcu_fb: refactor init functions

Move dcu-related code to fsl_dcu_probe_common, keep in video_hw_init()
only legacy video stack (filling GraphicPanel struct etc.).

Add wrappers for all init functions, that will let to provide
struct fb_info as an additional param (needed for further moving it from
the global scope to driver private data struct in DM converted driver).

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
board/freescale/ls1021aiot/dcu.c
board/freescale/ls1021aqds/dcu.c
board/freescale/ls1021atwr/dcu.c
board/toradex/colibri_vf/dcu.c
drivers/video/fsl_dcu_fb.c
include/fsl_dcu_fb.h