drm: zynq_drm: vtc: Remove unused members from vtc sig config

Remove unused members from vtc_sig_config struct.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: osd: Add set background color function

Add a set_color function to set up the background color of OSD

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: Use of_property_read_u32

Switch from of_get_property() to of_property_read_u32() which
handles the endianness internally.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: Use lower case for hex values

Change to use lower case for all hex values

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: connector: Fix some minors

Remove a unnecessary variable, and fix a unused return value.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: Fix headers

Reorder #include alphabetically, and add missing headers for
forwared declaration of some drm structures.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: drv: Remove DRIVER_BUS_PLATFORM feature

Remove DRIVER_BUS_PLATFORM feature which is not used in framework

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: Change to sizeof(*var)

Change to use sizeof(*var) instread of using sizeof(type)

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: drv: Init polling after connetor is initialized

Change to call drm_kms_helper_poll_init() after the connector
is initialized since this function iterates connectors to see
if polling should be enabled.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: drv: Add to disable unused functions

Add to call drm_helper_disable_unused_functions() at the end of
zynq_drm_load()

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: cresample: Add fsync reset

Change the reset() to immediate reset, and add an API fsync_reset()
which asserts the reset synchronized with frame sync.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: osd: Add a fsync reset

Modify the default reset to immediate reset, and add a function to
do frame synchronized reset.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: rgb2yuv: Add a fsync reset function

Change the default reset to immediate reset, and add a frame sync
reset function.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: vtc: Add a fsync reset function

Change the default reset to immediate reset, and add a function
that resets with frame sync.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: plane: Turn off a plane when planes are removed

Add to call plane_dpms(OFF) before calling plane_destroy(). This
makes sure that planes are off before they are removed.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: drv: Use module_platform_driver()

Use module_platform_driver() instead of module_init() or
later_initcall(). By using this, the initialization function
can be called before other sub drivers are initialized,
so -EPROBE_DEFER is used for sub module error return values.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: encoder/connector: Check slave funcs in create()

Add to check if a slave encoder has functions when an encoder is
created rather than checking it in encoder slave call sites.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
drm: zynq_drm: connector/encoder: Remove unnecessary NULL check

Remove unnecessary NULL check for some macros which don't
return NULL.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>