linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Carlos Ojea Castro" <nuudoo.fb@gmail.com>
To: "Lennart Sorensen" <lsorense@csclub.uwaterloo.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: LPC bus in a geode sc1200
Date: Thu, 11 May 2006 15:15:53 +0200	[thread overview]
Message-ID: <bae323a50605110615gc243967l64a5e80ca620f437@mail.gmail.com> (raw)
In-Reply-To: <20060510153950.GE2835@csclub.uwaterloo.ca>

On 5/10/06, Lennart Sorensen <lsorense@csclub.uwaterloo.ca> wrote:
> On Wed, May 10, 2006 at 09:55:47AM +0200, Carlos Ojea Castro wrote:
> > Thank you very much for your reply, Len.
> > I will also have an FPGA (I think it will be on port 0x1400 or so). I
> > am writing to LPC using 'outb' like this: outb (data, port);
> > So I see an I/O write on the LPC bus, that is: 2 bytes for address and
> > 1 byte for data (it tooks one microsecond per transfer).
> >
> > To speed up things, I wish to transmit more than 1 byte for data in
> > each transfer (if possible).
> > Accordingly with page 194 of the sc1200 processor data book, it is
> > also possible to do a "Bus Master Memory Write" to transmit 1,2 or 4
> > bytes.
> > Do you know how can I make a "Bus Master Memory Write" to the LPC?
>
> Well I know we don't do that.  We have very little data, just board
> status information from various places on the board.  LPC does support
> doing DMA, which I believe is done in the same way it was done on ISA at
> least as far as the software is concerned.  How to implement DMA for LPC
> in the FPGA I have no idea.  The LPC specifications would probably tell
> you.  I imagine it involves setting up a DMA buffer in RAM (in the first
> 16MB probably) and then sending a command to the FPGA telling it to do a
> DMA transfer from that memory location using the LPC DMA commands.
>
> Len Sorensen

Well at this moment, using the low address byte to transmit data, I
can transmit 100.000 bytes in about 63 milliseconds, maybe it is
enough. Will try DMA anyway...
Thank you very much!

Regards,
Carlos

      reply	other threads:[~2006-05-11 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-09  9:11 LPC bus in a geode sc1200 Carlos Ojea Castro
2006-05-09 14:28 ` Lennart Sorensen
2006-05-10  7:55   ` Carlos Ojea Castro
2006-05-10 15:39     ` Lennart Sorensen
2006-05-11 13:15       ` Carlos Ojea Castro [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=bae323a50605110615gc243967l64a5e80ca620f437@mail.gmail.com \
    --to=nuudoo.fb@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lsorense@csclub.uwaterloo.ca \
    /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).