diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-01-18 15:51:32 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2019-01-18 21:12:34 +0100 |
commit | 3cff16d97d686061780d6a9541da70968e989cc1 (patch) | |
tree | 19ffe11e8d9ca73d3efdbf100527493eeac5c110 /drivers/gpu/drm/sun4i | |
parent | 1379e8356772ce726f301782388211ff91fe3090 (diff) | |
download | linux-3cff16d97d686061780d6a9541da70968e989cc1.tar.gz linux-3cff16d97d686061780d6a9541da70968e989cc1.tar.bz2 linux-3cff16d97d686061780d6a9541da70968e989cc1.zip |
drm/sun4i: frontend: Hook-in support for the A10, with specific quirks
This adds the appropriate device-tree compatible and quirk data for
hooking frontend support for the A20. It supports the FIR coefficients
ready bit but not the access control bit. It also takes different phase
values than the A33 for these coefficients.
The compatible is already used in the A10 device-tree and already
documented in the device-tree bindings.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190118145133.21281-23-paul.kocialkowski@bootlin.com
Diffstat (limited to 'drivers/gpu/drm/sun4i')
-rw-r--r-- | drivers/gpu/drm/sun4i/sun4i_frontend.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_frontend.c b/drivers/gpu/drm/sun4i/sun4i_frontend.c index 4a215d5202e2..53e4dbe466ff 100644 --- a/drivers/gpu/drm/sun4i/sun4i_frontend.c +++ b/drivers/gpu/drm/sun4i/sun4i_frontend.c @@ -682,6 +682,20 @@ static const struct dev_pm_ops sun4i_frontend_pm_ops = { .runtime_suspend = sun4i_frontend_runtime_suspend, }; +static const struct sun4i_frontend_data sun4i_a10_frontend = { + .ch_phase = { + { + .horzphase = 0, + .vertphase = { 0, 0 }, + }, + { + .horzphase = 0xfc000, + .vertphase = { 0xfc000, 0xfc000 }, + }, + }, + .has_coef_rdy = true, +}; + static const struct sun4i_frontend_data sun8i_a33_frontend = { .ch_phase = { { @@ -698,6 +712,10 @@ static const struct sun4i_frontend_data sun8i_a33_frontend = { const struct of_device_id sun4i_frontend_of_table[] = { { + .compatible = "allwinner,sun4i-a10-display-frontend", + .data = &sun4i_a10_frontend + }, + { .compatible = "allwinner,sun8i-a33-display-frontend", .data = &sun8i_a33_frontend }, |