Skip to contentSkip to conversation

Add Pantheon soc and dkb board support

PATCH Superseded Lei Wen 3 participants 9 messages Jan 19, 2011 – Jan 25, 2011

Subsystems (2)

v5 of 8 Superseded Latest is v8 →

lore
Share & tools
lore

Lei Wen

author
#0 lore raw

v5 cover Add Pantheon soc and dkb board support

This patch set add the Pantheon soc and dkb board support.

V2:
This patch seris update the seperate mv_common part as suggested.

V3:
Fix config.h include place and copyright claim year.

V4:
Add change log to each patch.

V5:
Add doc in Readme for new CONFIG_SYS_MVFS.
code style fix.

Lei Wen (5):
mv: seperate kirkwood and armada from common setting
ARM: Add Support for Marvell Pantheon Familiy SoCs
serial: add pantheon soc support
mvmfp: add MFP configuration support for PANTHEON
Pantheon: Add Board Support for Marvell dkb board

 MAINTAINERS                                   |    4 +
 README                                        |    5 +
 arch/arm/cpu/arm926ejs/pantheon/Makefile      |   46 ++++++
 arch/arm/cpu/arm926ejs/pantheon/cpu.c         |   78 +++++++++
 arch/arm/cpu/arm926ejs/pantheon/dram.c        |  132 ++++++++++++++++
 arch/arm/cpu/arm926ejs/pantheon/timer.c       |  207 +++++++++++++++++++++++++
 arch/arm/include/asm/arch-armada100/config.h  |   50 ++++++
 arch/arm/include/asm/arch-kirkwood/config.h   |  145 +++++++++++++++++
 arch/arm/include/asm/arch-pantheon/config.h   |   44 ++++++
 arch/arm/include/asm/arch-pantheon/cpu.h      |   79 ++++++++++
 arch/arm/include/asm/arch-pantheon/mfp.h      |   41 +++++
 arch/arm/include/asm/arch-pantheon/pantheon.h |   54 +++++++
 board/Marvell/dkb/Makefile                    |   51 ++++++
 board/Marvell/dkb/dkb.c                       |   53 +++++++
 boards.cfg                                    |    1 +
 drivers/gpio/mvmfp.c                          |    2 +
 drivers/serial/serial.c                       |    2 +
 include/configs/aspenite.h                    |    1 +
 include/configs/dkb.h                         |   62 ++++++++
 include/configs/mv-common.h                   |  147 +++---------------
 20 files changed, 1078 insertions(+), 126 deletions(-)
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/Makefile
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/cpu.c
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/dram.c
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/timer.c
 create mode 100644 arch/arm/include/asm/arch-armada100/config.h
 create mode 100644 arch/arm/include/asm/arch-kirkwood/config.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/config.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/cpu.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/mfp.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/pantheon.h
 create mode 100644 board/Marvell/dkb/Makefile
 create mode 100644 board/Marvell/dkb/dkb.c
 create mode 100644 include/configs/dkb.h
author
#1 lore raw

PATCH v5 1/5 mv: seperate kirkwood and armada from common setting

Since there are lots of difference between kirkwood and armada series, it is better to seperate them but still keep the most common file shared by all marvell platform in the mv-common configure file.

This patch move the kirkwood only driver definitoin in mv-common to the <soc_name>/config.h.

This patch is tested with compilation for armada100 and guruplug.

---
V2:
This patch seris update the seperate mv_common part as suggested.

V3:
Fix config.h include place and copyright claim year.

V4:
Add change log to each patch.

V5:
Add CONFIG_SYS_MVFS doc in README.

 README                                       |    5 +
 arch/arm/include/asm/arch-armada100/config.h |   50 +++++++++
 arch/arm/include/asm/arch-kirkwood/config.h  |  145 +++++++++++++++++++++++++
 include/configs/aspenite.h                   |    1 +
 include/configs/mv-common.h                  |  147 ++++----------------------
 5 files changed, 222 insertions(+), 126 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-armada100/config.h
 create mode 100644 arch/arm/include/asm/arch-kirkwood/config.h
