Skip to content

Commit 3cff16d

Browse files
paulkocialkowskimripard
authored andcommitted
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 <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 1379e83 commit 3cff16d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/gpu/drm/sun4i/sun4i_frontend.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,20 @@ static const struct dev_pm_ops sun4i_frontend_pm_ops = {
682682
.runtime_suspend = sun4i_frontend_runtime_suspend,
683683
};
684684

685+
static const struct sun4i_frontend_data sun4i_a10_frontend = {
686+
.ch_phase = {
687+
{
688+
.horzphase = 0,
689+
.vertphase = { 0, 0 },
690+
},
691+
{
692+
.horzphase = 0xfc000,
693+
.vertphase = { 0xfc000, 0xfc000 },
694+
},
695+
},
696+
.has_coef_rdy = true,
697+
};
698+
685699
static const struct sun4i_frontend_data sun8i_a33_frontend = {
686700
.ch_phase = {
687701
{
@@ -697,6 +711,10 @@ static const struct sun4i_frontend_data sun8i_a33_frontend = {
697711
};
698712

699713
const struct of_device_id sun4i_frontend_of_table[] = {
714+
{
715+
.compatible = "allwinner,sun4i-a10-display-frontend",
716+
.data = &sun4i_a10_frontend
717+
},
700718
{
701719
.compatible = "allwinner,sun8i-a33-display-frontend",
702720
.data = &sun8i_a33_frontend

0 commit comments

Comments
 (0)