linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Boris Bezlaj <boris@gajba.net>
Cc: James Simmons <jsimmons@infradead.org>,
	Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [PATCH] imsttfb 2.5.x
Date: 16 Apr 2003 10:26:11 +0200	[thread overview]
Message-ID: <1050481571.2265.20.camel@zion.wanadoo.fr> (raw)
In-Reply-To: <20030415224313.GA358@gajba.net>

On Wed, 2003-04-16 at 00:43, Boris Bezlaj wrote:
> On Tue, Apr 15, 2003 at 10:05:29PM +0200, Benjamin Herrenschmidt wrote:
> > 
> > > Does readl handle byte swapping on the PPC. The registers expect the data 
> > > feed to them to be little endian. Actually this driver will only work on 
> > > the PPC and ix86 platform. Other big endian platforms are out of luck. 
> 
> It works on ix86? I thought there were problems with ramdac init..must
> try that someday 8)

Possibly, I never tested

> Or would it be better to scrap the read/write_reg_le32 alltogether?

Go on ;)

Ben.

> P.S.
> 	Please check http://knjiznica-jesenice.org/~boris/boot/101_0145.JPG
> What would i need to initialize in ramdac to get rid of "checkerboard" effect? Any ideas?
> 
> 
> 
> --- linux-2.5.50/drivers/video/ORIG_imsttfb.c   2003-04-15 23:06:29.000000000 +0200
> +++ linux-2.5.50/drivers/video/imsttfb.c        2003-04-15 23:07:41.000000000 +0200
> @@ -408,20 +408,12 @@
>   */
>  static inline u32 read_reg_le32(volatile u32 *base, int regindex)
>  {
> -#ifdef __powerpc__
> -       return in_le32((volatile u32 *) (base + regindex));
> -#else
>         return readl(base + regindex);
> -#endif
>  }
> 
>  static inline void write_reg_le32(volatile u32 *base, int regindex, u32 val)
>  {
> -#ifdef __powerpc__
> -       out_le32((volatile u32 *) (base + regindex), val);
> -#else
>         writel(val, base + regindex);
> -#endif
>  }
> 
>  static __u32
-- 
Benjamin Herrenschmidt <benh@kernel.crashing.org>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

      reply	other threads:[~2003-04-16  8:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-12 11:19 [PATCH] imsttfb 2.5.x Boris Bezlaj
2003-04-15  7:05 ` Benjamin Herrenschmidt
2003-04-15 19:33   ` James Simmons
2003-04-15 20:05     ` Benjamin Herrenschmidt
2003-04-15 22:43       ` Boris Bezlaj
2003-04-16  8:26         ` Benjamin Herrenschmidt [this message]

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=1050481571.2265.20.camel@zion.wanadoo.fr \
    --to=benh@kernel.crashing.org \
    --cc=boris@gajba.net \
    --cc=jsimmons@infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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;
as well as URLs for NNTP newsgroup(s).