Initial support for Marvell Orion5x SoC
PATCH v2 1/3 Initial support for Marvell Orion5x SoC
** ATTENTION: this patch supersedes the previous '1/3' patch in the same series. The correction is the removal of Kirkwood-inherited device init code unused at the moment and partly inapplicable to Orion5x anyway. This correct patch has been run through checkpatch.pl again with the exact same result as its predecessor (6 false pos).
Sorry for the inconvenience.
This patch adds support for the Marvell Orion5x SoC. It has no use alone, and must be followed by a patch to add Orion5x support for serial, then support for the ED Mini V2, an Orion5x-based board from LaCie.
--- cpu/arm926ejs/orion5x/Makefile | 52 ++++++ cpu/arm926ejs/orion5x/cpu.c | 299 ++++++++++++++++++++++++++++++++ cpu/arm926ejs/orion5x/dram.c | 61 +++++++ cpu/arm926ejs/orion5x/mpp.c | 89 ++++++++++ cpu/arm926ejs/orion5x/timer.c | 175 +++++++++++++++++++ include/asm-arm/arch-orion5x/88f5182.h | 40 +++++ include/asm-arm/arch-orion5x/cpu.h | 208 ++++++++++++++++++++++ include/asm-arm/arch-orion5x/gpio.h | 52 ++++++ include/asm-arm/arch-orion5x/mpp.h | 122 +++++++++++++ include/asm-arm/arch-orion5x/orion5x.h | 67 +++++++ 10 files changed, 1165 insertions(+), 0 deletions(-) create mode 100644 cpu/arm926ejs/orion5x/Makefile create mode 100644 cpu/arm926ejs/orion5x/cpu.c create mode 100644 cpu/arm926ejs/orion5x/dram.c create mode 100644 cpu/arm926ejs/orion5x/mpp.c create mode 100644 cpu/arm926ejs/orion5x/timer.c create mode 100644 include/asm-arm/arch-orion5x/88f5182.h create mode 100644 include/asm-arm/arch-orion5x/cpu.h create mode 100644 include/asm-arm/arch-orion5x/gpio.h create mode 100644 include/asm-arm/arch-orion5x/mpp.h create mode 100644 include/asm-arm/arch-orion5x/orion5x.h
cpu/arm926ejs/orion5x/Makefile new file +52 -0
@@ -0,0 +1,52 @@ +# +# Copyright (C) 2009 Albert ARIBAUD <[email protected]> +# +# Based on original Kirkwood support which is +# (C) Copyright 2009 +# Marvell Semiconductor <www.marvell.com> +# Written-by: Prafulla Wadaskar <[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., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301 USA +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(SOC).a + +COBJS-y = cpu.o +COBJS-y += dram.o +COBJS-y += mpp.o +COBJS-y += timer.o + +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) + +all: $(obj).depend $(LIB) + +$(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
cpu/arm926ejs/orion5x/cpu.c new file +299 -0
299 lines not on this page · raw message
cpu/arm926ejs/orion5x/dram.c new file +61 -0
61 lines not on this page · raw message
cpu/arm926ejs/orion5x/mpp.c new file +89 -0
89 lines not on this page · raw message
cpu/arm926ejs/orion5x/timer.c new file +175 -0
175 lines not on this page · raw message
include/asm-arm/arch-orion5x/88f5182.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* Copyright (C) 2009 Albert ARIBAUD <[email protected]> +* +* Based on original Kirkwood 88F6182 support which is +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* Header file for Feroceon CPU core 88F5182 SOC. +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef _CONFIG_88F5182_H +#define _CONFIG_88F5182_H + +/* SOC specific definations */ +#define F88F5182_REGS_PHYS_BASE 0xf1000000 +#define ORION5X_REGS_PHY_BASE F88F5182_REGS_PHYS_BASE + +/* TCLK Core Clock defination */ +#define CONFIG_SYS_TCLK 166000000/* 166MHz */ + +#endif /* _CONFIG_88F5182_H */
include/asm-arm/arch-orion5x/cpu.h new file +208 -0
208 lines not on this page · raw message
include/asm-arm/arch-orion5x/gpio.h new file +52 -0
52 lines not on this page · raw message
include/asm-arm/arch-orion5x/mpp.h new file +122 -0
122 lines not on this page · raw message
include/asm-arm/arch-orion5x/orion5x.h new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
1.6.4.4
PATCH v2 1/3 Initial support for Marvell Orion5x SoC
Quoted 10 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Albert Aribaud
Sent: Sunday, November 15, 2009 1:27 PM
To: U-Boot at lists.denx.de
Subject: [U-Boot] [PATCH V2 1/3 CORRECTED] Initial support for Marvell Orion5x SoC
Quoted 7 lines
** ATTENTION: this patch supersedes the previous '1/3' patch in the same series. The correction is the removal of Kirkwood-inherited device init code unused at the moment and partly inapplicable to Orion5x anyway. This correct patch has been run through checkpatch.pl again with the exact same result as its predecessor (6 false pos).
Sorry for the inconvenience.
Please post this patch as v3 with above description as change log for v3
Regards..
Prafulla . . .
PATCH v2 1/3 Initial support for Marvell Orion5x SoC
Hi Rafulla,
Prafulla Wadaskar a ?crit :
Quoted 5 lines
Please post this patch as v3 with above description as change log for v3
Regards..
Prafulla . . .
Seeing as I have also some fixes to do on patch V2 3/3, I'll report a whole V3 patchset with the description in the cover letter. Is that fine?
Amicalement,
Signature · 1 line
Albert.
PATCH v2 1/3 Initial support for Marvell Orion5x SoC
Quoted 17 lines
-----Original Message-----
From: Albert ARIBAUD [mailto:albert.aribaud at free.fr]
Sent: Monday, November 16, 2009 2:52 PM
To: Prafulla Wadaskar
Cc: U-Boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH V2 1/3 CORRECTED] Initial support for Marvell Orion5x SoCHi Rafulla,
Prafulla Wadaskar a ?crit :
Quoted 2 lines
Please post this patch as v3 with above description as
change log for v3
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
Regards..
Prafulla . . .Seeing as I have also some fixes to do on patch V2 3/3, I'll report a
whole V3 patch set with the description in the cover letter. Is that fine?
Change log is important to understand reviewers and other community friends to understand the history of the patch. In each patch you should maintain change log after line containing "---"
when patch will be applied, only commit log will be considered. So please segregate your information carefully.
Cover letter is optional, you better put enough information in the commit log relevant to patch
Regards..
Prafulla . .
Quoted 5 lines
Amicalement,
Signature · 1 line
Albert.
PATCH v2 1/3 Initial support for Marvell Orion5x SoC
In reply to Albert AribaudDear Albert Aribaud,
Quoted 7 lines · In message <[email protected]> you wrote:
** ATTENTION: this patch supersedes the previous '1/3' patch in the same series. The correction is the removal of Kirkwood-inherited device init code unused at the moment and partly inapplicable to Orion5x anyway. This correct patch has been run through checkpatch.pl again with the exact same result as its predecessor (6 false pos).
Sorry for the inconvenience.
If this is a new patch version, you should write "V3" in the subject. And this "ATTENTION" has no place in the commit message. It belongs _below_ the "---" line. You are supposed to keep a history of changes between patch versions there.
Best regards,
Wolfgang Denk
Signature · 7 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 There is an old custom among my people. When a woman saves a man's life, he is grateful. -- Nona, the Kanuto which woman, "A Private Little War", stardate 4211.8.