diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-09-08 08:47:09 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-09-10 17:58:42 -0400 |
commit | 72fe915ac5655a84210adbe358425e40b9ada5cb (patch) | |
tree | c473274cc348193115b7efbfe397fb6434bea5f0 /drivers/gpu/drm/pl111/pl111_drv.c | |
parent | ad86ebe71cba5fa06e1a96e41769c793b498fa75 (diff) |
drm/pl111: Add handling of Versatile platforms
The ARM reference designs in the Versatile family: Integrator,
Versatile and RealView can make use of the new DRM driver as well.
We just need to create a bit of platform-specific code for them
that we isolate to its own file.
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-7-linus.walleij@linaro.org
Diffstat (limited to 'drivers/gpu/drm/pl111/pl111_drv.c')
-rw-r--r-- | drivers/gpu/drm/pl111/pl111_drv.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c index 7a47db066a78..201d57d5cb54 100644 --- a/drivers/gpu/drm/pl111/pl111_drv.c +++ b/drivers/gpu/drm/pl111/pl111_drv.c | |||
@@ -41,9 +41,6 @@ | |||
41 | * - Fix race between setting plane base address and getting IRQ for | 41 | * - Fix race between setting plane base address and getting IRQ for |
42 | * vsync firing the pageflip completion. | 42 | * vsync firing the pageflip completion. |
43 | * | 43 | * |
44 | * - Expose the correct set of formats we can support based on the | ||
45 | * "arm,pl11x,tft-r0g0b0-pads" DT property. | ||
46 | * | ||
47 | * - Use the "max-memory-bandwidth" DT property to filter the | 44 | * - Use the "max-memory-bandwidth" DT property to filter the |
48 | * supported formats. | 45 | * supported formats. |
49 | * | 46 | * |
@@ -73,6 +70,7 @@ | |||
73 | #include <drm/drm_panel.h> | 70 | #include <drm/drm_panel.h> |
74 | 71 | ||
75 | #include "pl111_drm.h" | 72 | #include "pl111_drm.h" |
73 | #include "pl111_versatile.h" | ||
76 | 74 | ||
77 | #define DRIVER_DESC "DRM module for PL111" | 75 | #define DRIVER_DESC "DRM module for PL111" |
78 | 76 | ||
@@ -258,6 +256,10 @@ static int pl111_amba_probe(struct amba_device *amba_dev, | |||
258 | return ret; | 256 | return ret; |
259 | } | 257 | } |
260 | 258 | ||
259 | ret = pl111_versatile_init(dev, priv); | ||
260 | if (ret) | ||
261 | goto dev_unref; | ||
262 | |||
261 | ret = pl111_modeset_init(drm); | 263 | ret = pl111_modeset_init(drm); |
262 | if (ret != 0) | 264 | if (ret != 0) |
263 | goto dev_unref; | 265 | goto dev_unref; |