• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionea4bc120db7da3f80bdaca0c08b5fd404cfa0d3e (tree)
Zeit2011-02-21 16:30:55
AutorLei Wen <[leiwen@marv...>
CommiterAlbert Aribaud

Log Message

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

Signed-off-by: Lei Wen <leiwen@marvell.com>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>

Ändern Zusammenfassung

Diff

--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -863,6 +863,10 @@ Tom Warren <twarren@nvidia.com>
863863 harmony Tegra2 (ARM7 & A9 Dual Core)
864864 seaboard Tegra2 (ARM7 & A9 Dual Core)
865865
866+Lei Wen <leiwen@marvell.com>
867+
868+ dkb ARM926EJS (PANTHEON 88AP920 SOC)
869+
866870 Matthias Weisser <weisserm@arcor.de>
867871
868872 jadecpu ARM926EJS (MB86R01 SoC)
--- /dev/null
+++ b/board/Marvell/dkb/Makefile
@@ -0,0 +1,51 @@
1+#
2+# (C) Copyright 2011
3+# Marvell Semiconductor <www.marvell.com>
4+# Written-by: Lei Wen <leiwen@marvell.com>
5+#
6+# See file CREDITS for list of people who contributed to this
7+# project.
8+#
9+# This program is free software; you can redistribute it and/or
10+# modify it under the terms of the GNU General Public License as
11+# published by the Free Software Foundation; either version 2 of
12+# the License, or (at your option) any later version.
13+#
14+# This program is distributed in the hope that it will be useful,
15+# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+# GNU General Public License for more details.
18+#
19+# You should have received a copy of the GNU General Public License
20+# along with this program; if not, write to the Free Software
21+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22+# MA 02110-1301 USA
23+#
24+
25+include $(TOPDIR)/config.mk
26+
27+LIB = $(obj)lib$(BOARD).o
28+
29+COBJS := dkb.o
30+
31+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
32+OBJS := $(addprefix $(obj),$(COBJS))
33+SOBJS := $(addprefix $(obj),$(SOBJS))
34+
35+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
36+ $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
37+
38+clean:
39+ rm -f $(SOBJS) $(OBJS)
40+
41+distclean: clean
42+ rm -f $(LIB) core *.bak .depend
43+
44+#########################################################################
45+
46+# defines $(obj).depend target
47+include $(SRCTREE)/rules.mk
48+
49+sinclude $(obj).depend
50+
51+#########################################################################
--- /dev/null
+++ b/board/Marvell/dkb/dkb.c
@@ -0,0 +1,54 @@
1+/*
2+ * (C) Copyright 2011
3+ * Marvell Semiconductor <www.marvell.com>
4+ * Written-by: Lei Wen <leiwen@marvell.com>
5+ *
6+ * See file CREDITS for list of people who contributed to this
7+ * project.
8+ *
9+ * This program is free software; you can redistribute it and/or
10+ * modify it under the terms of the GNU General Public License as
11+ * published by the Free Software Foundation; either version 2 of
12+ * the License, or (at your option) any later version.
13+ *
14+ * This program is distributed in the hope that it will be useful,
15+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ * GNU General Public License for more details.
18+ *
19+ * You should have received a copy of the GNU General Public License
20+ * along with this program; if not, write to the Free Software
21+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22+ * MA 02110-1301 USA
23+ */
24+
25+#include <common.h>
26+#include <mvmfp.h>
27+#include <asm/arch/mfp.h>
28+#include <asm/arch/cpu.h>
29+
30+DECLARE_GLOBAL_DATA_PTR;
31+
32+int board_early_init_f(void)
33+{
34+ u32 mfp_cfg[] = {
35+ /* Enable Console on UART2 */
36+ MFP47_UART2_RXD,
37+ MFP48_UART2_TXD,
38+
39+ MFP_EOC /*End of configureation*/
40+ };
41+ /* configure MFP's */
42+ mfp_config(mfp_cfg);
43+
44+ return 0;
45+}
46+
47+int board_init(void)
48+{
49+ /* arch number of Board */
50+ gd->bd->bi_arch_number = MACH_TYPE_TTC_DKB;
51+ /* adress of boot parameters */
52+ gd->bd->bi_boot_params = panth_sdram_base(0) + 0x100;
53+ return 0;
54+}
--- a/boards.cfg
+++ b/boards.cfg
@@ -105,6 +105,7 @@ imx27lite arm arm926ejs imx27lite logicpd
105105 magnesium arm arm926ejs imx27lite logicpd mx27
106106 omap5912osk arm arm926ejs - ti omap
107107 edminiv2 arm arm926ejs - LaCie orion5x
108+dkb arm arm926ejs - Marvell pantheon
108109 ca9x4_ct_vxp arm armv7 vexpress armltd
109110 efikamx arm armv7 efikamx - mx5
110111 mx51evk arm armv7 mx51evk freescale mx5
--- /dev/null
+++ b/include/configs/dkb.h
@@ -0,0 +1,65 @@
1+/*
2+ * (C) Copyright 2011
3+ * Marvell Semiconductor <www.marvell.com>
4+ * Written-by: Lei Wen <leiwen@marvell.com>
5+ *
6+ * See file CREDITS for list of people who contributed to this
7+ * project.
8+ *
9+ * This program is free software; you can redistribute it and/or
10+ * modify it under the terms of the GNU General Public License as
11+ * published by the Free Software Foundation; either version 2 of
12+ * the License, or (at your option) any later version.
13+ *
14+ * This program is distributed in the hope that it will be useful,
15+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ * GNU General Public License for more details.
18+ *
19+ * You should have received a copy of the GNU General Public License
20+ * along with this program; if not, write to the Free Software
21+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22+ * MA 02110-1301 USA
23+ */
24+
25+#ifndef __CONFIG_DKB_H
26+#define __CONFIG_DKB_H
27+
28+/*
29+ * Version number information
30+ */
31+#define CONFIG_IDENT_STRING "\nMarvell-TTC DKB"
32+
33+/*
34+ * High Level Configuration Options
35+ */
36+#define CONFIG_SHEEVA_88SV331xV5 1 /* CPU Core subversion */
37+#define CONFIG_PANTHEON 1 /* SOC Family Name */
38+#define CONFIG_MACH_TTC_DKB 1 /* Machine type */
39+#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
40+
41+#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - 0x00200000)
42+#define CONFIG_NR_DRAM_BANKS_MAX 2
43+
44+/*
45+ * Commands configuration
46+ */
47+#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
48+#include <config_cmd_default.h>
49+#define CONFIG_CMD_AUTOSCRIPT
50+#undef CONFIG_CMD_NET
51+#undef CONFIG_CMD_NFS
52+/*
53+ * mv-common.h should be defined after CMD configs since it used them
54+ * to enable certain macros
55+ */
56+#include "mv-common.h"
57+
58+#undef CONFIG_ARCH_MISC_INIT
59+/*
60+ * Environment variables configurations
61+ */
62+#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
63+#define CONFIG_ENV_SIZE 0x20000 /* 64k */
64+
65+#endif /* __CONFIG_DKB_H */