Skip to contentSkip to conversation

Initial support for Marvell Orion5x SoC

PATCH Superseded Albert Aribaud 3 participants 11 messages Apr 8, 2010 – Apr 12, 2010

Subsystems (2)

v5 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/3 Initial support for Marvell Orion5x SoC

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 product from LaCie.

---
Patchset history

V1: Initial monolithic patch.
V2: split in three patches : orion, serial, edmini;
checkpatch'ed, with only 6 errors, in patch 1/3, all 6 errors being false positives.
V3: useless GPIO and MPP programming support removed;
low level init added/CONFIG_SKIP_LOW_LEVEL_INIT removed.
V4: all files licensed GPLv2-only removed;
RAM bank size detection now uses get_ram_size().
V5: Replaced macros by C structs in dram code.
Removed compilation warnings in dram code. Added comments to legacy flash definitions. Split low level init code into SoC- and Chip-specifics.

Patch 1 of 3 still checkpatches with 6 spurious errors and one spurious warning. Patches 2 and 3 have 0 errors and 0 warnings.

 cpu/arm926ejs/orion5x/Makefile           |   55 ++++++
 cpu/arm926ejs/orion5x/cpu.c              |  264 +++++++++++++++++++++++++++
 cpu/arm926ejs/orion5x/dram.c             |   63 +++++++
 cpu/arm926ejs/orion5x/lowlevel_init.S    |  294 ++++++++++++++++++++++++++++++
 cpu/arm926ejs/orion5x/timer.c            |  181 ++++++++++++++++++
 include/asm-arm/arch-orion5x/cpu.h       |  203 ++++++++++++++++++++
 include/asm-arm/arch-orion5x/mv88f5182.h |   40 ++++
 include/asm-arm/arch-orion5x/orion5x.h   |   69 +++++++
 8 files changed, 1169 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/lowlevel_init.S
 create mode 100644 cpu/arm926ejs/orion5x/timer.c
 create mode 100644 include/asm-arm/arch-orion5x/cpu.h
 create mode 100644 include/asm-arm/arch-orion5x/mv88f5182.h
 create mode 100644 include/asm-arm/arch-orion5x/orion5x.h
cpu/arm926ejs/orion5x/Makefile new file +55 -0
new file mode 100644
index 0000000..86932ca
@@ -0,0 +1,55 @@
+#
+# 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	+= timer.o
+
+ifndef CONFIG_SKIP_LOWLEVEL_INIT
+SOBJS	:= lowlevel_init.o
+endif
+
+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 +264 -0

264 lines not on this page · raw message

cpu/arm926ejs/orion5x/dram.c new file +63 -0

63 lines not on this page · raw message

cpu/arm926ejs/orion5x/lowlevel_init.S new file +294 -0

294 lines not on this page · raw message

cpu/arm926ejs/orion5x/timer.c new file +181 -0

181 lines not on this page · raw message

include/asm-arm/arch-orion5x/cpu.h new file +203 -0

203 lines not on this page · raw message

include/asm-arm/arch-orion5x/mv88f5182.h new file +40 -0
new file mode 100644
index 0000000..9d240bc
@@ -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 definitions */
+#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/orion5x.h new file +69 -0

69 lines not on this page · raw message

Signature · 1 line
1.6.4.4
#1 lore raw

PATCH v5 2/3 Add Orion5x support to 16550 device driver

This patch provides access to the 16550-compatible serial device of the Orion5x SoC.

---
 drivers/serial/serial.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/serial/serial.c +3 -0
index dd5f332..18686a2 100644
@@ -30,6 +30,9 @@
 #ifdef CONFIG_KIRKWOOD
 #include <asm/arch/kirkwood.h>
 #endif
+#ifdef CONFIG_ORION5X
+#include <asm/arch/orion5x.h>
+#endif
 
 #if defined (CONFIG_SERIAL_MULTI)
 #include <serial.h>
Signature · 1 line
1.6.4.4
#2 lore raw

