drm/sun4i: dsi: Get the mod clock for A31
authorJagan Teki <jagan@amarulasolutions.com>
Sun, 22 Dec 2019 13:22:25 +0000 (18:52 +0530)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 26 Dec 2019 09:33:59 +0000 (10:33 +0100)
commit26a839b3c286060ff3a6d7b14194ae845ec5aa96
tree0f6f067e8798c49d52df17d9b67d6bf231034de6
parentdb08ca5a64d208645301600e79f34e441e5da986
drm/sun4i: dsi: Get the mod clock for A31

As per the user manual, look like mod clock is not mandatory
for all Allwinner MIPI DSI controllers, it is connected to
CLK_DSI_SCLK for A31 and not available in A64.

So, add compatible check for A31 and get mod clock accordingly.

Tested-by: Merlijn Wajer <merlijn@wizzup.org>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20191222132229.30276-4-jagan@amarulasolutions.com
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c