aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tve200/tve200_drv.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-09-27 19:31:03 -0400
committerDave Airlie <airlied@redhat.com>2018-09-27 19:36:48 -0400
commit156e60bc71aa31a3b42b1d66a822c2999bd0994c (patch)
treedbc2fa3c30c78b1465aa29ca37fefbb8a16bde8e /drivers/gpu/drm/tve200/tve200_drv.c
parentbf78296ab1cb215d0609ac6cff4e43e941e51265 (diff)
parentc2b70ffcd34eca60013d90bd6cd56e60b07adef8 (diff)
Merge tag 'drm-misc-next-2018-09-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next for 4.20: UAPI Changes: - None Cross-subsystem Changes: - MAINTAINERS: Move udl, mxsfb, and fsl-dcu into drm-misc (Stefan, Sean) Core Changes: - syncobj: Check condition before returning timeout in schedule() (Chris) Driver Changes: - various: First wave of drm_fbdev_generic_setup() conversions (Noralf) - bochs/virtio: More format byte-order improvements (Gerd) - mxsfb: A couple fixes + add runtime pm support (Leonard) - virtio: Add vmap support for prime objects (Ezequiel) Cc: Stefan Agner <stefan@agner.ch> Cc: Sean Paul <sean@poorly.run> Cc: Noralf Trønnes <noralf@tronnes.org> Cc: Gerd Hoffman <kraxel@redhat.com> Cc: Leonard Crestez <leonard.crestez@nxp.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Dave Airlie <airlied@redhat.com> From: Sean Paul <sean@poorly.run> Link: https://patchwork.freedesktop.org/patch/msgid/20180927093950.GA180365@art_vandelay
Diffstat (limited to 'drivers/gpu/drm/tve200/tve200_drv.c')
-rw-r--r--drivers/gpu/drm/tve200/tve200_drv.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/gpu/drm/tve200/tve200_drv.c b/drivers/gpu/drm/tve200/tve200_drv.c
index ac344ddb23bc..72efcecb44f7 100644
--- a/drivers/gpu/drm/tve200/tve200_drv.c
+++ b/drivers/gpu/drm/tve200/tve200_drv.c
@@ -126,12 +126,6 @@ static int tve200_modeset_init(struct drm_device *dev)
126 } 126 }
127 127
128 drm_mode_config_reset(dev); 128 drm_mode_config_reset(dev);
129
130 /*
131 * Passing in 16 here will make the RGB656 mode the default
132 * Passing in 32 will use XRGB8888 mode
133 */
134 drm_fb_cma_fbdev_init(dev, 16, 0);
135 drm_kms_helper_poll_init(dev); 129 drm_kms_helper_poll_init(dev);
136 130
137 goto finish; 131 goto finish;
@@ -149,7 +143,6 @@ DEFINE_DRM_GEM_CMA_FOPS(drm_fops);
149static struct drm_driver tve200_drm_driver = { 143static struct drm_driver tve200_drm_driver = {
150 .driver_features = 144 .driver_features =
151 DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | DRIVER_ATOMIC, 145 DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | DRIVER_ATOMIC,
152 .lastclose = drm_fb_helper_lastclose,
153 .ioctls = NULL, 146 .ioctls = NULL,
154 .fops = &drm_fops, 147 .fops = &drm_fops,
155 .name = "tve200", 148 .name = "tve200",
@@ -245,6 +238,12 @@ static int tve200_probe(struct platform_device *pdev)
245 if (ret < 0) 238 if (ret < 0)
246 goto clk_disable; 239 goto clk_disable;
247 240
241 /*
242 * Passing in 16 here will make the RGB565 mode the default
243 * Passing in 32 will use XRGB8888 mode
244 */
245 drm_fbdev_generic_setup(drm, 16);
246
248 return 0; 247 return 0;
249 248
250clk_disable: 249clk_disable:
@@ -260,7 +259,6 @@ static int tve200_remove(struct platform_device *pdev)
260 struct tve200_drm_dev_private *priv = drm->dev_private; 259 struct tve200_drm_dev_private *priv = drm->dev_private;
261 260
262 drm_dev_unregister(drm); 261 drm_dev_unregister(drm);
263 drm_fb_cma_fbdev_fini(drm);
264 if (priv->panel) 262 if (priv->panel)
265 drm_panel_bridge_remove(priv->bridge); 263 drm_panel_bridge_remove(priv->bridge);
266 drm_mode_config_cleanup(drm); 264 drm_mode_config_cleanup(drm);