From: Laurent Pinchart <laurentp@cse-semaphore.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Some RFCs about U-Boot's the generic FPGA support
Date: Mon, 20 Aug 2007 15:47:24 +0200 [thread overview]
Message-ID: <200708201547.24816.laurentp@cse-semaphore.com> (raw)
In-Reply-To: <200708201513.02231.matthias.fuchs@esd-electronics.com>
Hi Matthias,
On Monday 20 August 2007 15:13, Matthias Fuchs wrote:
> Hi,
>
> I am currently setting up a new board that will use U-Boot's generic
> FPGA support to boot zwi different Xilinx FPGA in slave serial mode.
> While grep'ing through the U-Boot board config files I noticed that
> nearly nobody uses this code.
>
> I made a couple of changes to the code. Some of them changes the
> current behavior a little bit, so I like to request for comments
> before submitting a final patch.
>
> Since nobody uses this code I see nothing that speaks against these
> changes:
>
> 1) Make the 'size' parameter obsolete for the 'fpga loadb' command.
> The actual bitstream size is taken from the bitstream.
>
> 2) Do not bit-swap the bytes in the xilinx bitstream. When using the
> slave serial code the bits may not be swapped. I can imagine that this
> swapping requirement comes from a special board layout. So is should
> be done in board specific code. When removing the swapping code, we
> can get rid of the complete malloc/free stuff in fpga_loadbitstream().
Bit-swapping is required when dealing with .bit files. The Development System
Reference Guide, Chapter 16 (PROMgen) states that:
"In a bitstream contained in a BIT file, the Least Significant Bit (LSB) is
always on the left side of a byte. But when a PROM programmer or a
microprocessor reads a data byte, it identifies the LSB on the right side of
the byte. In order for the PROM programmer or microprocessor to read the
bitstream correctly, the bits in each byte must first be swapped so they are
read in the correct order."
> 3) Fix a signed/unsigned issue in slave serial download code.
>
> 4) Make post() and pre() callback optional in relocation. So do
> not relocate NULL-pointers. This has been discussed a short time ago
> on the list.
Ack. I ran into the same issue and fixed the relocation issue, but found later
that I actually needed pre() and post() methods, so I never submitted a
patch.
> 5) Add a post() configuration callback for Spartan II devices in slave
> serial mode.
>
> 6) Add some more devices.
>
> 7) Minor typo fixes.
>
> Any comments?
You should probably split your patch. Point 6 is a good candidate for a
standalone patch.
> BTW: Are there any boards that use the FPGA stuff and that are not
> made public ?:-)
Yes. I use slave-parallel loading with a Spartan-3E.
Best regards,
--
Laurent Pinchart
CSE Semaphore Belgium
Chauss?e de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
next prev parent reply other threads:[~2007-08-20 13:47 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 13:13 [U-Boot-Users] Some RFCs about U-Boot's the generic FPGA support Matthias Fuchs
2007-08-20 13:47 ` Laurent Pinchart [this message]
2007-08-20 15:46 ` Matthias Fuchs
2007-08-21 8:59 ` Laurent Pinchart
2007-08-21 10:46 ` Matthias Fuchs
2007-08-21 11:33 ` Laurent Pinchart
2007-08-21 12:53 ` Matthias Fuchs
2007-08-21 20:09 ` Bruce_Leonard at selinc.com
2007-08-22 7:28 ` Laurent Pinchart
2007-08-22 7:59 ` Matthias Fuchs
2007-08-22 8:23 ` Laurent Pinchart
2007-08-22 17:12 ` Bruce_Leonard at selinc.com
2007-08-22 17:09 ` Bruce_Leonard at selinc.com
2007-08-22 17:33 ` Jerry Van Baren
2007-08-22 18:03 ` [U-Boot-Users] Loading vxWorks by u-boot Leonid
2007-08-22 19:40 ` Chris Fester
2007-08-22 20:12 ` Leonid
2007-08-22 20:42 ` Chris Fester
2007-08-22 21:18 ` Leonid
2007-08-22 20:12 ` Frank
2007-08-23 6:27 ` [U-Boot-Users] Antw: " Niklaus Giger
2007-10-09 20:04 ` [U-Boot-Users] Some RFCs about U-Boot's the generic FPGA support Bruce_Leonard at selinc.com
2007-08-23 7:41 ` Matthias Fuchs
2007-08-23 18:59 ` Bruce_Leonard at selinc.com
2007-08-20 13:52 ` Wolfgang Denk
2007-08-20 18:46 ` Bruce_Leonard at selinc.com
2007-08-21 8:30 ` Matthias Fuchs
2007-08-21 19:37 ` Bruce_Leonard at selinc.com
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=200708201547.24816.laurentp@cse-semaphore.com \
--to=laurentp@cse-semaphore.com \
--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