README +5 -0
index 68f5fb0..7bfd7ef 100644
@@ -319,6 +319,11 @@ The following options need to be configured:
 			CONFIG_SYS_PQ2FADS	- PQ2FADS-ZU or PQ2FADS-VR
 			CONFIG_SYS_8272ADS	- MPC8272ADS
 
+- Marvell Family Member
+		CONFIG_SYS_MVFS		- define it if you want to enable
+					  multiply fs option at one time
+					  for marvell soc family
+
 - MPC824X Family Member (if CONFIG_MPC824X is defined)
 		Define exactly one of
 		CONFIG_MPC8240, CONFIG_MPC8245
arch/arm/include/asm/arch-armada100/config.h new file +50 -0

50 lines not on this page · raw message

arch/arm/include/asm/arch-kirkwood/config.h new file +145 -0

145 lines not on this page · raw message

include/configs/aspenite.h +1 -0
index 706365f..48706cb 100644
@@ -53,6 +53,7 @@
  * to enable certain macros
  */
 #include "mv-common.h"
+#undef CONFIG_ARCH_MISC_INIT
 
 /*
  * Environment variables configurations
include/configs/mv-common.h +21 -126

192 lines not on this page · raw message

Signature · 1 line
1.7.0.4
author
#2 lore raw

PATCH v5 2/5 ARM: Add Support for Marvell Pantheon Familiy SoCs

In reply to Lei Wen

Pantheon Family processors are highly integrated SoCs based on Sheeva_88SV331x-v5 PJ1 cpu core. Ref:
http://www.marvell.com/products/processors/communications/marvell_pantheon_910_920_pb.pdf

SoC versions Supported:
1) PANTHEON920 (TD)
2) PANTHEON910 (TTC)

---
V2:

V3:
Fix copyright claim year.

V4:
Add change log to each patch.

V5:
coding style fix.

 arch/arm/cpu/arm926ejs/pantheon/Makefile      |   46 ++++++
 arch/arm/cpu/arm926ejs/pantheon/cpu.c         |   78 +++++++++
 arch/arm/cpu/arm926ejs/pantheon/dram.c        |  132 ++++++++++++++++
 arch/arm/cpu/arm926ejs/pantheon/timer.c       |  207 +++++++++++++++++++++++++
 arch/arm/include/asm/arch-pantheon/config.h   |   44 ++++++
 arch/arm/include/asm/arch-pantheon/cpu.h      |   79 ++++++++++
 arch/arm/include/asm/arch-pantheon/pantheon.h |   54 +++++++
 7 files changed, 640 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/Makefile
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/cpu.c
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/dram.c
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/timer.c
 create mode 100644 arch/arm/include/asm/arch-pantheon/config.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/cpu.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/pantheon.h
arch/arm/cpu/arm926ejs/pantheon/Makefile new file +46 -0
new file mode 100644
index 0000000..73644c7
@@ -0,0 +1,46 @@
+#
+# (C) Copyright 2010
+# Marvell Semiconductor <www.marvell.com>
+# Written-by: Lei Wen <[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).o
+
+COBJS-y	= cpu.o timer.o dram.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
+
+#########################################################################
arch/arm/cpu/arm926ejs/pantheon/cpu.c new file +78 -0

78 lines not on this page · raw message

arch/arm/cpu/arm926ejs/pantheon/dram.c new file +132 -0

132 lines not on this page · raw message

arch/arm/cpu/arm926ejs/pantheon/timer.c new file +207 -0

207 lines not on this page · raw message

arch/arm/include/asm/arch-pantheon/config.h new file +44 -0

44 lines not on this page · raw message

arch/arm/include/asm/arch-pantheon/cpu.h new file +79 -0

79 lines not on this page · raw message

arch/arm/include/asm/arch-pantheon/pantheon.h new file +54 -0

54 lines not on this page · raw message

Signature · 1 line
1.7.0.4
author
#3 lore raw

PATCH v5 3/5 serial: add pantheon soc support

In reply to Lei Wen

---
V2:

V3:
Fix copyright claim year.

V4:
Add change log to each patch.

V5:

 drivers/serial/serial.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/serial/serial.c +2 -0
index cd3439e..4032dfd 100644
@@ -33,6 +33,8 @@
 #include <asm/arch/orion5x.h>
 #elif defined(CONFIG_ARMADA100)
 #include <asm/arch/armada100.h>
+#elif defined(CONFIG_PANTHEON)
+#include <asm/arch/pantheon.h>
 #endif
 
 #if defined (CONFIG_SERIAL_MULTI)
Signature · 1 line
1.7.0.4
author
#4 lore raw

PATCH v5 4/5 mvmfp: add MFP configuration support for PANTHEON

In reply to Lei Wen

This patch adds the support MFP support for Marvell PANTHEON SoCs

---
V2:

V3:
Fix copyright claim year.

V4:
Add change log to each patch.

V5:
coding style fix.

 arch/arm/include/asm/arch-pantheon/mfp.h |   41 ++++++++++++++++++++++++++++++
 drivers/gpio/mvmfp.c                     |    2 +
 2 files changed, 43 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-pantheon/mfp.h
arch/arm/include/asm/arch-pantheon/mfp.h new file +41 -0
new file mode 100644
index 0000000..ce3aca1
@@ -0,0 +1,41 @@
+/*
+ * Based on arch/arm/include/asm/arch-armada100/mfp.h
+ * (C) Copyright 2010
+ * Marvell Semiconductor <www.marvell.com>
+ * Written-by: Lei Wen <[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
+ */
+
+#ifndef __PANTHEON_MFP_H
+#define __PANTHEON_MFP_H
+
+/*
+ * Frequently used MFP Configuration macros for all PANTHEON family of SoCs
+ *
+ * offset, pull,pF, drv,dF, edge,eF ,afn,aF
+ */
+/* UART2 */
+#define MFP47_UART2_RXD		MFP_REG(0x198) | MFP_AF6 | MFP_DRIVE_MEDIUM
+#define MFP48_UART2_TXD		MFP_REG(0x19c) | MFP_AF6 | MFP_DRIVE_MEDIUM
+
+/* More macros can be defined here... */
+
+#define MFP_PIN_MAX	117
+#endif
drivers/gpio/mvmfp.c +2 -0
index 5646ed4..e7830c6 100644
@@ -28,6 +28,8 @@
 #include <asm/arch/mfp.h>
 #ifdef CONFIG_ARMADA100
 #include <asm/arch/armada100.h>