PATCH v5 3/3 Add support for the LaCie ED Mini V2 board

This patch adds support for the LaCie ED Mini V2 product which is based on the Marvell Orion5x SoC.

---
 MAINTAINERS                                |    4 +
 MAKEALL                                    |    1 +
 Makefile                                   |    3 +
 board/LaCie/edminiv2/Makefile              |   58 +++++++++++
 board/LaCie/edminiv2/board_lowlevel_init.S |   55 ++++++++++
 board/LaCie/edminiv2/config.mk             |   27 +++++
 board/LaCie/edminiv2/edminiv2.c            |   93 ++++++++++++++++++
 board/LaCie/edminiv2/edminiv2.h            |   54 ++++++++++
 include/configs/edminiv2.h                 |  147 ++++++++++++++++++++++++++++
 9 files changed, 442 insertions(+), 0 deletions(-)
 create mode 100644 board/LaCie/edminiv2/Makefile
 create mode 100644 board/LaCie/edminiv2/board_lowlevel_init.S
 create mode 100644 board/LaCie/edminiv2/config.mk
 create mode 100644 board/LaCie/edminiv2/edminiv2.c
 create mode 100644 board/LaCie/edminiv2/edminiv2.h
 create mode 100644 include/configs/edminiv2.h
MAINTAINERS +4 -0
index 0658bc3..ac49654 100644
@@ -515,6 +515,10 @@ Unknown / orphaned boards:
 #	Board		CPU						#
 #########################################################################
 
+Albert ARIBAUD <[email protected]>
+
+	edminiv2	ARM926EJS (Orion5x SoC)
+
 Rowel Atienza <[email protected]>
 
 	armadillo	ARM720T
MAKEALL +1 -0
index a88c31e..d659f92 100755
@@ -559,6 +559,7 @@ LIST_ARM9="			\
 	edb9312			\
 	edb9315			\
 	edb9315a		\
+	edminiv2		\
 	imx27lite		\
 	lpd7a400		\
 	mv88f6281gtw_ge		\
Makefile +3 -0
index 4532550..5ae3976 100644
@@ -2936,6 +2936,9 @@ davinci_dm365evm_config :	unconfig
 davinci_dm6467evm_config :	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm6467evm davinci davinci
 
+edminiv2_config: unconfig
+	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) LaCie orion5x
+
 imx27lite_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27
 
board/LaCie/edminiv2/Makefile new file +58 -0

58 lines not on this page · raw message

board/LaCie/edminiv2/board_lowlevel_init.S new file +55 -0

55 lines not on this page · raw message

board/LaCie/edminiv2/config.mk new file +27 -0
new file mode 100644
index 0000000..971c861
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2009 Albert ARIBAUD <[email protected]>
+#
+# (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
+#
+
+TEXT_BASE = 0x00100000
board/LaCie/edminiv2/edminiv2.c new file +93 -0

93 lines not on this page · raw message

board/LaCie/edminiv2/edminiv2.h new file +54 -0

54 lines not on this page · raw message

include/configs/edminiv2.h new file +147 -0

147 lines not on this page · raw message

Signature · 1 line
1.6.4.4
#3 lore raw

PATCH v5 3/3 Add support for the LaCie ED Mini V2 board

Quoted 33 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: Friday, April 09, 2010 2:41 AM
To: U-Boot at lists.denx.de
Subject: [U-Boot] [PATCH V5 3/3] Add support for the LaCie ED Mini V2 board

This patch adds support for the LaCie ED Mini V2 product which is based on the Marvell Orion5x SoC.

---
 MAINTAINERS                                |    4 +
 MAKEALL                                    |    1 +
 Makefile                                   |    3 +
 board/LaCie/edminiv2/Makefile              |   58 +++++++++++
 board/LaCie/edminiv2/board_lowlevel_init.S |   55 ++++++++++
 board/LaCie/edminiv2/config.mk             |   27 +++++
 board/LaCie/edminiv2/edminiv2.c            |   93 ++++++++++++++++++
 board/LaCie/edminiv2/edminiv2.h            |   54 ++++++++++
 include/configs/edminiv2.h                 |  147 
