diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap2-git/beagleboard/04-use-pcd.diff')
-rw-r--r-- | meta/recipes-kernel/linux/linux-omap2-git/beagleboard/04-use-pcd.diff | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/04-use-pcd.diff b/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/04-use-pcd.diff new file mode 100644 index 0000000000..bdf8ab5f0b --- /dev/null +++ b/meta/recipes-kernel/linux/linux-omap2-git/beagleboard/04-use-pcd.diff | |||
@@ -0,0 +1,28 @@ | |||
1 | From: Mans Rullgard <mans@mansr.com> | ||
2 | Date: Sun, 6 Jul 2008 13:22:54 +0000 (+0100) | ||
3 | Subject: omapfb: use PCD if set in panel config | ||
4 | X-Git-Tag: beagle-5 | ||
5 | X-Git-Url: http://git.mansr.com/?p=linux-omap;a=commitdiff_plain;h=c8060d36ae156771f00a7a27cabf1b4435c378bd | ||
6 | |||
7 | omapfb: use PCD if set in panel config | ||
8 | --- | ||
9 | |||
10 | diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c | ||
11 | index 3b36227..4e1a8e3 100644 | ||
12 | --- a/drivers/video/omap/dispc.c | ||
13 | +++ b/drivers/video/omap/dispc.c | ||
14 | @@ -798,7 +798,13 @@ static void set_lcd_timings(void) | ||
15 | l |= panel->acb & 0xff; | ||
16 | dispc_write_reg(DISPC_POL_FREQ, l); | ||
17 | |||
18 | - calc_ck_div(is_tft, panel->pixel_clock * 1000, &lck_div, &pck_div); | ||
19 | + if (panel->pcd) { | ||
20 | + pck_div = panel->pcd; | ||
21 | + lck_div = 1; | ||
22 | + } else { | ||
23 | + calc_ck_div(is_tft, panel->pixel_clock * 1000, | ||
24 | + &lck_div, &pck_div); | ||
25 | + } | ||
26 | |||
27 | l = dispc_read_reg(DISPC_DIVISOR); | ||
28 | l &= ~(FLD_MASK(16, 8) | FLD_MASK(0, 8)); | ||