Star64_linux/drivers/gpu/drm/omapdrm/dss
Laurent Pinchart 4e20bda68e drm/omap: dss: Replace omap_dss_device port number with bitmask
The omap_dss_device port_num field stores the DT port number associated
with the device. The field is used in different ways depending on the
device type:

- For DPI outputs, the port number is used as an identifier of the DPI
instance

- For sources, the port number is used to look up the omap_dss_device by
DT port node

As omap_dss_device instances are only looked up as sources by sinks,
setting the field to the number of the source port works for both use
cases.

However, to enable looking up sinks, we need to record all the ports
associated with an omap_dss_device. Do so by turning the port_num field
into an of_ports bitmask. For DPI outputs the port number is
additionally stored in the dpi_data structure as the output ID.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-09-03 16:13:27 +03:00
..
base.c drm/omap: dss: Replace omap_dss_device port number with bitmask 2018-09-03 16:13:27 +03:00
core.c drm/omap: dss: Move platform_device_register from core.c to dss.c probe 2018-09-03 16:13:25 +03:00
dispc.c drm/omap: fix email address 2018-06-28 13:41:05 +03:00
dispc.h drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
dispc_coefs.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
display.c drm/omap: dss: Move and rename omap_dss_(get|put)_device() 2018-09-03 16:13:26 +03:00
dpi.c drm/omap: dss: Replace omap_dss_device port number with bitmask 2018-09-03 16:13:27 +03:00
dsi.c drm/omap: dss: Replace omap_dss_device port number with bitmask 2018-09-03 16:13:27 +03:00
dss-of.c drm/omap: dss: Allow looking up any device by port 2018-09-03 16:13:26 +03:00
dss.c drm/omap: dss: Rename for_each_dss_dev macro to for_each_dss_display 2018-09-03 16:13:26 +03:00
dss.h drm/omap: dss: Move DSS mgr ops and private data to dss_device 2018-09-03 16:13:26 +03:00
hdmi.h drm: omapdrm: hdmi4: Allocate the omap_hdmi data structure dynamically 2018-03-01 09:18:18 +02:00
hdmi4.c drm/omap: dss: Replace omap_dss_device port number with bitmask 2018-09-03 16:13:27 +03:00
hdmi4_cec.c drm: omapdrm: hdmi4: Allocate the omap_hdmi data structure dynamically 2018-03-01 09:18:18 +02:00
hdmi4_cec.h omapdrm: hdmi4_cec: add OMAP4 HDMI CEC support 2017-10-12 10:49:14 +03:00
hdmi4_core.c drm/omap: check return value from soc_device_match 2018-05-07 10:19:11 -04:00
hdmi4_core.h drm: omapdrm: hdmi4: Allocate the omap_hdmi data structure dynamically 2018-03-01 09:18:18 +02:00
hdmi5.c drm/omap: dss: Replace omap_dss_device port number with bitmask 2018-09-03 16:13:27 +03:00
hdmi5_core.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
hdmi5_core.h
hdmi_common.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hdmi_phy.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
hdmi_pll.c drm: omapdrm: dss: Store the registered plls array in struct dss_device 2018-03-01 09:18:18 +02:00
hdmi_wp.c drm: omapdrm: Use unsigned int type 2018-03-01 09:09:10 +02:00
Kconfig omapdrm: hdmi4: hook up the HDMI CEC support 2017-10-12 10:49:14 +03:00
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
omapdss-boot-init.c drm: omapdrm: Remove filename from header and fix copyright tag 2017-12-19 11:21:32 +02:00
omapdss.h drm/omap: dss: Replace omap_dss_device port number with bitmask 2018-09-03 16:13:27 +03:00
output.c drm/omap: dss: Modify omapdss_find_output_from_display() to return channel 2018-09-03 16:13:26 +03:00
pll.c drm/omap: Implement workaround for DRA7 errata ID:i932 2018-06-28 13:41:05 +03:00
sdi.c drm/omap: dss: Replace omap_dss_device port number with bitmask 2018-09-03 16:13:27 +03:00
venc.c drm/omap: dss: Replace omap_dss_device port number with bitmask 2018-09-03 16:13:27 +03:00
video-pll.c drm/omap: Implement workaround for DRA7 errata ID:i932 2018-06-28 13:41:05 +03:00