++++++++++++++++++++++++++++
 9 files changed, 442 insertions(+), 0 deletions(-)
 create mode 100644 board/LaCie/edminiv2/Makefile
 create mode 100644 board/LaCie/edminiv2/board_lowlevel_init.S
 create mode 100644 board/LaCie/edminiv2/config.mk
 create mode 100644 board/LaCie/edminiv2/edminiv2.c
 create mode 100644 board/LaCie/edminiv2/edminiv2.h
 create mode 100644 include/configs/edminiv2.h

..snip...

Quoted 11 lines

+++ b/board/LaCie/edminiv2/board_lowlevel_init.S

(quoted diff) +1 -0
@@ -0,0 +1,55 @@
+/************************************************************

*******************

board/LaCie/edminiv2/board_lowlevel_init.S new file +5 -0
+Copyright (c) Albert ARIBAUD <[email protected]>
+Redistributed under GPLv2, pursuant to the licensing terms
+of the original Marvell U-boot code which is:
+Copyright (C) Marvell International Ltd. and its affiliates
+*************************************************************

*******************
+Marvell GPL License Option

Use std GPl statement, Remove Marvell GPL

Quoted 26 lines
(quoted diff) +2 -0
+
+If you received this File from Marvell, you may opt to use, 

redistribute and/or
+modify this File in accordance with the terms and conditions of the General
+Public License Version 2, June 1991 (the "GPL License"), a copy of which is
+available along with the File in the license.txt file or by writing to the Free
+Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or

board/LaCie/edminiv2/board_lowlevel_init.S new file +3 -0
+on the worldwide web at http://www.gnu.org/licenses/gpl.txt.
+
+THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, 

AND THE IMPLIED
+WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY
+DISCLAIMED. The GPL License provides additional details about this warranty

board/LaCie/edminiv2/board_lowlevel_init.S new file +3 -0
+disclaimer.
+
+*************************************************************

******************/

board/LaCie/edminiv2/board_lowlevel_init.S new file +3 -0
+
+#include "edminiv2.h"
+

board/LaCie/edminiv2/board_lowlevel_init.S line 34

Quoted 10 lines
board/LaCie/edminiv2/board_lowlevel_init.S new file +10 -0
+/*
+ * Low-level init happens right after start.S has switched to SVC32,
+ * flushed and disabled caches and disabled MMU. We're still running
+ * from the boot chip select, so the first thing we should do is set
+ * up RAM for us to relocate into.
+ *
+ * board_low_level_init is called by the Orion5x lowlevel_init code,
+ * and sets up board-specifics such as MPPs and GPIOs.
+ */
+

Its good if you can embedd this code in #ifndef CONFIG_SKIP_BOARD_LOWLEVEL_INIT And the same in lowlevel_init.S in patch 1/3.
BTW: lowlevel_init.S is board specific, you can move it to this patch and merge this file with it.

Secondly, its better if you can avoide Assembly code so far it is possible, you can very well use C functionas for below.

Thirdly, I still prefer the only DRAM init code should go in lowlevel_init.S, rest other code should go in cpu.c/<board>.c (even init mpp/gpio)

Quoted 11 lines

+.globl board_lowlevel_init

