public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Kenneth Johansson <kenneth@southpole.se>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] fix DIU for small screens
Date: Fri, 11 Jul 2008 04:58:35 +0200	[thread overview]
Message-ID: <1215745115.1657.52.camel@localhost.localdomain> (raw)

The DIU_DIV register is 8 bit not 5 bit. This prevented large DIV values
so it was not possible to set a slow pixel clock and thus prevented
display on small screens. 

Signed-off-by: Kenneth Johansson <kenneth@southpole.se>

--- a/board/ads5121/ads5121_diu.c
+++ b/board/ads5121/ads5121_diu.c
@@ -57,7 +57,7 @@ void diu_set_pixel_clock(unsigned int pixclock)
        /* Modify PXCLK in GUTS CLKDVDR */
        debug("DIU: Current value of CLKDVDR = 0x%08x\n", *clkdvdr);
        temp = *clkdvdr & 0xFFFFFF00;
-       *clkdvdr = temp | (pixval & 0x1F);
+       *clkdvdr = temp | (pixval & 0xFF);
        debug("DIU: Modified value of CLKDVDR = 0x%08x\n", *clkdvdr);
 }

                 reply	other threads:[~2008-07-11  2:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1215745115.1657.52.camel@localhost.localdomain \
    --to=kenneth@southpole.se \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox