[U-Boot] [PATCH v2 0/10] sparc: Update SPARC architecture to generic board init

Francois Retief fgretief at spaceteq.co.za
Wed Nov 5 13:08:13 CET 2014


The SPARC architecture has not yet been upgraded to the new generic
board init codebase. This patch series is an first attempt at that.

The changes has been tested on a TSIM simulator (grsim_defconfig)
and a gr712rc-board. We would appreciate some help with testing.

This series currently does not remove the old init code. That will
be done in a later series of patches.

Any feedback, comments or suggestions would be appreciated.

Changes in v2:
 - Move ambapp command selection to Kconfig
 - Add patch to relocate the command tables
 - Split AMBA vendor/device ID work into its own patch
 - Add snoop detect function to restore lost feature
 - Update GRSIM memory settings for evaluation version of TSIM
 - Add patch to cleanup LEON3 init code a bit
 - The gr712rc-board patches has been split into a separate series

Francois Retief (10):
  sparc: Add initr function for CMD_AMBAPP command
  sparc: Add function to fixup command tables
  sparc: Add more LEON3 AMBA vendor/device IDs
  sparc: Initial work for generic board-init
  sparc: Use microseconds instead of ticks for timeout
  sparc: Reworked LEON3 startup for generic board-init
  sparc: Major rewrite of the PROM generation code
  sparc: Update all LEON3 boards to generic board-init
  sparc: Update GRSIM board with memory settings for TSIM
  sparc: Cleanup of LEON3 CPU initialisation code

 arch/sparc/config.mk              |    3 +
 arch/sparc/cpu/leon2/Makefile     |    2 +-
 arch/sparc/cpu/leon2/cpu.c        |   23 +
 arch/sparc/cpu/leon2/prom.c       | 1030 -----------------------------------
 arch/sparc/cpu/leon3/Makefile     |    5 +-
 arch/sparc/cpu/leon3/cpu.c        |   23 +
 arch/sparc/cpu/leon3/cpu_init.c   |  175 ++++--
 arch/sparc/cpu/leon3/interrupts.c |   18 +-
 arch/sparc/cpu/leon3/prom.c       | 1061 -------------------------------------
 arch/sparc/cpu/leon3/start.S      |  436 ++++++++-------
 arch/sparc/include/asm/config.h   |    3 +
 arch/sparc/include/asm/machines.h |    4 +-
 arch/sparc/include/asm/u-boot.h   |    7 +
 arch/sparc/lib/Makefile           |    9 +-
 arch/sparc/lib/bootm.c            |   81 +--
 arch/sparc/lib/interrupts.c       |    7 +
 arch/sparc/lib/prom-no.c          |  319 +++++++++++
 arch/sparc/lib/prom-no.h          |   40 ++
 arch/sparc/lib/prom.c             |  960 +++++++++++++++++++++++++++++++++
 arch/sparc/lib/srmmu.c            |   90 ++++
 arch/sparc/lib/time.c             |    5 +
 common/Kconfig                    |   14 +
 common/board_f.c                  |    2 +-
 common/board_r.c                  |   34 ++
 common/cmd_ambapp.c               |   18 +-
 drivers/net/greth.c               |    2 +-
 include/ambapp.h                  |   27 +-
 include/config_cmd_all.h          |    1 -
 include/configs/gr_cpci_ax2000.h  |    8 +-
 include/configs/gr_ep2s60.h       |    8 +-
 include/configs/gr_xc3s_1500.h    |    8 +-
 include/configs/grsim.h           |   65 ++-
 32 files changed, 2072 insertions(+), 2416 deletions(-)
 delete mode 100644 arch/sparc/cpu/leon2/prom.c
 delete mode 100644 arch/sparc/cpu/leon3/prom.c
 create mode 100644 arch/sparc/lib/prom-no.c
 create mode 100644 arch/sparc/lib/prom-no.h
 create mode 100644 arch/sparc/lib/prom.c
 create mode 100644 arch/sparc/lib/srmmu.c

--
1.9.3


________________________________
Disclaimer and confidentiality note – refer to our website for further details: www.spaceteq.co.za <http://www.spaceteq.co.za/home/emaildisclaimer/>


More information about the U-Boot mailing list