drm: bridge: dw-hdmi: Switch to regmap for register access
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 3 Mar 2017 17:20:06 +0000 (19:20 +0200)
committerArchit Taneja <architt@codeaurora.org>
Fri, 10 Mar 2017 10:07:47 +0000 (15:37 +0530)
commit80e2f97968b537fc9c1789fce1b7f61609a5aae4
tree0e0acd947b483b0a8b01a2c985d3527723dade7c
parent2e6777e8d5dd883b983c8de8797ff92bcb158f7c
drm: bridge: dw-hdmi: Switch to regmap for register access

The Synopsys Designware HDMI TX Controller does not enforce register
access on platforms instanciating it. The current driver supports two
different types of memory-mapped flat register access, but in order to
support the Amlogic Meson SoCs integration, and provide a more generic
way to handle all sorts of register mapping, switch the register access
to use the regmap infrastructure.

In the case of registers that are not flat memory-mapped or do not
conform to the current driver implementation, a regmap struct can be
given in the plat_data and be used at probe or bind.

Since the AHB audio driver is only available with direct memory access,
only allow the I2S audio driver to be registered is directly
memory-mapped.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170303172007.26541-10-laurent.pinchart+renesas@ideasonboard.com
drivers/gpu/drm/bridge/dw-hdmi.c
include/drm/bridge/dw_hdmi.h