+#elif defined(CONFIG_PANTHEON)
+#include <asm/arch/pantheon.h>
 #else
 #error Unsupported SoC...
 #endif
Signature · 1 line
1.7.0.4
author
#5 lore raw

PATCH v5 5/5 Pantheon: Add Board Support for Marvell dkb board

In reply to Lei Wen

DKB is a Development Board for PANTHEON TD/TTC(pxa920/pxa910) with
* Processor upto 806Mhz
* LPDDR1/2
* x8/x16 SLC/MLC NAND
* Footprints for eMMC & MMC x8 card

With Peripherals:
* Parallel LCD I/F
* Audio codecs (88PM8607)
* MIPI CSI-2 camera
* Marvell 88W8787 802.11n/BT module
* Marvell 2G/3G RF
* Dual analog mics & speakers, headset jack, LED, ambient
* USB2.0 HS host, OTG (mini AB)
* GPIO, GPIO expander with DIP switches for easier selection
* UART serial over USB, CIR

This patch adds basic board support with DRAM and UART functionality

---
V2:

V3:
Fix copyright claim year.

V4:
Add change log to each patch.

V5:
Remove additional CONFIG_SYS_NS16550_COM1 definition in dkb.h

 MAINTAINERS                |    4 +++
 board/Marvell/dkb/Makefile |   51 ++++++++++++++++++++++++++++++++++++
 board/Marvell/dkb/dkb.c    |   53 +++++++++++++++++++++++++++++++++++++
 boards.cfg                 |    1 +
 include/configs/dkb.h      |   62 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 171 insertions(+), 0 deletions(-)
 create mode 100644 board/Marvell/dkb/Makefile
 create mode 100644 board/Marvell/dkb/dkb.c
 create mode 100644 include/configs/dkb.h
MAINTAINERS +4 -0
index 96fad4b..0a37a01 100644
@@ -839,6 +839,10 @@ Prafulla Wadaskar <[email protected]>
 	rd6281a		ARM926EJS (Kirkwood SoC)
 	sheevaplug	ARM926EJS (Kirkwood SoC)
 