board/LaCie/edminiv2/board_lowlevel_init.S new file +10 -0
+
+board_lowlevel_init:
+
+	/* Use R3 as the base for Device Bus registers */
+	add     r3, r4, #0x10000
+
+	/* init MPPs */
+	ldr	r6, =EDMINIV2_MPP0_7
+	str	r6, [r3, #0x000]
+	ldr	r6, =EDMINIV2_MPP8_15

board/LaCie/edminiv2/board_lowlevel_init.S line 55

Quoted 10 lines
board/LaCie/edminiv2/board_lowlevel_init.S new file +10 -0
+	str	r6, [r3, #0x004]
+	ldr	r6, =EDMINIV2_MPP16_23
+	str	r6, [r3, #0x050]
+
+	/* init GPIOs */
+	ldr	r6, =EDMINIV2_GPIO_OUT_ENABLE
+	str	r6, [r3, #0x104]
+
+	/* Return to lowlevel_init via saved link register */
+	mov pc, lr

Regards..
Prafulla . .

#4 lore raw

PATCH v5 1/3 Initial support for Marvell Orion5x SoC

In reply to Albert Aribaud

Dear Albert

Quoted 60 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: Friday, April 09, 2010 2:41 AM
To: U-Boot at lists.denx.de
Subject: [U-Boot] [PATCH V5 1/3] Initial support for Marvell Orion5x SoC

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 product from LaCie.

---
Patchset history

V1: Initial monolithic patch.
V2: split in three patches : orion, serial, edmini;
checkpatch'ed, with only 6 errors, in patch 1/3, all 6 errors being false positives.
V3: useless GPIO and MPP programming support removed;
low level init added/CONFIG_SKIP_LOW_LEVEL_INIT removed.
V4: all files licensed GPLv2-only removed;
RAM bank size detection now uses get_ram_size().
V5: Replaced macros by C structs in dram code.
Removed compilation warnings in dram code. Added comments to legacy flash definitions. Split low level init code into SoC- and Chip-specifics.

Patch 1 of 3 still checkpatches with 6 spurious errors and one spurious warning. Patches 2 and 3 have 0 errors and 0 warnings.

 cpu/arm926ejs/orion5x/Makefile           |   55 ++++++
 cpu/arm926ejs/orion5x/cpu.c              |  264 
+++++++++++++++++++++++++++
 cpu/arm926ejs/orion5x/dram.c             |   63 +++++++
 cpu/arm926ejs/orion5x/lowlevel_init.S    |  294 
++++++++++++++++++++++++++++++
 cpu/arm926ejs/orion5x/timer.c            |  181 ++++++++++++++++++
 include/asm-arm/arch-orion5x/cpu.h       |  203 ++++++++++++++++++++
 include/asm-arm/arch-orion5x/mv88f5182.h |   40 ++++
 include/asm-arm/arch-orion5x/orion5x.h   |   69 +++++++
 8 files changed, 1169 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/lowlevel_init.S
 create mode 100644 cpu/arm926ejs/orion5x/timer.c
 create mode 100644 include/asm-arm/arch-orion5x/cpu.h
 create mode 100644 include/asm-arm/arch-orion5x/mv88f5182.h
 create mode 100644 include/asm-arm/arch-orion5x/orion5x.h
cpu/arm926ejs/orion5x/Makefile new file +0 -0
new file mode 100644
index 0000000..86932ca

cpu/arm926ejs/orion5x/Makefile line 2

Quoted 2 lines
cpu/arm926ejs/orion5x/Makefile new file +2 -0
@@ -0,0 +1,55 @@
+#
+# Copyright (C) 2009 Albert ARIBAUD <[email protected]>

General comment for all files,
You should change copyright statement for year 2010 instead of 2009

...snip...
+/*
+ * Orion5x identification is done through PCIE space.
+ */
+#define PCIE_DEV_ID_OFF (ORION5X_REG_PCIE_BASE + 0x0000)
+#define PCIE_DEV_REV_OFF (ORION5X_REG_PCIE_BASE + 0x0008)

These are already defined cpu.h, pls remove it

+u32 orion5x_device_id(void)
+{
+ return readl(PCIE_DEV_ID_OFF) >> 16;
+}
+

...snip...

Quoted 14 lines
cpu/arm926ejs/orion5x/lowlevel_init.S new file +1 -0
new file mode 100644
index 0000000..7e5a032
@@ -0,0 +1,294 @@
+/************************************************************

*******************

cpu/arm926ejs/orion5x/lowlevel_init.S new file +5 -0
+Copyright (c) Albert ARIBAUD <[email protected]>
+Redistributed under GPLv2, pursuant to the licensing terms
+of the original Marvell U-boot code which is:
+Copyright (C) Marvell International Ltd. and its affiliates
+*************************************************************
Quoted 2 lines

*******************
+Marvell GPL License Option

You should put standard GPL statement here as you put for other files, Also pls remove Marvell GPL statement

Quoted 22 lines
cpu/arm926ejs/orion5x/lowlevel_init.S new file +2 -0
+
+If you received this File from Marvell, you may opt to use, 

redistribute and/or
+modify this File in accordance with the terms and conditions of the General
+Public License Version 2, June 1991 (the "GPL License"), a copy of which is
+available along with the File in the license.txt file or by writing to the Free
+Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or

cpu/arm926ejs/orion5x/lowlevel_init.S new file +3 -0
+on the worldwide web at http://www.gnu.org/licenses/gpl.txt.
+
+THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, 

AND THE IMPLIED
+WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY
+DISCLAIMED. The GPL License provides additional details about this warranty

cpu/arm926ejs/orion5x/lowlevel_init.S new file +3 -0
+disclaimer.
+
+*************************************************************
Quoted 1 line

******************/

Apart from above, the code looks okay to me.

Regards..
Prafulla . .

#5 lore raw

PATCH v5 1/3 Initial support for Marvell Orion5x SoC

Prafulla Wadaskar a ?crit :

Quoted 9 lines

Dear Albert

cpu/arm926ejs/orion5x/Makefile line 2

Quoted 4 lines

+++ b/cpu/arm926ejs/orion5x/Makefile

cpu/arm926ejs/orion5x/Makefile new file +2 -0
@@ -0,0 +1,55 @@
+#
+# Copyright (C) 2009 Albert ARIBAUD <[email protected]>

General comment for all files,
You should change copyright statement for year 2010 instead of 2009

Drat--didn't realize this. :o)

Quoted 4 lines
(quoted diff) +2 -0
+#define PCIE_DEV_ID_OFF         (ORION5X_REG_PCIE_BASE + 0x0000)
+#define PCIE_DEV_REV_OFF        (ORION5X_REG_PCIE_BASE + 0x0008)

These are already defined cpu.h, pls remove it

Fixed

Quoted 5 lines
Quoted 5 lines
(quoted diff) +2 -0
+++ b/cpu/arm926ejs/orion5x/lowlevel_init.S
@@ -0,0 +1,294 @@
+/************************************************************

*******************
+Copyright (c) Albert ARIBAUD <[email protected]>

Quoted 8 lines
Quoted 6 lines
cpu/arm926ejs/orion5x/lowlevel_init.S new file +4 -0
+Redistributed under GPLv2, pursuant to the licensing terms
+of the original Marvell U-boot code which is:
+Copyright (C) Marvell International Ltd. and its affiliates
+*************************************************************

*******************
+Marvell GPL License Option

You should put standard GPL statement here as you put for other files,

Ok.

Quoted 1 line

Also pls remove Marvell GPL statement

I'd kept the notice as this file is a split from, and major part of, the original single lowlevel_init.S which is indeed (c) Marvell; if you feel I can remove the reference to Marvell, that's fine with me. But then, I should remove it also from board/LaCie/edminiv2/board_lowlevel_init.S, should I not?

Quoted 4 lines

Apart from above, the code looks okay to me.

Regards..
Prafulla . .

Thanks Prafulla; patch V6 comes in as soon as I get your confirmation on the copyright notice question.

Amicalement,

Signature · 1 line
Albert.
#6 lore raw

PATCH v5 1/3 Initial support for Marvell Orion5x SoC

Quoted 45 lines

-----Original Message-----
From: Albert ARIBAUD [mailto:albert.aribaud at free.fr]
Sent: Friday, April 09, 2010 10:55 AM
To: Prafulla Wadaskar
Cc: U-Boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH V5 1/3] Initial support for Marvell Orion5x SoC

Prafulla Wadaskar a ?crit :

Quoted 9 lines

Dear Albert

cpu/arm926ejs/orion5x/Makefile line 2

Quoted 4 lines

+++ b/cpu/arm926ejs/orion5x/Makefile

cpu/arm926ejs/orion5x/Makefile new file +2 -0
@@ -0,0 +1,55 @@
+#
+# Copyright (C) 2009 Albert ARIBAUD <[email protected]>

General comment for all files,
You should change copyright statement for year 2010 instead of 2009

Drat--didn't realize this. :o)

Quoted 4 lines
(quoted diff) +2 -0
+#define PCIE_DEV_ID_OFF         (ORION5X_REG_PCIE_BASE + 0x0000)
+#define PCIE_DEV_REV_OFF        (ORION5X_REG_PCIE_BASE + 0x0008)

These are already defined cpu.h, pls remove it

Fixed

Quoted 5 lines
Quoted 5 lines
(quoted diff) +2 -0
+++ b/cpu/arm926ejs/orion5x/lowlevel_init.S
@@ -0,0 +1,294 @@
+/************************************************************

*******************
+Copyright (c) Albert ARIBAUD <[email protected]>

Quoted 8 lines
Quoted 6 lines
cpu/arm926ejs/orion5x/lowlevel_init.S new file +4 -0
+Redistributed under GPLv2, pursuant to the licensing terms
+of the original Marvell U-boot code which is:
+Copyright (C) Marvell International Ltd. and its affiliates
+*************************************************************

*******************
+Marvell GPL License Option

You should put standard GPL statement here as you put for

other files,

Quoted 7 lines

Ok.

Quoted 1 line

Also pls remove Marvell GPL statement

I'd kept the notice as this file is a split from, and major part of, the
original single lowlevel_init.S which is indeed (c) Marvell;

Well you can mention simple copy write for this
# (C) Copyright 2009
# Marvell Semiconductor <www.marvell.com>

If you know previous author of that code, you may give credit to them

Quoted 6 lines

if you feel
I can remove the reference to Marvell, that's fine with me. But then, I
should remove it also from board/LaCie/edminiv2/board_lowlevel_init.S,
should I not?

Yes, you should.
Let's make/post clean GPL code here.

Regards..
Prafulla . .

#7 lore raw

PATCH v5 1/3 Initial support for Marvell Orion5x SoC

In reply to Albert ARIBAUD

Dear Albert ARIBAUD,

Quoted 8 lines · In message <[email protected]> you wrote:
Quoted 2 lines

Also pls remove Marvell GPL statement

I'd kept the notice as this file is a split from, and major part of, the original single lowlevel_init.S which is indeed (c) Marvell; if you feel I can remove the reference to Marvell, that's fine with me. But then, I should remove it also from board/LaCie/edminiv2/board_lowlevel_init.S, should I not?

This is not a question if we "feel" that you can remove this note. These are legal terms, and _you_ must verify if you are permitted to change the licensing terms in any way.

I am not a lawyer, but in the curent case you probably have to check with Marvell's legal department if they give permission to re-license this code under GPLv2 and later.

Best regards,

Wolfgang Denk

Signature · 5 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
Don't you know anything? I should have thought anyone knows that  who
knows anything about anything...      - Terry Pratchett, _Soul Music_
#8 lore raw

PATCH v5 1/3 Initial support for Marvell Orion5x SoC

Quoted 26 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Sunday, April 11, 2010 2:40 AM
To: Albert ARIBAUD
Cc: Prafulla Wadaskar; U-Boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH V5 1/3] Initial support for Marvell Orion5x SoC

Dear Albert ARIBAUD,

Quoted 4 lines · In message <[email protected]> you wrote:
Quoted 2 lines

Also pls remove Marvell GPL statement

I'd kept the notice as this file is a split from, and major

part of, the

Quoted 1 line

original single lowlevel_init.S which is indeed (c)

Marvell; if you feel

Quoted 1 line

I can remove the reference to Marvell, that's fine with me.

But then, I

Quoted 1 line

should remove it also from

board/LaCie/edminiv2/board_lowlevel_init.S,

Quoted 1 line

should I not?

Quoted 7 lines

This is not a question if we "feel" that you can remove this note. These are legal terms, and _you_ must verify if you are permitted to change the licensing terms in any way.

I am not a lawyer, but in the curent case you probably have to check with Marvell's legal department if they give permission to re-license this code under GPLv2 and later.

Dear Wolfgang

I have already raised fresh/new request for legal permission to re-license this code, I am expecting reply soon.
Once I get feedback I will flag it.

Regards..
Prafulla . .

Quoted 12 lines

Best regards,

Wolfgang Denk

Signature · 5 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
Don't you know anything? I should have thought anyone knows that  who
knows anything about anything...      - Terry Pratchett, _Soul Music_
#9 lore raw

PATCH v5 1/3 Initial support for Marvell Orion5x SoC

In reply to Albert Aribaud

Dear Albert Aribaud,

Quoted 6 lines · In message <[email protected]> you wrote:

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 product from LaCie.

...

Quoted 7 lines
cpu/arm926ejs/orion5x/lowlevel_init.S new file +4 -0
@@ -0,0 +1,294 @@
+/*******************************************************************************
+Copyright (c) Albert ARIBAUD <[email protected]>
+Redistributed under GPLv2, pursuant to the licensing terms
+of the original Marvell U-boot code which is:

cpu/arm926ejs/orion5x/lowlevel_init.S line 14

Quoted 10 lines
cpu/arm926ejs/orion5x/lowlevel_init.S new file +10 -0
+Copyright (C) Marvell International Ltd. and its affiliates
+********************************************************************************
+Marvell GPL License Option
+
+If you received this File from Marvell, you may opt to use, redistribute and/or
+modify this File in accordance with the terms and conditions of the General
+Public License Version 2, June 1991 (the "GPL License"), a copy of which is
+available along with the File in the license.txt file or by writing to the Free
+Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or
+on the worldwide web at http://www.gnu.org/licenses/gpl.txt.

NAK. New files shall be licensed under GPL v2 or later.

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
Include the success of others in your dreams for your own success.
#10 lore raw

PATCH v5 1/3 Initial support for Marvell Orion5x SoC

Wolfgang Denk a ?crit :

Quoted 30 lines

Dear Albert Aribaud,

Quoted 6 lines · In message <[email protected]> you wrote:

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 product from LaCie.

...

Quoted 7 lines
cpu/arm926ejs/orion5x/lowlevel_init.S new file +4 -0
@@ -0,0 +1,294 @@
+/*******************************************************************************
+Copyright (c) Albert ARIBAUD <[email protected]>
+Redistributed under GPLv2, pursuant to the licensing terms
+of the original Marvell U-boot code which is:

cpu/arm926ejs/orion5x/lowlevel_init.S line 14

Quoted 10 lines
cpu/arm926ejs/orion5x/lowlevel_init.S new file +10 -0
+Copyright (C) Marvell International Ltd. and its affiliates
+********************************************************************************
+Marvell GPL License Option
+
+If you received this File from Marvell, you may opt to use, redistribute and/or
+modify this File in accordance with the terms and conditions of the General
+Public License Version 2, June 1991 (the "GPL License"), a copy of which is
+available along with the File in the license.txt file or by writing to the Free
+Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or
+on the worldwide web at http://www.gnu.org/licenses/gpl.txt.

NAK. New files shall be licensed under GPL v2 or later.

Quoted 3 lines

Best regards,

Wolfgang Denk

This was fixed in V6 after a request by Prafulla Wadaskar from Marvell.

Amicalement,

Signature · 1 line
Albert.