[PATCH 0/2] Add Nios2 arch to barebox

franck.jullien at gmail.com franck.jullien at gmail.com
Wed Mar 23 17:07:42 EDT 2011


From: Franck JULLIEN <franck.jullien at gmail.com>

Those patches add Nios2 arch to barebox. Include files are mostly comming
from le Nios2 linux port and other files from u-boot.

I'll post driver for serial, Ethernet (Altera TSE) and  EPCS flash when
arch is acked.

Franck JULLIEN (2):
  Add Nios2 arch support to barebox
  Add a generic board template for the Nios2 arch

 arch/nios2/Kconfig                    |   39 +++
 arch/nios2/Makefile                   |   25 ++
 arch/nios2/boards/generic/Makefile    |    1 +
 arch/nios2/boards/generic/config.h    |   63 ++++
 arch/nios2/boards/generic/env/config  |   16 +
 arch/nios2/boards/generic/generic.c   |   74 +++++
 arch/nios2/boards/generic/nios_sopc.h |  406 +++++++++++++++++++++++++
 arch/nios2/configs/generic_defconfig  |   23 ++
 arch/nios2/cpu/Makefile               |    6 +
 arch/nios2/cpu/barebox.lds.S          |  124 ++++++++
 arch/nios2/cpu/cpu.c                  |   38 +++
 arch/nios2/cpu/exceptions.S           |  160 ++++++++++
 arch/nios2/cpu/interrupts.c           |  140 +++++++++
 arch/nios2/cpu/start.S                |  165 ++++++++++
 arch/nios2/cpu/traps.c                |   43 +++
 arch/nios2/include/asm/barebox.h      |    4 +
 arch/nios2/include/asm/bitops.h       |    4 +
 arch/nios2/include/asm/bitsperlong.h  |    1 +
 arch/nios2/include/asm/byteorder.h    |    1 +
 arch/nios2/include/asm/cache.h        |   21 ++
 arch/nios2/include/asm/common.h       |    4 +
 arch/nios2/include/asm/dma-mapping.h  |   25 ++
 arch/nios2/include/asm/early_printf.h |   10 +
 arch/nios2/include/asm/elf.h          |  165 ++++++++++
 arch/nios2/include/asm/int-ll64.h     |   78 +++++
 arch/nios2/include/asm/io.h           |   52 ++++
 arch/nios2/include/asm/nios2-io.h     |  182 ++++++++++++
 arch/nios2/include/asm/nios2.h        |   63 ++++
 arch/nios2/include/asm/opcodes.h      |  131 ++++++++
 arch/nios2/include/asm/posix_types.h  |   77 +++++
 arch/nios2/include/asm/ptrace.h       |   33 ++
 arch/nios2/include/asm/sections.h     |    1 +
 arch/nios2/include/asm/string.h       |   47 +++
 arch/nios2/include/asm/swab.h         |    4 +
 arch/nios2/include/asm/system.h       |   64 ++++
 arch/nios2/include/asm/types.h        |    7 +
 arch/nios2/lib/Makefile               |    6 +
 arch/nios2/lib/board.c                |   47 +++
 arch/nios2/lib/cache.c                |   77 +++++
 arch/nios2/lib/clock.c                |   62 ++++
 arch/nios2/lib/early_printf.c         |   56 ++++
 arch/nios2/lib/libgcc.c               |  527 +++++++++++++++++++++++++++++++++
 arch/nios2/lib/longlong.h             |  258 ++++++++++++++++
 43 files changed, 3330 insertions(+), 0 deletions(-)
 create mode 100644 arch/nios2/Kconfig
 create mode 100644 arch/nios2/Makefile
 create mode 100644 arch/nios2/boards/generic/Makefile
 create mode 100644 arch/nios2/boards/generic/config.h
 create mode 100644 arch/nios2/boards/generic/env/config
 create mode 100644 arch/nios2/boards/generic/generic.c
 create mode 100644 arch/nios2/boards/generic/nios_sopc.h
 create mode 100644 arch/nios2/configs/generic_defconfig
 create mode 100644 arch/nios2/cpu/Makefile
 create mode 100644 arch/nios2/cpu/barebox.lds.S
 create mode 100644 arch/nios2/cpu/cpu.c
 create mode 100644 arch/nios2/cpu/exceptions.S
 create mode 100644 arch/nios2/cpu/interrupts.c
 create mode 100644 arch/nios2/cpu/start.S
 create mode 100644 arch/nios2/cpu/traps.c
 create mode 100644 arch/nios2/include/asm/barebox.h
 create mode 100644 arch/nios2/include/asm/bitops.h
 create mode 100644 arch/nios2/include/asm/bitsperlong.h
 create mode 100644 arch/nios2/include/asm/byteorder.h
 create mode 100644 arch/nios2/include/asm/cache.h
 create mode 100644 arch/nios2/include/asm/common.h
 create mode 100644 arch/nios2/include/asm/dma-mapping.h
 create mode 100644 arch/nios2/include/asm/early_printf.h
 create mode 100644 arch/nios2/include/asm/elf.h
 create mode 100644 arch/nios2/include/asm/int-ll64.h
 create mode 100644 arch/nios2/include/asm/io.h
 create mode 100644 arch/nios2/include/asm/nios2-io.h
 create mode 100644 arch/nios2/include/asm/nios2.h
 create mode 100644 arch/nios2/include/asm/opcodes.h
 create mode 100644 arch/nios2/include/asm/posix_types.h
 create mode 100644 arch/nios2/include/asm/ptrace.h
 create mode 100644 arch/nios2/include/asm/sections.h
 create mode 100644 arch/nios2/include/asm/string.h
 create mode 100644 arch/nios2/include/asm/swab.h
 create mode 100644 arch/nios2/include/asm/system.h
 create mode 100644 arch/nios2/include/asm/types.h
 create mode 100644 arch/nios2/lib/Makefile
 create mode 100644 arch/nios2/lib/board.c
 create mode 100644 arch/nios2/lib/cache.c
 create mode 100644 arch/nios2/lib/clock.c
 create mode 100644 arch/nios2/lib/early_printf.c
 create mode 100644 arch/nios2/lib/libgcc.c
 create mode 100644 arch/nios2/lib/longlong.h




More information about the barebox mailing list