NDS32: Add N1213 cpu core related stuff.
cover NDS32: Add N1213 cpu core related stuff.
These patch set have been refreshed and created against mainline master branch.
These patches changes from previous "PATCH v3: NDS32: Add NDS32 architecture support to u-boot."
In order to make these patches could be easily review and maintained, I've split the original Patch v3 into small pieces.
Necessary header files for the later patches has been sent already in:
[PATCH v4 00/01] NDS32: Add NDS32 architecture support to u-boot.
nds32: add header files support for nds32
- "PATCH v4" here means there are only header files which has been clean up already for replacing the previous Patch sets v1-v3.
CPU and other SoC related stuff has been reorganized based on these header files, so a new patch set should be started.
The following two patches provides the necessary functions for supporting N1213 cpu core in u-boot. These files provides the link script and the start.S of N1213 cpu core.
File common.h is also required to be changed to support these files.
Macpaul Lin (2):
nds32: add NDS32 support into common header file nds32/Core_N1213: add N1213 cpu core support for NDS32 arch
Signature · 1 line
1.7.3.1
PATCH 1/2 nds32: add NDS32 support into common header file
Add NDS32 support into common header file.
--- include/common.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
include/common.h +4 -0
@@ -274,6 +274,10 @@ void forceenv (char *, char *);#ifdef CONFIG_I386 /* x86 version to be fixed! */ # include <asm/u-boot-i386.h> #endif /* CONFIG_I386 */ +#ifdef CONFIG_NDS32 +# include <asm/mach-types.h> +# include <asm/u-boot-nds32.h> /* NDS32 version to be fixed! */ +#endif /* CONFIG_NDS32 */ #ifdef CONFIG_AUTO_COMPLETE int env_complete (char *var,int maxv,char *cmdv[],int maxsz,char *buf);
Signature · 1 line
1.7.3.1
PATCH 2/2 nds32/Core_N1213: add N1213 cpu core support for NDS32 arch
In reply to Macpaul LinAdd N1213 cpu core support for NDS32 arch. Included lowlevel_init procedures, and linker scripts.
NDS32 Core N1213 has the following features.
Core:
- 16-/32-bit mixable instruction format
- 32 general-purpose 32-bit registers
- 8-stage pipeline
- Dynamic branch prediction
- 32/64/128/256 BTB
- Return address stack (RAS)
- Vector interrupts for internal/external
- 3 HW-level nested interruptions
- User and super-user mode support
- Memory-mapped I/O
- Address space up to 4GB
Memory Management Unit:
- TLB
- Optional hardware page table walker
- Two groups of page size support
Memory Subsystem:
- I & D cache
- I & D local memory (LM)
Bus Interface:
- Synchronous/Asynchronous AHB bus: 0, 1 or 2 ports
start.S will start up the CPU core at first,
then jump to SoC dependent "lowlevel_init.S" and
"watchdog.S" to configure peripheral devices.
--- arch/nds32/cpu/n1213/Makefile | 50 +++++ arch/nds32/cpu/n1213/start.S | 449 +++++++++++++++++++++++++++++++++++++++ arch/nds32/cpu/n1213/u-boot.lds | 68 ++++++ 3 files changed, 567 insertions(+), 0 deletions(-) create mode 100644 arch/nds32/cpu/n1213/Makefile create mode 100644 arch/nds32/cpu/n1213/start.S create mode 100644 arch/nds32/cpu/n1213/u-boot.lds
arch/nds32/cpu/n1213/Makefile new file +50 -0
@@ -0,0 +1,50 @@ +# +# (C) Copyright 2000, 2001, 2002 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# Copyright (C) 2010 Andes Technology Corporation +# Shawn Lin, Andes Technology Corporation <[email protected]> +# Macpaul Lin, Andes Technology Corporation <[email protected]> +# +# 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$(CPU).a + +START = start.o + +SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) +START := $(addprefix $(obj),$(START)) + +all: $(obj).depend $(START) $(LIB) + +$(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
arch/nds32/cpu/n1213/start.S new file +449 -0
449 lines not on this page · raw message
arch/nds32/cpu/n1213/u-boot.lds new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
1.7.3.1