Skip to content

Commit e242ccf

Browse files
BrossKuoasus-leslieyu
authored andcommitted
HDMI: add data into rk3288_npll_rates for Waveshare DWE2100 HDMI panel
system auto generate parameters when resolution is 800x480@60, which value as follow: pixel clock:33900, NR:5, NF:113, NO:16 but the parameters use on some tinkerboard, will flicker and no display in short time, so, we tune new parameters to fix this issue Signed-off-by: bross1_kuo <bross1_kuo@asus.com> Change-Id: I3412a08b87d2778db4da3b2a5dae9712f6a08073
1 parent 0b9873f commit e242ccf

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/clk/rockchip/clk-pll.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/gcd.h>
2929
#include <linux/mfd/syscon.h>
3030
#include "clk.h"
31+
#include "../../../include/drm/drm_crtc.h"
3132

3233
#define PLL_MODE_MASK 0x3
3334
#define PLL_MODE_SLOW 0x0
@@ -343,10 +344,12 @@ static const struct rockchip_pll_rate_table *rockchip_get_pll_settings(
343344
bool iex_monitor = false;
344345
bool acer_kg221q_monitor = false;
345346
bool asus_vz229h_monitor = false;
347+
bool dwe2100_panel = false;
346348

347349
iex_monitor = detect_iex_monitor();
348350
acer_kg221q_monitor = detect_acer_kg221q_monitor();
349351
asus_vz229h_monitor = detect_asus_vz229h_monitor();
352+
dwe2100_panel = detect_dwe2100_panel();
350353

351354
for (i = 0; i < pll->rate_count; i++) {
352355
if( (rate == 85750000) && !iex_monitor)
@@ -361,6 +364,8 @@ static const struct rockchip_pll_rate_table *rockchip_get_pll_settings(
361364
continue;
362365
if( (rate == 31500000) && (rate_table[i].nr == 1) && !asus_vz229h_monitor)
363366
continue;
367+
if((rate == 33900000) && !dwe2100_panel)
368+
continue;
364369
if (rate == rate_table[i].rate) {
365370
if (i < pll->sel) {
366371
pll->scaling = rate;

drivers/clk/rockchip/clk-rk3288.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ static struct rockchip_pll_rate_table rk3288_npll_rates[] = {
157157
RK3066_PLL_RATE_NB(85500000, 2, 171, 12, 32),//1360*768@60 iex
158158
RK3066_PLL_RATE_NB(78750000, 4, 210, 16, 32),//1024*768@75 iex
159159
RK3066_PLL_RATE_NB(74250000, 4, 198, 16, 32),
160+
RK3066_PLL_RATE_NB(33900000, 5, 226, 16, 32),//Waveshare DWE2100 800x480@60
160161
RK3066_PLL_RATE_NB(31500000, 1, 21, 16, 32),//640x480@75 @72.81 ASUS VZ229H
161162
RK3066_PLL_RATE_NB(33000000, 1, 22, 16, 32),//800x480@67
162163
};

0 commit comments

Comments
 (0)