From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aggelos Manousarides Date: Tue, 30 Oct 2007 17:51:21 +0200 Subject: [U-Boot-Users] Spartan FPGA patch Message-ID: <472752F9.9000307@inaccessnetworks.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The following patch fixes a bug in the slave serial programming mode for the xilinx spartan2 FPGA. A "char val" is declared, but it is used as a signed char. The check for negative value (<0) is always true on arm, or any other platform in which the char is not signed by default. As a result the FPGA cannot be programmed. By the way, I have tested this code and it works fine, apart from this error. I am using it in ARM platforms in both slave parallel and slave serial modes. I am this because I don't see any other platforms using it. This is a patch against 1.2.0, but I saw that the same code exists in 1.3.0-rc3 as well. -- Angelos Manousarides -------------- next part -------------- A non-text attachment was scrubbed... Name: fpga.patch Type: text/x-patch Size: 420 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20071030/55725c8e/attachment.bin