+Lei Wen <[email protected]>
+
+	dkb		ARM926EJS (PANTHEON 88AP920 SOC)
+
 Matthias Weisser <[email protected]>
 
 	jadecpu		ARM926EJS (MB86R01 SoC)
board/Marvell/dkb/Makefile new file +51 -0

51 lines not on this page · raw message

board/Marvell/dkb/dkb.c new file +53 -0

53 lines not on this page · raw message

boards.cfg +1 -0
index ee9a1a3..007175e 100644
@@ -100,6 +100,7 @@ imx27lite                    arm         arm926ejs   imx27lite           logicpd
 magnesium                    arm         arm926ejs   imx27lite           logicpd        mx27
 omap5912osk                  arm         arm926ejs   -                   ti             omap
 edminiv2                     arm         arm926ejs   -                   LaCie          orion5x
+dkb			     arm         arm926ejs   -                   Marvell        pantheon
 ca9x4_ct_vxp                 arm         armv7       vexpress            armltd
 mx51evk                      arm         armv7       mx51evk             freescale      mx5
 vision2                      arm         armv7       vision2             ttcontrol      mx5
include/configs/dkb.h new file +62 -0

62 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#8 lore raw

v5 cover Add Pantheon soc and dkb board support

In reply to Lei Wen
Quoted 58 lines

-----Original Message-----
From: Lei Wen [mailto:leiwen at marvell.com]
Sent: Wednesday, January 19, 2011 12:13 AM
To: Wolfgang Denk; u-boot at lists.denx.de; Prafulla Wadaskar; Yu Tang; Ashish Karkare; Prabhanjan Sarnaik; Lei Wen
Subject: [PATCH V5 0/5] Add Pantheon soc and dkb board support

This patch set add the Pantheon soc and dkb board support.

V2:
This patch seris update the seperate mv_common part as suggested.

V3:
Fix config.h include place and copyright claim year.

V4:
Add change log to each patch.

V5:
Add doc in Readme for new CONFIG_SYS_MVFS.
code style fix.

Lei Wen (5):
mv: seperate kirkwood and armada from common setting
ARM: Add Support for Marvell Pantheon Familiy SoCs
serial: add pantheon soc support
mvmfp: add MFP configuration support for PANTHEON
Pantheon: Add Board Support for Marvell dkb board

 MAINTAINERS                                   |    4 +
 README                                        |    5 +
 arch/arm/cpu/arm926ejs/pantheon/Makefile      |   46 ++++++
 arch/arm/cpu/arm926ejs/pantheon/cpu.c         |   78 +++++++++
 arch/arm/cpu/arm926ejs/pantheon/dram.c        |  132 ++++++++++++++++
 arch/arm/cpu/arm926ejs/pantheon/timer.c       |  207
+++++++++++++++++++++++++
 arch/arm/include/asm/arch-armada100/config.h  |   50 ++++++
 arch/arm/include/asm/arch-kirkwood/config.h   |  145 +++++++++++++++++
 arch/arm/include/asm/arch-pantheon/config.h   |   44 ++++++
 arch/arm/include/asm/arch-pantheon/cpu.h      |   79 ++++++++++
 arch/arm/include/asm/arch-pantheon/mfp.h      |   41 +++++
 arch/arm/include/asm/arch-pantheon/pantheon.h |   54 +++++++
 board/Marvell/dkb/Makefile                    |   51 ++++++
 board/Marvell/dkb/dkb.c                       |   53 +++++++
 boards.cfg                                    |    1 +
 drivers/gpio/mvmfp.c                          |    2 +
 drivers/serial/serial.c                       |    2 +
 include/configs/aspenite.h                    |    1 +
 include/configs/dkb.h                         |   62 ++++++++
 include/configs/mv-common.h                   |  147 +++---------------
 20 files changed, 1078 insertions(+), 126 deletions(-)
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/Makefile
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/cpu.c
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/dram.c
 create mode 100644 arch/arm/cpu/arm926ejs/pantheon/timer.c
 create mode 100644 arch/arm/include/asm/arch-armada100/config.h
