public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter.korsgaarD@barco•com>
To: linuxppc-embedded@ozlabs•org
Subject: Re: [RFC] uartlite driver MicroBlaze compatability
Date: Wed, 02 May 2007 15:45:48 +0200	[thread overview]
Message-ID: <87647b5ofn.fsf@sleipner.barco.com> (raw)
In-Reply-To: <4636C836.4050502@itee.uq.edu.au> (John Williams's message of "Tue, 01 May 2007 14:55:18 +1000")

>>>>> "JW" == John Williams <jwilliams@itee•uq.edu.au> writes:

Hi,

JW> The attached patch gets your uartlite driver going on MicroBlaze.

Nice!

JW> All readb/writeb ops are converted to ioread32/iowrite32.

JW> On MicroBlaze readb/writeb are picking up the MSB, instead of LSB,
JW> and thus reading all zeros instead of the 8-bit
JW> control/status/FIFO registers that you intended.

I take it that the microblaze is big endian? Then you just need to add
3 to the base address and everything should work without your patch.

JW> Can you please confirm if this works on PPC?

It won't as ioread/write does big/little endian byte swapping. Isn't
that done on microblaze?

-- 
Bye, Peter Korsgaard

  parent reply	other threads:[~2007-05-02 13:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-01  4:55 [RFC] uartlite driver MicroBlaze compatability John Williams
2007-05-01  5:55 ` Grant Likely
2007-05-01  6:42   ` John Williams
2007-05-02  5:47     ` Grant Likely
2007-05-02  6:18       ` John Williams
2007-05-02 14:09       ` Peter Korsgaard
2007-05-02 15:59         ` Grant Likely
2007-05-02 13:59   ` Peter Korsgaard
2007-05-02 13:45 ` Peter Korsgaard [this message]
2007-05-03  1:08   ` John Williams
2007-05-03 10:22     ` David H. Lynch Jr.

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=87647b5ofn.fsf@sleipner.barco.com \
    --to=peter.korsgaard@barco$(echo .)com \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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