Skip to contentSkip to conversation

Support for ALTERA FPGAs

U-Boot-Users Steven Scholz 2 participants 6 messages Oct 9, 2003 – Oct 13, 2003 Kbuild

lore
Share & tools
lore
#0 lore raw

Hi there,

the patch attached adds support for ALTERA FPGAs. For now only the ACEX1K using the so called "passive serial" Interface.

The code and idea is heavily stolen from the xilinx stuff. And just like there the board specific code has to provide some functions for handling the FPGA signals CONF_DONE, DATA, DCLK, nCONFIG, nSTATUS.

I thought I release it quite early to avoid redundant work done by others and hope this could be a usefull starting point for people using Altera FPGAs.

* Patch by Steven Scholz, 10 Oct 2003
- Add support for Altera FPGA ACEX1K

Cheers,

Signature · 16 lines
Steven Scholz

imc Measurement & Control               imc Me?systeme GmbH
Voltastr. 5                             Voltastr. 5
13355 Berlin                            13355 Berlin
Germany                                 Deutschland
fon: +49 30 467090-0                    Tel: 030 / 467090-0
fax: +49 30 4631576                     fax: 030 / 4631576

-------------- next part --------------
A non-text attachment was scrubbed...
Name: altera.patch.bz2
Type: application/octet-stream
Size: 5841 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20031009/69d3fc98/attachment.obj 
#1 lore raw

Dear Steven,

Quoted 8 lines · in message <[email protected]> you wrote:

the patch attached adds support for ALTERA FPGAs. For now only the ACEX1K using the so called "passive serial" Interface.

The code and idea is heavily stolen from the xilinx stuff. And just like there the board specific code has to provide some functions for handling the FPGA signals CONF_DONE, DATA, DCLK, nCONFIG, nSTATUS.

Quoted 5 lines

I thought I release it quite early to avoid redundant work done by others and hope this could be a usefull starting point for people using Altera FPGAs.

* Patch by Steven Scholz, 10 Oct 2003
- Add support for Altera FPGA ACEX1K

Mostly added. There is a small bug in the patch, which I tried to fix:

Index: common/Makefile
===================================================================
RCS file: /cvsroot/u-boot/u-boot/common/Makefile,v retrieving revision 1.10

Makefile +2 -1
diff -p -u -r1.10 Makefile
@@ -47,7 +47,8 @@ COBJS	= main.o altera.o bedbug.o \
 	  hush.o kgdb.o lists.o lynxkdi.o miiphybb.o miiphyutil.o \
 	  s_record.o soft_i2c.o soft_spi.o spartan2.o \
 	  usb.o usb_kbd.o usb_storage.o \
-	  virtex2.o xilinx.o
+	  virtex2.o xilinx.o \
+	  altera.o ACEX1K.o
 

You add "altera.o" which is already present in the list of objects ? [Also you ignore ordering :-( ]

Added, thanks. Will show up on CVS soon.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The reasonable man adapts himself to the world; the unreasonable  one
persists  in  trying  to  adapt  the  world to himself. Therefore all
progress depends on the unreasonable man."      - George Bernard Shaw
#2 lore raw

Dear Wolfgang,

Quoted 7 lines
Quoted 3 lines

the patch attached adds support for ALTERA FPGAs. For now only the ACEX1K using the so called "passive serial" Interface.
...

Mostly added. There is a small bug in the patch, which I tried to fix:

You add "altera.o" which is already present in the list of objects ? [Also you ignore ordering :-( ]

Oops.

I've overseen the altera.o.
And I did not know that order here is important!
Why is it?
Why was altera at.o the beginning of the list?
Is it in alphabetical order?

Signature · 1 line
Steven Scholz
#3 lore raw

Dear Steven,

Quoted 9 lines · in message <[email protected]> you wrote:
Quoted 3 lines

You add "altera.o" which is already present in the list of objects ? [Also you ignore ordering :-( ]

Oops.

I've overseen the altera.o.
And I did not know that order here is important!
Why is it?

For esthetical reasons, and and easo of work, and reliability. Searching an item or verifying if it already exists is much easier if such lists are kept sorted.

Quoted 2 lines

Why was altera at.o the beginning of the list?
Is it in alphabetical order?

Indeed.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
How long does it take a  DEC  field  service  engineer  to  change  a
lightbulb?       It depends on how many bad ones he brought with him.
#4 lore raw
In reply to Wolfgang Denk

Dear Wolfgang,

Quoted 2 lines

Added, thanks. Will show up on CVS soon.

how long does it usually take for your changes to appear on sourceforge?

Because there still not there? :-(

Signature · 8 lines
Steven Scholz

imc Measurement & Control               imc Me?systeme GmbH
Voltastr. 5                             Voltastr. 5
13355 Berlin                            13355 Berlin
Germany                                 Deutschland
fon: +49 30 467090-0                    Tel: 030 / 467090-0
fax: +49 30 4631576                     fax: 030 / 4631576