Quoted 8 lines
 create mode 100644 arch/arm/include/asm/arch-kirkwood/config.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/config.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/cpu.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/mfp.h
 create mode 100644 arch/arm/include/asm/arch-pantheon/pantheon.h
 create mode 100644 board/Marvell/dkb/Makefile
 create mode 100644 board/Marvell/dkb/dkb.c
 create mode 100644 include/configs/dkb.h

This patch series looks okay to me.

Regards..
Prafulla . . .

#6 lore raw

PATCH v5 5/5 Pantheon: Add Board Support for Marvell dkb board

In reply to Lei Wen
Quoted 32 lines

-----Original Message-----
From: Lei Wen [mailto:leiwen at marvell.com]
Sent: Wednesday, January 19, 2011 12:13 AM
To: Wolfgang Denk; u-boot at lists.denx.de; Prafulla Wadaskar; Yu Tang; Ashish Karkare; Prabhanjan Sarnaik; Lei Wen
Subject: [PATCH 5/5] Pantheon: Add Board Support for Marvell dkb board

DKB is a Development Board for PANTHEON TD/TTC(pxa920/pxa910) with
* Processor upto 806Mhz
* LPDDR1/2
* x8/x16 SLC/MLC NAND
* Footprints for eMMC & MMC x8 card

With Peripherals:
* Parallel LCD I/F
* Audio codecs (88PM8607)
* MIPI CSI-2 camera
* Marvell 88W8787 802.11n/BT module
* Marvell 2G/3G RF
* Dual analog mics & speakers, headset jack, LED, ambient
* USB2.0 HS host, OTG (mini AB)
* GPIO, GPIO expander with DIP switches for easier selection
* UART serial over USB, CIR

This patch adds basic board support with DRAM and UART functionality

---
V2:

Quoted 8 lines

V3:
Fix copyright claim year.

V4:
Add change log to each patch.

V5:
Remove additional CONFIG_SYS_NS16550_COM1 definition in dkb.h

Hi Lei
This patch cannot be cleanly applied, please pull u-boot-marvell.git first Also please resolve below warnings.

[prafulla at pe-dt061 u-boot-marvell.git]$ cat warn.txt dkb.c: In function board_init:
dkb.c:51: warning: implicit declaration of function panth_sdram_base

Regards..
Prafulla. .

#7 lore raw

PATCH 5/5 Pantheon: Add Board Support for Marvell dkb board

Hi Prafulla,

Quoted 41 lines · Prafulla Wadaskar
Quoted 32 lines

-----Original Message-----
From: Lei Wen [mailto:leiwen at marvell.com]
Sent: Wednesday, January 19, 2011 12:13 AM
To: Wolfgang Denk; u-boot at lists.denx.de; Prafulla Wadaskar; Yu Tang; Ashish Karkare; Prabhanjan Sarnaik; Lei Wen
Subject: [PATCH 5/5] Pantheon: Add Board Support for Marvell dkb board

DKB is a Development Board for PANTHEON TD/TTC(pxa920/pxa910) with
* Processor upto 806Mhz
* LPDDR1/2
* x8/x16 SLC/MLC NAND
* Footprints for eMMC & MMC x8 card

With Peripherals:
* Parallel LCD I/F
* Audio codecs (88PM8607)
* MIPI CSI-2 camera
* Marvell 88W8787 802.11n/BT module
* Marvell 2G/3G RF
* Dual analog mics & speakers, headset jack, LED, ambient
* USB2.0 HS host, OTG (mini AB)
* GPIO, GPIO expander with DIP switches for easier selection
* UART serial over USB, CIR

This patch adds basic board support with DRAM and UART functionality

---
V2:

Quoted 8 lines

V3:
Fix copyright claim year.

V4:
Add change log to each patch.

V5:
Remove additional CONFIG_SYS_NS16550_COM1 definition in dkb.h

Quoted 8 lines

Hi Lei
This patch cannot be cleanly applied, please pull u-boot-marvell.git first Also please resolve below warnings.

[prafulla at pe-dt061 u-boot-marvell.git]$ cat warn.txt dkb.c: In function board_init:
dkb.c:51: warning: implicit declaration of function panth_sdram_base

I would post another patch set rebase on the latest u-boot-marvell to fix that...

Best regards,
Lei