Skip to contentSkip to conversation

arm: A320: Add support for Faraday A320 evaluation board

PATCH New Po-Yu Chuang 3 participants 5 messages Sep 23, 2009 – Nov 26, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v7 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.

---
 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
index f42c8f0..73250d6 100644
@@ -537,6 +537,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
index 1d50c34..3dacd85 100755
@@ -510,6 +510,7 @@ LIST_ARM7="		\
 #########################################################################
 
 LIST_ARM9="			\
+	a320evb			\
 	ap920t			\
 	ap922_XA10		\
 	ap926ejs		\
Makefile +3 -0
index 0b61d05..5a73f6d 100644
@@ -2724,6 +2724,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
new file mode 100644
index 0000000..aa25b98
@@ -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
new file mode 100644
index 0000000..12ca527
@@ -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
new file mode 100644
index 0000000..5c0a097
@@ -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
#1 lore raw

PATCH v7 2/2 arm: A320: Add support for Faraday A320 evaluation board

Dear Tom,

Quoted 5 lines · In message <[email protected]> Po-Yu…

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.

Can you please check the status of this patch:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/68663

Thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The universe is all a spin-off of the Big Bang.
#2 lore raw

PATCH v7 2/2 arm: A320: Add support for Faraday A320 evaluation board

Dear Wolfgang and Tom,

2009/11/23 Wolfgang Denk <[email protected]>:

Quoted 10 lines

Dear Tom,

Quoted 5 lines · In message <[email protected]> Po-Yu…

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.

Can you please check the status of this patch:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/68663

I posted a new version (v8) of this patch two weeks ago to fix a compiler warning.

http://lists.denx.de/pipermail/u-boot/2009-November/064105.html

Please use the new version (v8) instead.

Thank you.

regards,
Po-Yu Chuang

#3 lore raw

PATCH v7 2/2 arm: A320: Add support for Faraday A320 evaluation board

Quoted 13 lines · Po-Yu Chuang

Dear Wolfgang and Tom,

2009/11/23 Wolfgang Denk <[email protected]>:

Quoted 9 lines

Dear Tom,

Quoted 5 lines · In message <[email protected]> Po-Yu…

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.

Can you please check the status of this patch:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/68663

Quoted 7 lines

I posted a new version (v8) of this patch two weeks ago to fix a compiler warning.

http://lists.denx.de/pipermail/u-boot/2009-November/064105.html

Please use the new version (v8) instead.

This looks good.
I have pushed v8 to arm/next.

Thank you,
Tom

#4 lore raw

PATCH v7 2/2 arm: A320: Add support for Faraday A320 evaluation board

Dear Tom and Wolfgang,

2009/11/26 Tom <[email protected]>:

Quoted 6 lines
Quoted 5 lines · Po-Yu Chuang

Dear Wolfgang and Tom,

I posted a new version (v8) of this patch two weeks ago to fix a compiler warning.

Quoted 7 lines
Quoted 4 lines

http://lists.denx.de/pipermail/u-boot/2009-November/064105.html

Please use the new version (v8) instead.

This looks good.
I have pushed v8 to arm/next.

Thank you for accepting these patches, but I found that

[v7 of FTRTC010 driver] is pushed into u-boot.git which is:
commit f2cea405f83da46b72098ea874fb3eefe185d312

[v8 of FTRTC010 driver] is also pushed into u-boot-arm.git which is:
commit 713b3b405b50113e37178542ede5d857c2647a25

I guess one of them should be canceled?

p.s. v7 and v8 are basically the same except that there are no spaces
between function names and parentheses to pass checkpatch.pl.

best regards,
Po-Yu Chuang