[U-Boot] [PATCHv8] ARM: Add Altera SOCFPGA Cyclone5

2012-10-04 Thread dinguyen
From: Dinh Nguyen 

Add minimal support for Altera's SOCFPGA Cyclone 5 hardware.

Signed-off-by: Dinh Nguyen 
Signed-off-by: Chin Liang See 
Signed-off-by: Pavel Machek 
Reviewed-by: Marek Vasut 
Acked-by: Tom Trini 
Cc: Wolfgang Denx 
Cc: Albert Aribaud 
Cc: Stefan Roese 

v8: Remove no_return attribute for reset_cpu

Based on v2012.10-rc2
---
 MAINTAINERS|5 +
 arch/arm/cpu/armv7/socfpga/Makefile|   51 +
 arch/arm/cpu/armv7/socfpga/config.mk   |   16 ++
 arch/arm/cpu/armv7/socfpga/lowlevel_init.S |   77 +++
 arch/arm/cpu/armv7/socfpga/misc.c  |   54 +
 arch/arm/cpu/armv7/socfpga/spl.c   |   48 
 arch/arm/cpu/armv7/socfpga/timer.c |  105 +
 arch/arm/cpu/armv7/socfpga/u-boot-spl.lds  |   60 +
 arch/arm/include/asm/arch-socfpga/reset_manager.h  |   37 +++
 .../include/asm/arch-socfpga/socfpga_base_addrs.h  |   27 +++
 arch/arm/include/asm/arch-socfpga/spl.h|   26 +++
 arch/arm/include/asm/arch-socfpga/timer.h  |   29 +++
 board/altera/socfpga_cyclone5/Makefile |   50 +
 board/altera/socfpga_cyclone5/socfpga_cyclone5.c   |   80 +++
 boards.cfg |1 +
 include/configs/socfpga_cyclone5.h |  236 
 16 files changed, 902 insertions(+)
 create mode 100644 arch/arm/cpu/armv7/socfpga/Makefile
 create mode 100644 arch/arm/cpu/armv7/socfpga/config.mk
 create mode 100644 arch/arm/cpu/armv7/socfpga/lowlevel_init.S
 create mode 100644 arch/arm/cpu/armv7/socfpga/misc.c
 create mode 100644 arch/arm/cpu/armv7/socfpga/spl.c
 create mode 100644 arch/arm/cpu/armv7/socfpga/timer.c
 create mode 100644 arch/arm/cpu/armv7/socfpga/u-boot-spl.lds
 create mode 100644 arch/arm/include/asm/arch-socfpga/reset_manager.h
 create mode 100644 arch/arm/include/asm/arch-socfpga/socfpga_base_addrs.h
 create mode 100644 arch/arm/include/asm/arch-socfpga/spl.h
 create mode 100644 arch/arm/include/asm/arch-socfpga/timer.h
 create mode 100644 board/altera/socfpga_cyclone5/Makefile
 create mode 100644 board/altera/socfpga_cyclone5/socfpga_cyclone5.c
 create mode 100644 include/configs/socfpga_cyclone5.h

diff --git a/MAINTAINERS b/MAINTAINERS
index aa54fe1..ee8cfb0 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -777,6 +777,11 @@ Nagendra T S  
 
am3517_craneARM ARMV7 (AM35x SoC)
 
+Dinh Nguyen 
+Chin Liang See 
+
+   socfpga socfpga_cyclone5
+
 Sandeep Paulraj 
 
davinci_dm355evmARM926EJS
diff --git a/arch/arm/cpu/armv7/socfpga/Makefile 
b/arch/arm/cpu/armv7/socfpga/Makefile
new file mode 100644
index 000..376a4bd
--- /dev/null
+++ b/arch/arm/cpu/armv7/socfpga/Makefile
@@ -0,0 +1,51 @@
+#
+# (C) Copyright 2000-2003
+# Wolfgang Denk, DENX Software Engineering, w...@denx.de.
+#
+# Copyright (C) 2012 Altera Corporation 
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# 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
+#
+
+
+include $(TOPDIR)/config.mk
+
+LIB=  $(obj)lib$(SOC).o
+
+SOBJS  := lowlevel_init.o
+COBJS-y:= misc.o timer.o
+COBJS-$(CONFIG_SPL_BUILD) += spl.o
+
+COBJS  := $(COBJS-y)
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS) $(SOBJS))
+
+all:$(obj).depend $(LIB)
+
+$(LIB):$(OBJS)
+   $(call cmd_link_o_target, $(OBJS))
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/arch/arm/cpu/armv7/socfpga/config.mk 
b/arch/arm/cpu/armv7/socfpga/config.mk
new file mode 100644
index 000..b72ed1e
--- /dev/null
+++ b/arch/arm/cpu/armv7/socfpga/config.mk
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
+#
+# 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 "as is" WITHOUT ANY WARRANTY of any
+# kind, whether expre

Re: [U-Boot] [PATCHv8] ARM: Add Altera SOCFPGA Cyclone5

2012-10-04 Thread Albert ARIBAUD
Hi dingu...@altera.com,

On Thu, 4 Oct 2012 10:46:02 -0600,  wrote:

> From: Dinh Nguyen 
> 
> Add minimal support for Altera's SOCFPGA Cyclone 5 hardware.
> 
> Signed-off-by: Dinh Nguyen 
> Signed-off-by: Chin Liang See 
> Signed-off-by: Pavel Machek 
> Reviewed-by: Marek Vasut 
> Acked-by: Tom Trini 
> Cc: Wolfgang Denx 
> Cc: Albert Aribaud 
> Cc: Stefan Roese 
> 
> v8: Remove no_return attribute for reset_cpu

Applied to u-boot-arm/master, thanks.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCHv8] ARM: Add Altera SOCFPGA Cyclone5

2012-10-04 Thread Dinh Nguyen
Hi Albert,

On Thu, 2012-10-04 at 21:54 +0200, ZY - albert.u.boot wrote:
> Hi dingu...@altera.com,
> 
> On Thu, 4 Oct 2012 10:46:02 -0600,  wrote:
> 
> > From: Dinh Nguyen 
> > 
> > Add minimal support for Altera's SOCFPGA Cyclone 5 hardware.
> > 
> > Signed-off-by: Dinh Nguyen 
> > Signed-off-by: Chin Liang See 
> > Signed-off-by: Pavel Machek 
> > Reviewed-by: Marek Vasut 
> > Acked-by: Tom Trini 
> > Cc: Wolfgang Denx 
> > Cc: Albert Aribaud 
> > Cc: Stefan Roese 
> > 
> > v8: Remove no_return attribute for reset_cpu
> 
> Applied to u-boot-arm/master, thanks.

Thanks alot!

Dinh
> 
> Amicalement,



___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot