[U-Boot-Users] Altera Stratix II support

eran liberty eran.liberty at gmail.com
Fri Jun 1 01:10:16 CEST 2007


Hi David & All,

I have successfully integrated Altera Stratix II (fast passive
parallel) into the existing FPGA framework within u-boot.

so in u-boot it looks like this

==================== u-boot console =====================================
=> fpga info
Altera Device
Descriptor @ 0x0fff474c
Family:         Stratix II
Interface type: Fast Passive Parallel (FPP)
Device Size:    1 bytes
Cookie:         0x0 (0)
Device Function Table @ 0x0fff255c
=> bunzip ff000000 200000 3c58c
BUNZIP2: decompressed image address & size: 0x00200000 0x930d2c (9637164)
=> fpga load 0 200000 930d2c
loading to fpga  done.
=========================================================================

I have attached two patches which are applied against the latest
stable u-boot-1.1.6.
The first is only the generic stuff needed for Stratix II support.
The second contains my new board with a specific implementation of a
Stratix II FPGA along with other add-ons and fixes

If there is any wish / demand / need to port any or all of this into
the main trunk, tell me what to be done as I have never done so in the
past.

here is a summery of what can be found in the patches:

u-boot-stratixII.patch : the basic generic part for Stratix II
/common/altera.c : Added Altera_StratixII case
/include/altera.h : Added Macros and Enums to support Stratix II
/common/stratixII.c : New file that implements Stratix II based on ACEX1K.c
/include/stratixII.h : New file Stratix II header
/common/Makefile : Added "stratixII.o"
/common/fpga.c : Added "const" to suppress warning
/include/common.h : Added ndelay() declaration
/include/exports.h : Added ndelay() export
/lib_ppc/time.c : Added ndelay() implementation

u-boot-exsw6000.patch: contains everything in u-boot-stratixII.patch plus
/board/extricom/exsw6000/config.mk : new
/board/extricom/exsw6000/exsw6000.c : new
/board/extricom/exsw6000/exsw6000_fpga.c : New board specific Stratix
II implementation
/board/extricom/exsw6000/exsw6000_fpga.h : New board specific Stratix II header
/board/extricom/exsw6000/ft_board.c : new
/board/extricom/exsw6000/init.S : new
/board/extricom/exsw6000/Makefile : new
/board/extricom/exsw6000/u-boot.lds : new
/include/configs/EXSW6000.h : new
/Makefile : added EXSW6000_config target
/common/cmd_misc.c : Added bunzip2 command depends on CONFIG_BZIP2 macro defined
/cpu/mpc85xx/cpu.c: added reset by using rstcr register depands on
CONFIG_RESET_RSCTR or CONFIG_RESET_DBCR0 macro defined. The copyrights
for this are not mine. I have taken it from somewhere on the net! alas
I cant remember from where. :(
/include/asm-ppc/immap_85xx.h: added the rstcr register in the memory map

/drivers/cfi_flash.c : added security check to prevent flash function
to buffer overrun when Flash size as read from the hardware does not
match the flash size define by the config file. Also added
CONFIG_FORCE_FLASH_BANK_SIZE that can be used to set the Config size
over the read / calculated one.

Have fun,

The forum bot admin wont let me attach my patches so i put them on
yousend it... if the credits run out on some1 let me know...

u-boot-statixII.patch
http://download.yousendit.com/91048F0F125DDD5E

u-boot-exsw6000.patch
http://download.yousendit.com/44C713D149624E03




More information about the U-Boot mailing list