arm: A320: Add support for Faraday A320 evaluation board
Subsystems (2)
PATCH v8 2/2 arm: A320: Add support for Faraday A320 evaluation board
This patch adds support for A320 evaluation board from Faraday. This board uses FA526 processor by default and has 512kB and 32MB NOR flash, 64M RAM. FA526 is an ARMv4 processor and uses the ARM920T source in this patch.
---
v2:
move flash timing parameters to config header
do not call timer_init() in board_init()
remove interrupt_init() in board specific code move soc-specific headers to include/asm-arm/arch-faraday/ use write32 in assembly
remove board/faraday/a320/u-boot.lds
move register bases to soc-specific headers
v3:
do not define network parameters in config file
v4:
keep list of MAINTAINERS sorted
cleanup Makefile
use get_ram_size() for auto-sizing and memory testing formating
v5:
soc: a320, board: a320evb
move ram and flash base to soc-specific header
move reset_cpu to soc-specific code
no bank swap
v6: rebase
v7: rebase
v8:
rebase
fix compiler warning
no space between function name and parenthesis
MAINTAINERS | 4 + MAKEALL | 1 + Makefile | 3 + board/faraday/a320evb/Makefile | 51 ++++++++ board/faraday/a320evb/a320evb.c | 73 +++++++++++ board/faraday/a320evb/config.mk | 35 +++++ board/faraday/a320evb/lowlevel_init.S | 118 +++++++++++++++++ cpu/arm920t/a320/Makefile | 47 +++++++ cpu/arm920t/a320/ftsmc020.c | 51 ++++++++ cpu/arm920t/a320/reset.S | 22 ++++ cpu/arm920t/a320/timer.c | 193 ++++++++++++++++++++++++++++ include/asm-arm/arch-a320/a320.h | 35 +++++ include/asm-arm/arch-a320/ftpmu010.h | 146 +++++++++++++++++++++ include/asm-arm/arch-a320/ftsdmc020.h | 103 +++++++++++++++ include/asm-arm/arch-a320/ftsmc020.h | 79 ++++++++++++ include/asm-arm/arch-a320/fttmr010.h | 73 +++++++++++ include/configs/a320evb.h | 222 +++++++++++++++++++++++++++++++++ 17 files changed, 1256 insertions(+), 0 deletions(-) create mode 100644 board/faraday/a320evb/Makefile create mode 100644 board/faraday/a320evb/a320evb.c create mode 100644 board/faraday/a320evb/config.mk create mode 100644 board/faraday/a320evb/lowlevel_init.S create mode 100644 cpu/arm920t/a320/Makefile create mode 100644 cpu/arm920t/a320/ftsmc020.c create mode 100644 cpu/arm920t/a320/reset.S create mode 100644 cpu/arm920t/a320/timer.c create mode 100644 include/asm-arm/arch-a320/a320.h create mode 100644 include/asm-arm/arch-a320/ftpmu010.h create mode 100644 include/asm-arm/arch-a320/ftsdmc020.h create mode 100644 include/asm-arm/arch-a320/ftsmc020.h create mode 100644 include/asm-arm/arch-a320/fttmr010.h create mode 100644 include/configs/a320evb.h
MAINTAINERS +4 -0
@@ -543,6 +543,10 @@ Rick Bronson <[email protected]> AT91RM9200DK at91rm9200 +Po-Yu Chuang <[email protected]> + + a320evb FA526 (ARM920T-like) (a320 SoC) + George G. Davis <[email protected]> assabet SA1100
MAKEALL +1 -0
@@ -538,6 +538,7 @@ LIST_ARM7=" \ ######################################################################### LIST_ARM9=" \ + a320evb \ ap920t \ ap922_XA10 \ ap926ejs \
Makefile +3 -0
@@ -2693,6 +2693,9 @@ shannon_config : unconfig ## ARM92xT Systems ######################################################################### +a320evb_config : unconfig + @$(MKCONFIG) $(@:_config=) arm arm920t a320evb faraday a320 + ######################################################################### ## Atmel AT91RM9200 Systems #########################################################################
board/faraday/a320evb/Makefile new file +51 -0
51 lines not on this page · raw message
board/faraday/a320evb/a320evb.c new file +73 -0
73 lines not on this page · raw message
board/faraday/a320evb/config.mk new file +35 -0
@@ -0,0 +1,35 @@ +# +# (C) Copyright 2009 Faraday Technology +# Po-Yu Chuang <[email protected]> +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +# Faraday A320 board with FA526/FA626TE/ARM926EJ-S cpus +# +# see http://www.faraday-tech.com/ for more information + +# A320 has 1 bank of 64 MB DRAM +# +# 1000'0000 to 1400'0000 +# +# Linux-Kernel is expected to be at 1000'8000, entry 1000'8000 +# +# we load ourself to 13f8'0000 +# +# download area is 1200'0000 + +TEXT_BASE = 0x13f80000
board/faraday/a320evb/lowlevel_init.S new file +118 -0
118 lines not on this page · raw message
cpu/arm920t/a320/Makefile new file +47 -0
47 lines not on this page · raw message
cpu/arm920t/a320/ftsmc020.c new file +51 -0
51 lines not on this page · raw message
cpu/arm920t/a320/reset.S new file +22 -0
@@ -0,0 +1,22 @@ +/* + * (C) Copyright 2009 Faraday Technology + * Po-Yu Chuang <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +.global reset_cpu +reset_cpu: + b reset_cpu
cpu/arm920t/a320/timer.c new file +193 -0
193 lines not on this page · raw message
include/asm-arm/arch-a320/a320.h new file +35 -0
@@ -0,0 +1,35 @@ +/* +* (C) Copyright 2009 Faraday Technology +* Po-Yu Chuang <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef __A320_H +#define __A320_H + +/* +* Hardware register bases +*/ +#define CONFIG_FTSMC020_BASE 0x90200000/* Static Memory Controller */ +#define CONFIG_DEBUG_LED 0x902ffffc/* Debug LED */ +#define CONFIG_FTSDMC020_BASE 0x90300000/* SDRAM Controller */ +#define CONFIG_FTMAC100_BASE 0x90900000/* Ethernet */ +#define CONFIG_FTPMU010_BASE 0x98100000/* Power Management Unit */ +#define CONFIG_FTTMR010_BASE 0x98400000/* Timer */ +#define CONFIG_FTRTC010_BASE 0x98600000/* Real Time Clock*/ + +#endif /* __A320_H */ +
include/asm-arm/arch-a320/ftpmu010.h new file +146 -0
146 lines not on this page · raw message
include/asm-arm/arch-a320/ftsdmc020.h new file +103 -0
103 lines not on this page · raw message
include/asm-arm/arch-a320/ftsmc020.h new file +79 -0
79 lines not on this page · raw message
include/asm-arm/arch-a320/fttmr010.h new file +73 -0
73 lines not on this page · raw message
include/configs/a320evb.h new file +222 -0
222 lines not on this page · raw message
Signature · 1 line
1.6.3.3