diff options
| author | Icenowy Zheng <icenowy@aosc.io> | 2018-11-04 13:27:03 -0500 |
|---|---|---|
| committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-11-05 05:49:06 -0500 |
| commit | 9b4dcc9cbbfb40fde3417827d6b41e2a5642ce3d (patch) | |
| tree | 3059f76ae18762b7b37da924ee81da1afd8c12fa /drivers/gpu | |
| parent | bbf81a9c7188531b0c391e916b5931e404e5be54 (diff) | |
drm: sun4i: add support for H6 TCON TOP
The TCON TOP on Allwinner H6 SoC is a cut down version of the R40 TCON
TOP, which dropped TCON_TV1 and DSI (which do not exist on H6).
Add support for it.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181104182705.18047-27-jernej.skrabec@siol.net
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun8i_tcon_top.c b/drivers/gpu/drm/sun4i/sun8i_tcon_top.c index e94e3fb1736b..fc36e0c10a37 100644 --- a/drivers/gpu/drm/sun4i/sun8i_tcon_top.c +++ b/drivers/gpu/drm/sun4i/sun8i_tcon_top.c | |||
| @@ -273,12 +273,20 @@ const struct sun8i_tcon_top_quirks sun8i_r40_tcon_top_quirks = { | |||
| 273 | .has_dsi = true, | 273 | .has_dsi = true, |
| 274 | }; | 274 | }; |
| 275 | 275 | ||
| 276 | const struct sun8i_tcon_top_quirks sun50i_h6_tcon_top_quirks = { | ||
| 277 | /* Nothing special */ | ||
| 278 | }; | ||
| 279 | |||
| 276 | /* sun4i_drv uses this list to check if a device node is a TCON TOP */ | 280 | /* sun4i_drv uses this list to check if a device node is a TCON TOP */ |
| 277 | const struct of_device_id sun8i_tcon_top_of_table[] = { | 281 | const struct of_device_id sun8i_tcon_top_of_table[] = { |
| 278 | { | 282 | { |
| 279 | .compatible = "allwinner,sun8i-r40-tcon-top", | 283 | .compatible = "allwinner,sun8i-r40-tcon-top", |
| 280 | .data = &sun8i_r40_tcon_top_quirks | 284 | .data = &sun8i_r40_tcon_top_quirks |
| 281 | }, | 285 | }, |
| 286 | { | ||
| 287 | .compatible = "allwinner,sun50i-h6-tcon-top", | ||
| 288 | .data = &sun50i_h6_tcon_top_quirks | ||
| 289 | }, | ||
| 282 | { /* sentinel */ } | 290 | { /* sentinel */ } |
| 283 | }; | 291 | }; |
| 284 | MODULE_DEVICE_TABLE(of, sun8i_tcon_top_of_table); | 292 | MODULE_DEVICE_TABLE(of, sun8i_tcon_top_of_table); |
