]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-bsp/linux/linux-omap/base/0027-OMAP-DSS2-check-for-both-cpu-type-and-revision-rathe.patch
8f672d9a8e9ea28cdef1143ee6db78d236b23739
[glsdk/meta-ti-glsdk.git] / recipes-bsp / linux / linux-omap / base / 0027-OMAP-DSS2-check-for-both-cpu-type-and-revision-rathe.patch
1 From ec3e66ef2e222feb0408f16a3498be1ea9b6a9c0 Mon Sep 17 00:00:00 2001
2 From: Steve Sakoman <steve@sakoman.com>
3 Date: Mon, 10 May 2010 13:59:14 -0700
4 Subject: [PATCH 27/28] OMAP: DSS2: check for both cpu type and revision, rather than just revision
6 ---
7  drivers/video/omap2/dss/dispc.c |    4 ++--
8  1 files changed, 2 insertions(+), 2 deletions(-)
10 diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
11 index fa40fa5..133916a 100644
12 --- a/drivers/video/omap2/dss/dispc.c
13 +++ b/drivers/video/omap2/dss/dispc.c
14 @@ -2101,7 +2101,7 @@ void dispc_set_parallel_interface_mode(enum omap_parallel_interface_mode mode)
15  static bool _dispc_lcd_timings_ok(int hsw, int hfp, int hbp,
16                 int vsw, int vfp, int vbp)
17  {
18 -       if (cpu_is_omap24xx() || omap_rev() < OMAP3430_REV_ES3_0) {
19 +       if (cpu_is_omap24xx() || (cpu_is_omap34xx() && omap_rev_lt_3_0())) {
20                 if (hsw < 1 || hsw > 64 ||
21                                 hfp < 1 || hfp > 256 ||
22                                 hbp < 1 || hbp > 256 ||
23 @@ -2134,7 +2134,7 @@ static void _dispc_set_lcd_timings(int hsw, int hfp, int hbp,
24  {
25         u32 timing_h, timing_v;
26  
27 -       if (cpu_is_omap24xx() || omap_rev() < OMAP3430_REV_ES3_0) {
28 +       if (cpu_is_omap24xx() || (cpu_is_omap34xx() && omap_rev_lt_3_0())) {
29                 timing_h = FLD_VAL(hsw-1, 5, 0) | FLD_VAL(hfp-1, 15, 8) |
30                         FLD_VAL(hbp-1, 27, 20);
31  
32 -- 
33 1.6.6.1