DNS Disable mmc suspend/resume. it's busted

Change-Id: I4fab9b2d2fe81ba92df59f807c2eeca424048156
Revert "drm/exynos: add mout_hdmi clock in hdmi driver to change parent"

This reverts commit 59956d35a8618235ea715280b49447bb36f2c975.
DNS Add hdmi devicetree stuff

Change-Id: I93e27579c62039672c6a85b94c5053edf76f82f0
DNS iommu hack

Change-Id: I91eea58d44662517ea35d54705c6ed6afe971a63
drm/exynos: Remove useless slab.h include

Change-Id: I5b1bb1ae2fc8e0e7f036ee171f21fac41e14e9fd
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Merge overlay_ops into manager_ops

This patch merges overlay_ops into manager_ops. In all cases,
overlay_ops is implemented in the same place as manager ops, it doesn't
serve a functional purpose, and doesn't make things more clear.

Change-Id: Ib024506b6b6102a1fa5c82d22597532806bc1c93
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Add an initialize function to manager and display

This patch adds an initialize function to the manager and display
operations. This allows them to keep track of drm_device in their
local context, as well as adds an initialization hook right after
the encoder is created.

BUG=chromium:234846
TEST=No regressions noted

Change-Id: Ibc88cf01adf6fcabafde5ccbe4d2dccc21c28d6d
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/56279
drm/exynos: Use manager_op initialize in fimd

This patch implements the intitialize manager op in fimd. This will
allow us to keep track of drm_dev in context instead of using subdev,
which in turn makes it easier to remove subdev from fimd.

Change-Id: I3f1c1ca547030f61772910556c62957517dbc50b
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: hdmi: Implement initialize op for hdmi

This patch implements the initialize callback in the hdmi and mixer
manager. This allows us to get rid of drm_dev in the drm_hdmi level and
track it in the mixer and hdmi drivers. This is one of the things
holding back the complete removal of the drm_hdmi layer.

Change-Id: I56a3e31a0fc79693bc486d0ff4ba146ca74d783b
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Pass exynos_drm_manager in manager ops instead of dev

This patch changes the manager ops callbacks from accepting the subdrv
device pointer to taking a pointer to the manager. This will allow us
to move closer to decoupling manager/display from subdrv, and subsequently
decoupling the crtc/plane from the encoder.

Change-Id: If5174f23fcbe05dba574128fccee7c326bbfdfce
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Remove apply manager callback

This patch removes the apply() manager callback in favor of putting the
relevant commits in the individual drivers. This will mitigate some of
the difference between the suspend/resume path and the dpms path

Change-Id: I7d3ea0ef935bc374f44bdb9b6e7efa512eb5bbb4
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Remove dpms link between encoder/connector

This patch removes the call from encoder dpms into connector dpms (which
will then call back into encoder dpms through the helper function). The
callback is likely to keep connector->dpms in the right state when
initiating dpms from crtc or encoder, but this isn't the right way to do
it. This patch is the first step towards rationalizing power management
in the exynos drm driver.

Change-Id: I64f77cc6d6c57c993a2c054f899557bca757e29c
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Rename display_op power_on to dpms

This patch renames the display_op power_on to dpms to accurately reflect
what the function does.

The side-effect of this patch is that the new hdmi dpms callback is now
invoked twice in the dpms path. This is safe and will be dealt with when
the exynos_drm shim goes away.

Change-Id: I49d2ad045a8204d7a669ecb58b22811b12153b6a
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Don't keep dpms state in encoder

This patch removes the dpms state tracking in encoder. This
state is at best confusing and at worst incorrect since the display
drivers can turn on and off without propagating the value.

Change-Id: I1bbdd8afb8da64cb74d72a762cbf81c236f62faa
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Use unsigned long for possible_crtcs

Change all instances of possible_crtcs in the exynos drm driver to be
unsigned long. This matches the type used in the drm layer.

BUG=None
TEST=Compiles, no regressions on snow

Change-Id: I82bbd9d5020a169394e0d859b5aa283364206be0
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/58208
drm/exynos: Split manager/display/subdrv

This patch splits display and manager from subdrv. The result is that
crtc functions can directly call into manager callbacks and encoder
functions can directly call into display callbacks. This will allow
us to remove the exynos_drm_hdmi shim and support mixer/hdmi & fimd/dp
with common code.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: hdmi: remove the i2c drivers and use devtree

The i2c client was previously being passed into the hdmi driver via a
dedicated i2c driver, and then a global variable. This patch removes all
of that and just uses the device tree to get the i2c_client. This patch
also properly references the client so we don't lose it before we're
done with it.

Change-Id: Ic5d31cf8d652f0f2943d5d9f53a917b09de76bbd
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
ARM: dts: exynos: Add i2c phandles to hdmi node

This patch references the hdmi ddc and phy i2c nodes directly in the
hdmi node to match the updated bindings.

Change-Id: Ia8a3a573ced50477a4db3cb0c40af92a6995d402
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Remove exynos_drm_hdmi shim

This patch trims exynos_drm_hdmi out of the driver. The reason it
existed in the first place was to make up for the mixture of
display/overlay/manager ops being spread across hdmi and mixer. With
that code now rationalized, mixer and hdmi map directly to
exynos_drm_crtc and exynos_drm_encoder, respectively. Since there is a
1:1 mapping, we no longer need this layer.

Change-Id: Ied88631eff8c85b15c24d0ab721c6843510b3171
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drm/exynos: Use drm_mode_copy to copy modes

This patch changes the manual copying of mode to adjusted_mode in
mode_fixup to use drm_mode_copy instead of handling things manually.

BUG=None
TEST=No regressions

Change-Id: Id0daa5a472981aeca69a0522c7939fcc8bcd9981
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/58225