u-boot-brain/drivers/video/rockchip
Philipp Tomsich d46d40474a rockchip: video: refactor rk_vop and split RK3288-specific code off
To prepare for adding the RK3399 VOP driver (which shares most of its
registers and config logic with the RK3228 VOP), this change refactors
the driver and splits the RK3288-specific driver off.

The changes in detail are:
- introduces a data-structure for chip-specific drivers to register
  features/callbacks with the common driver: at this time, this is
  limited to a callback for setting the pin polarities (between the
  VOP and the encoder modules) and a flag to signal 10bit RGB
  capability
- refactors the probing of regulators into a helper function that
  can take a list of regulator names to probe and autoset
- moves the priv data-structure into a (common) header file to be
  used by the chip-specific drivers to provide base addresses to
  the common driver
- uses a callback into the chip-specific driver to set pin polarities
  (replacing the direct register accesses previously used)
- splits enabling the output (towards an encoder) into a separate
  help function withint the common driver

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-06-07 21:30:49 -06:00
..
Kconfig rockchip: video: Kconfig: set MAX_XRES and MAX_YRES via Kconfig 2017-06-07 21:30:49 -06:00
Makefile rockchip: video: refactor rk_vop and split RK3288-specific code off 2017-06-07 21:30:49 -06:00
rk_edp.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
rk_hdmi.c rockchip: video: rk_hdmi: fix implicit definition warnings 2017-06-07 21:30:47 -06:00
rk_lvds.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
rk_mipi.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
rk_vop.c rockchip: video: refactor rk_vop and split RK3288-specific code off 2017-06-07 21:30:49 -06:00
rk_vop.h rockchip: video: refactor rk_vop and split RK3288-specific code off 2017-06-07 21:30:49 -06:00
rk3288_vop.c rockchip: video: refactor rk_vop and split RK3288-specific code off 2017-06-07 21:30:49 -06:00