Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

OMAP: DSS2: check for both cpu type and revision, rather than just re…

…vision
  • Loading branch information...
commit 4c19d2ed0286758c50c3e75a08ae6aa25a9756c7 1 parent 760853a
@sakoman sakoman authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 drivers/video/omap2/dss/dispc.c
View
4 drivers/video/omap2/dss/dispc.c
@@ -2199,7 +2199,7 @@ void dispc_set_parallel_interface_mode(enum omap_channel channel,
static bool _dispc_lcd_timings_ok(int hsw, int hfp, int hbp,
int vsw, int vfp, int vbp)
{
- if (cpu_is_omap24xx() || omap_rev() < OMAP3430_REV_ES3_0) {
+ if (cpu_is_omap24xx() || (cpu_is_omap34xx() && omap_rev_lt_3_0())) {
if (hsw < 1 || hsw > 64 ||
hfp < 1 || hfp > 256 ||
hbp < 1 || hbp > 256 ||
@@ -2232,7 +2232,7 @@ static void _dispc_set_lcd_timings(enum omap_channel channel, int hsw,
{
u32 timing_h, timing_v;
- if (cpu_is_omap24xx() || omap_rev() < OMAP3430_REV_ES3_0) {
+ if (cpu_is_omap24xx() || (cpu_is_omap34xx() && omap_rev_lt_3_0())) {
timing_h = FLD_VAL(hsw-1, 5, 0) | FLD_VAL(hfp-1, 15, 8) |
FLD_VAL(hbp-1, 27, 20);
Please sign in to comment.
Something went wrong with that request. Please try again.