arm926ejs: add NXP LPC32x0 cpu series support
Subsystems (2)
Vladimir Zapolskiy
maintainerPATCH v2 1/1 arm926ejs: add NXP LPC32x0 cpu series support
This change adds initial support for NXP LPC32x0 SoC series.
---
Changes from v1:
* BIT(n) and SBF(s, v) macro are not used anymore
* removed NS16550 and 14-clock UART definitions from uart.h
* added devices.c file, which contains standard UART preinitialization routine
* added get_serial_clock() function, it returns actual frequency of UART clock
* __udelay() realization is simplified, no need of interrupt handling
arch/arm/cpu/arm926ejs/lpc32xx/Makefile | 45 ++++++++ arch/arm/cpu/arm926ejs/lpc32xx/clkpwr.c | 100 ++++++++++++++++++ arch/arm/cpu/arm926ejs/lpc32xx/cpu.c | 44 ++++++++ arch/arm/cpu/arm926ejs/lpc32xx/devices.c | 46 ++++++++ arch/arm/cpu/arm926ejs/lpc32xx/timer.c | 92 ++++++++++++++++ arch/arm/include/asm/arch-lpc32xx/clk.h | 155 ++++++++++++++++++++++++++++ arch/arm/include/asm/arch-lpc32xx/config.h | 49 +++++++++ arch/arm/include/asm/arch-lpc32xx/cpu.h | 62 +++++++++++ arch/arm/include/asm/arch-lpc32xx/timer.h | 74 +++++++++++++ arch/arm/include/asm/arch-lpc32xx/uart.h | 54 ++++++++++ arch/arm/include/asm/arch-lpc32xx/wdt.h | 51 +++++++++ 11 files changed, 772 insertions(+), 0 deletions(-) create mode 100644 arch/arm/cpu/arm926ejs/lpc32xx/Makefile create mode 100644 arch/arm/cpu/arm926ejs/lpc32xx/clkpwr.c create mode 100644 arch/arm/cpu/arm926ejs/lpc32xx/cpu.c create mode 100644 arch/arm/cpu/arm926ejs/lpc32xx/devices.c create mode 100644 arch/arm/cpu/arm926ejs/lpc32xx/timer.c create mode 100644 arch/arm/include/asm/arch-lpc32xx/clk.h create mode 100644 arch/arm/include/asm/arch-lpc32xx/config.h create mode 100644 arch/arm/include/asm/arch-lpc32xx/cpu.h create mode 100644 arch/arm/include/asm/arch-lpc32xx/timer.h create mode 100644 arch/arm/include/asm/arch-lpc32xx/uart.h create mode 100644 arch/arm/include/asm/arch-lpc32xx/wdt.h
arch/arm/cpu/arm926ejs/lpc32xx/Makefile new file +45 -0
@@ -0,0 +1,45 @@ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# 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 + +COBJS = cpu.o clkpwr.o devices.o timer.o + +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 + +#########################################################################
arch/arm/cpu/arm926ejs/lpc32xx/clkpwr.c new file +100 -0
100 lines not on this page · raw message
arch/arm/cpu/arm926ejs/lpc32xx/cpu.c new file +44 -0
44 lines not on this page · raw message
arch/arm/cpu/arm926ejs/lpc32xx/devices.c new file +46 -0
46 lines not on this page · raw message
arch/arm/cpu/arm926ejs/lpc32xx/timer.c new file +92 -0
92 lines not on this page · raw message
arch/arm/include/asm/arch-lpc32xx/clk.h new file +155 -0
155 lines not on this page · raw message
arch/arm/include/asm/arch-lpc32xx/config.h new file +49 -0
49 lines not on this page · raw message
arch/arm/include/asm/arch-lpc32xx/cpu.h new file +62 -0
62 lines not on this page · raw message
arch/arm/include/asm/arch-lpc32xx/timer.h new file +74 -0
74 lines not on this page · raw message
arch/arm/include/asm/arch-lpc32xx/uart.h new file +54 -0
54 lines not on this page · raw message
arch/arm/include/asm/arch-lpc32xx/wdt.h new file +51 -0
51 lines not on this page · raw message
Signature · 1 line
1.7.5.4