[U-Boot] [PATCH 00/28] u-boot next: a generic approach for nios2 arch
Thomas Chou
thomas at wytron.com.tw
Fri Mar 19 08:43:25 CET 2010
These patches are for next u-boot release. I udnerstand the merge window is
not opened yet. But there are quite a few things to review, so please
allow me submit them early.
This is a generic approach to port u-boot for nios2 boards. We try to ease
the porting of a new nios2 design. We will rely on tools generated header
file which contains the devices base address, instead of entering the hex
numbers by hand.
Thomas Chou (28):
nios2: add nios2-generic board
cfi flash: add status polling method for amd flash
serial: move altera uart driver to drivers/serial
serial: move altera jtaguart driver to drivers/serial
serial: move yanu driver to drivers/serial
spi: add altera spi controller support
net: add opencore 10/100 ethernet mac support
net: add altera triple speeds ethernet mac support
nios2: change asm-nios2/io.h to compatible with nios2 linux
nios2: add asm-nios2/errno.h
nios2: add local_irq_enable/disable to asm-nios2/system.h
nios2: use bitops from linux-2.6 asm-generic
nios2: fix __fswab64 link error with asm-nios2/byteorder.h
nios2: add dma_alloc_coherent with asm-nios2/dma-mapping.h
nios2: add gpio support with asm-nios2/gpio.h
nios2: move timer handler from interrupt.c to timer.c
nios2: define text_base in start.S for linker script
nios2: pass command line and initrd to linux
nios2: board init for eth, no flash, nand and mmc
nios2: fix writel in board/altera/common/epled.c
nios2: add cf ide init and reset handler
nios2: add gpio led driver
nios2: convert ep1c20 board to use cfi flash and spi flash
nios2: convert ep1s10 board to use cfi flash
nios2: convert ep1s40 board to use cfi flash
nios2: convert pci5441 board to use cfi flash
nios2: convert pk1c20 board to use cfi flash and spi flash
nios2: add struct stat support in linux/stat.h
MAINTAINERS | 1 +
MAKEALL | 1 +
Makefile | 3 +
board/altera/common/cfide.c | 79 +++
board/altera/common/epled.c | 12 +-
board/altera/common/gpioled.c | 31 +
board/altera/ep1c20/Makefile | 2 +-
board/altera/ep1c20/config.mk | 2 +-
board/altera/ep1c20/u-boot.lds | 1 +
board/altera/ep1s10/Makefile | 2 +-
board/altera/ep1s10/config.mk | 2 +-
board/altera/ep1s10/u-boot.lds | 1 +
board/altera/ep1s40/Makefile | 2 +-
board/altera/ep1s40/config.mk | 2 +-
board/altera/ep1s40/u-boot.lds | 1 +
board/altera/nios2-generic/Makefile | 57 ++
board/altera/nios2-generic/config.mk | 32 +
board/altera/nios2-generic/custom_fpga.h | 757 ++++++++++++++++++++++
board/altera/nios2-generic/nios2-generic.c | 67 ++
board/altera/nios2-generic/u-boot.lds | 136 ++++
board/psyent/pci5441/Makefile | 2 +-
board/psyent/pci5441/config.mk | 2 +-
board/psyent/pci5441/u-boot.lds | 1 +
board/psyent/pk1c20/Makefile | 2 +-
board/psyent/pk1c20/config.mk | 2 +-
board/psyent/pk1c20/led.c | 12 +-
board/psyent/pk1c20/u-boot.lds | 1 +
cpu/nios2/Makefile | 2 +-
cpu/nios2/interrupts.c | 64 +--
cpu/nios2/start.S | 6 +
cpu/nios2/timer.c | 98 +++
drivers/mtd/cfi_flash.c | 94 +++-
drivers/net/Makefile | 2 +
drivers/net/altera_tse.c | 969 ++++++++++++++++++++++++++++
drivers/net/altera_tse.h | 500 ++++++++++++++
drivers/net/ethoc.c | 536 +++++++++++++++
drivers/serial/Makefile | 3 +
drivers/serial/altera_jtaguart.c | 107 +++
drivers/serial/altera_uart.c | 116 ++++
drivers/serial/yanu.c | 187 ++++++
drivers/serial/yanu.h | 120 ++++
drivers/spi/Makefile | 1 +
drivers/spi/altera_spi.c | 103 +++
include/asm-nios2/bitops.h | 14 +-
include/asm-nios2/bitops/atomic.h | 189 ++++++
include/asm-nios2/bitops/ffs.h | 41 ++
include/asm-nios2/bitops/non-atomic.h | 108 +++
include/asm-nios2/byteorder.h | 5 +
include/asm-nios2/dma-mapping.h | 14 +
include/asm-nios2/errno.h | 1 +
include/asm-nios2/gpio.h | 72 ++
include/asm-nios2/io.h | 59 +-
include/asm-nios2/system.h | 33 +
include/configs/EP1C20.h | 60 ++-
include/configs/EP1S10.h | 58 +-
include/configs/EP1S40.h | 54 +-
include/configs/PCI5441.h | 44 +-
include/configs/PK1C20.h | 68 ++-
include/configs/nios2-generic.h | 360 +++++++++++
include/linux/stat.h | 2 +-
lib_nios2/board.c | 33 +
lib_nios2/bootm.c | 19 +-
62 files changed, 5110 insertions(+), 245 deletions(-)
create mode 100644 board/altera/common/cfide.c
create mode 100644 board/altera/common/gpioled.c
create mode 100644 board/altera/nios2-generic/Makefile
create mode 100644 board/altera/nios2-generic/config.mk
create mode 100644 board/altera/nios2-generic/custom_fpga.h
create mode 100644 board/altera/nios2-generic/nios2-generic.c
create mode 100644 board/altera/nios2-generic/u-boot.lds
create mode 100644 cpu/nios2/timer.c
create mode 100644 drivers/net/altera_tse.c
create mode 100644 drivers/net/altera_tse.h
create mode 100644 drivers/net/ethoc.c
create mode 100644 drivers/serial/altera_jtaguart.c
create mode 100644 drivers/serial/altera_uart.c
create mode 100644 drivers/serial/yanu.c
create mode 100644 drivers/serial/yanu.h
create mode 100644 drivers/spi/altera_spi.c
create mode 100644 include/asm-nios2/bitops/atomic.h
create mode 100644 include/asm-nios2/bitops/ffs.h
create mode 100644 include/asm-nios2/bitops/non-atomic.h
create mode 100644 include/asm-nios2/dma-mapping.h
create mode 100644 include/asm-nios2/errno.h
create mode 100644 include/asm-nios2/gpio.h
create mode 100644 include/configs/nios2-generic.h
More information about the U-Boot
mailing list