diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-12-21 12:02:32 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2018-01-04 20:08:42 +0100 |
commit | ec08d5966b57abc1e7da4832f0dc57d43eb031b8 (patch) | |
tree | 914bc667e5208637a879d9750e381f9590a4913d /drivers/gpu/drm/sun4i/sun4i_tcon.c | |
parent | edea372bd205a30385d4ffbf51afdac62bba478b (diff) | |
download | lwn-ec08d5966b57abc1e7da4832f0dc57d43eb031b8.tar.gz lwn-ec08d5966b57abc1e7da4832f0dc57d43eb031b8.zip |
drm/sun4i: Create minimal multipliers and dividers
The various outputs the TCON can provide have different constraints on the
dotclock divider. Let's make them configurable by the various mode_set
functions.
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/92ff5881c8f8674056d34458b2f264cd48d4e136.1513854122.git-series.maxime.ripard@free-electrons.com
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_tcon.c')
-rw-r--r-- | drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index a1ed462c2430..41d325c0420f 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -177,6 +177,8 @@ static void sun4i_tcon0_mode_set_rgb(struct sun4i_tcon *tcon, u8 clk_delay; u32 val = 0; + tcon->dclk_min_div = 6; + tcon->dclk_max_div = 127; sun4i_tcon0_mode_set_common(tcon, mode); /* Adjust clock delay */ |