diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-09-08 15:47:08 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-09-11 00:58:35 +0300 |
commit | ad86ebe71cba5fa06e1a96e41769c793b498fa75 (patch) | |
tree | a1e15a10f105ad73665e9e394fca6ebe278e4286 /drivers/gpu/drm/pl111/pl111_display.c | |
parent | 52289a07a09d131a0981966aa8f2ab2a252a3c53 (diff) | |
download | linux-ad86ebe71cba5fa06e1a96e41769c793b498fa75.tar.xz |
drm/pl111: Add optional variant display en/disable callbacks
The silcon and components around the PL111 may require some
variants to perform special set-up of the display. Add two
callbacks to manage this.
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20170908124709.4758-6-linus.walleij@linaro.org
Diffstat (limited to 'drivers/gpu/drm/pl111/pl111_display.c')
-rw-r--r-- | drivers/gpu/drm/pl111/pl111_display.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c index 3091fb4559cf..29148ff380d8 100644 --- a/drivers/gpu/drm/pl111/pl111_display.c +++ b/drivers/gpu/drm/pl111/pl111_display.c @@ -208,6 +208,9 @@ static void pl111_display_enable(struct drm_simple_display_pipe *pipe, */ msleep(20); + if (priv->variant_display_enable) + priv->variant_display_enable(drm, fb->format->format); + /* Power Up */ cntl |= CNTL_LCDPWR; writel(cntl, priv->regs + priv->ctrl); @@ -237,6 +240,9 @@ void pl111_display_disable(struct drm_simple_display_pipe *pipe) */ msleep(20); + if (priv->variant_display_disable) + priv->variant_display_disable(drm); + /* Disable */ writel(0, priv->regs + priv->ctrl); |