[U-Boot-Users] [PATCH 01/13] SPARC: Added generic support for SPARC architecture.

Daniel Hellstrom daniel at gaisler.com
Fri Mar 28 20:22:47 CET 2008


Not much to say, tested on LEON2 simulator and LEON3.

ABOUT SPARC-ELF COMPILER
------------------------
Compiling u-boot for LEON3 and LEON2 has only been has been tested 
with GCC 3.4.4 compiler with added LEON2 and LEON3 support available from 
www.gaisler.com or 
ftp://ftp.gaisler.com/gaisler.com/bcc/bin/linux/sparc-elf-3.4.4-1.0.30.tar.bz2, 
installation instructions can be found in bcc/doc/bcc.pdf. (extract to /opt/ 
and add /opt/sparc-elf-3.4.4/bin to PATH).

U-BOOT support tested
---------------------
- LEON3 (and LEON3FT Fault tolerant version)
- LEON3 Simulator (GRSIM and TSIM)
- LEON2 Simulator (GRSIM and TSIM)
- Network (GRETH and SMC91111)
- USB 1.1 (UHCI)
- Linux and RTEMS booting
- booting UBOOT from RAM and FLASH by changing board/gaisler/xxx/config.mk
- DDR, DDR2, SRAM, FT-SRAM
- UART, IRQ, Timer

This patch is available at ftp://ftp.gaisler.com/gaisler.com/u-boot/patches/1_sparc.patch.

Best Regards,
Daniel Hellstrom

Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>
---
 MAKEALL                         |    7 +
 Makefile                        |    9 +-
 README                          |    1 +
 examples/Makefile               |    3 +
 examples/sparc.lds              |   61 +++++
 examples/stubs.c                |   16 ++
 include/asm-sparc/asi.h         |   32 +++
 include/asm-sparc/asmmacro.h    |   45 ++++
 include/asm-sparc/atomic.h      |   29 +++
 include/asm-sparc/bitops.h      |   29 +++
 include/asm-sparc/byteorder.h   |   37 +++
 include/asm-sparc/cache.h       |   31 +++
 include/asm-sparc/errno.h       |  162 ++++++++++++
 include/asm-sparc/global_data.h |   85 +++++++
 include/asm-sparc/io.h          |   94 +++++++
 include/asm-sparc/irq.h         |   49 ++++
 include/asm-sparc/machines.h    |   92 +++++++
 include/asm-sparc/page.h        |   43 ++++
 include/asm-sparc/posix_types.h |  139 +++++++++++
 include/asm-sparc/processor.h   |  109 ++++++++
 include/asm-sparc/prom.h        |  297 ++++++++++++++++++++++
 include/asm-sparc/psr.h         |   97 ++++++++
 include/asm-sparc/ptrace.h      |  181 ++++++++++++++
 include/asm-sparc/srmmu.h       |  301 ++++++++++++++++++++++
 include/asm-sparc/stack.h       |  162 ++++++++++++
 include/asm-sparc/string.h      |   55 ++++
 include/asm-sparc/types.h       |   71 ++++++
 include/asm-sparc/u-boot.h      |   74 ++++++
 include/asm-sparc/winmacro.h    |  151 +++++++++++
 lib_sparc/Makefile              |   45 ++++
 lib_sparc/board.c               |  521 +++++++++++++++++++++++++++++++++++++++
 lib_sparc/bootm.c               |  226 +++++++++++++++++
 lib_sparc/cache.c               |   33 +++
 lib_sparc/interrupts.c          |  122 +++++++++
 lib_sparc/time.c                |   78 ++++++
 sparc_config.mk                 |   24 ++
 36 files changed, 3510 insertions(+), 1 deletions(-)
 create mode 100644 examples/sparc.lds
 create mode 100644 include/asm-sparc/asi.h
 create mode 100644 include/asm-sparc/asmmacro.h
 create mode 100644 include/asm-sparc/atomic.h
 create mode 100644 include/asm-sparc/bitops.h
 create mode 100644 include/asm-sparc/byteorder.h
 create mode 100644 include/asm-sparc/cache.h
 create mode 100644 include/asm-sparc/errno.h
 create mode 100644 include/asm-sparc/global_data.h
 create mode 100644 include/asm-sparc/io.h
 create mode 100644 include/asm-sparc/irq.h
 create mode 100644 include/asm-sparc/machines.h
 create mode 100644 include/asm-sparc/page.h
 create mode 100644 include/asm-sparc/posix_types.h
 create mode 100644 include/asm-sparc/processor.h
 create mode 100644 include/asm-sparc/prom.h
 create mode 100644 include/asm-sparc/psr.h
 create mode 100644 include/asm-sparc/ptrace.h
 create mode 100644 include/asm-sparc/srmmu.h
 create mode 100644 include/asm-sparc/stack.h
 create mode 100644 include/asm-sparc/string.h
 create mode 100644 include/asm-sparc/types.h
 create mode 100644 include/asm-sparc/u-boot.h
 create mode 100644 include/asm-sparc/winmacro.h
 create mode 100644 lib_sparc/Makefile
 create mode 100644 lib_sparc/board.c
 create mode 100644 lib_sparc/bootm.c
 create mode 100644 lib_sparc/cache.c
 create mode 100644 lib_sparc/interrupts.c
 create mode 100644 lib_sparc/time.c
 create mode 100644 sparc_config.mk

-- 
1.5.4





More information about the U-Boot mailing list