Skip to contentSkip to conversation

85xx: Add P2020DS support

PATCH New Kumar Gala 2 participants 2 messages Apr 3, 2009 – Jun 2, 2009 Kbuild

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 85xx: Add P2020DS support

From: Srikanth Srinivasan <[email protected]>

The patch adds support for P2020DS reference platform. DDR3 interface uses hard-coded initialization rather than SPD for now and was tested at 667Mhz. Some PIXIS register definitions and associated code sections need to be fixed. TSEC1/2/3, NOR flash, MAC/SYS ID EEPROM, PCIE1/2/3 are all tested under u-boot.

---
 MAKEALL                            |    2 +
 Makefile                           |    9 +
 board/freescale/p2020ds/Makefile   |   54 +++
 board/freescale/p2020ds/config.mk  |   32 ++
 board/freescale/p2020ds/ddr.c      |  130 +++++++
 board/freescale/p2020ds/law.c      |   42 ++
 board/freescale/p2020ds/p2020ds.c  |  634 ++++++++++++++++++++++++++++++
 board/freescale/p2020ds/tlb.c      |   95 +++++
 board/freescale/p2020ds/u-boot.lds |  143 +++++++
 include/configs/P2020DS.h          |  741 ++++++++++++++++++++++++++++++++++++
 10 files changed, 1882 insertions(+), 0 deletions(-)
 create mode 100644 board/freescale/p2020ds/Makefile
 create mode 100644 board/freescale/p2020ds/config.mk
 create mode 100644 board/freescale/p2020ds/ddr.c
 create mode 100644 board/freescale/p2020ds/law.c
 create mode 100644 board/freescale/p2020ds/p2020ds.c
 create mode 100644 board/freescale/p2020ds/tlb.c
 create mode 100644 board/freescale/p2020ds/u-boot.lds
 create mode 100644 include/configs/P2020DS.h
MAKEALL +2 -0
index 854f303..85558e8 100755
@@ -379,6 +379,8 @@ LIST_85xx="		\
 	MPC8569MDS	\
 	MPC8572DS	\
 	MPC8572DS_36BIT	\
+	P2020DS		\
+	P2020DS_36BIT	\
 	PM854		\
 	PM856		\
 	sbc8540		\
Makefile +9 -0
index f857641..38d98a6 100644
@@ -2453,6 +2453,15 @@ MPC8572DS_config:       unconfig
 	fi
 	@$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale
 
+P2020DS_36BIT_config \
+P2020DS_config:		unconfig
+	@mkdir -p $(obj)include
+	@if [ "$(findstring _36BIT_,$@)" ] ; then \
+		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
+		$(XECHO) "... enabling 36-bit physical addressing." ; \
+	fi
+	@$(MKCONFIG) -a P2020DS ppc mpc85xx p2020ds freescale
+
 PM854_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
 
board/freescale/p2020ds/Makefile new file +54 -0

54 lines not on this page · raw message

board/freescale/p2020ds/config.mk new file +32 -0
new file mode 100644
index 0000000..18bdc86
@@ -0,0 +1,32 @@
+#
+# Copyright 2007-2009 Freescale Semiconductor, Inc.
+#
+# 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
+#
+
+#
+# p2020ds board
+#
+ifndef TEXT_BASE
+TEXT_BASE = 0xeff80000
+endif
+
+PLATFORM_CPPFLAGS += -DCONFIG_E500=1
+PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1
+PLATFORM_CPPFLAGS += -DCONFIG_P2020=1
board/freescale/p2020ds/ddr.c new file +130 -0

130 lines not on this page · raw message

board/freescale/p2020ds/law.c new file +42 -0

42 lines not on this page · raw message

board/freescale/p2020ds/p2020ds.c new file +634 -0

634 lines not on this page · raw message

board/freescale/p2020ds/tlb.c new file +95 -0

95 lines not on this page · raw message

board/freescale/p2020ds/u-boot.lds new file +143 -0

143 lines not on this page · raw message

include/configs/P2020DS.h new file +741 -0

741 lines not on this page · raw message

Signature · 1 line
1.5.6.6
Applied
#1 lore raw

PATCH 1/1 85xx: Add P2020DS support

Quoted 9 lines · Kumar Gala

From: Srikanth Srinivasan <[email protected]>

The patch adds support for P2020DS reference platform. DDR3 interface uses hard-coded initialization rather than SPD for now and was tested at 667Mhz. Some PIXIS register definitions and associated code sections need to be fixed. TSEC1/2/3, NOR flash, MAC/SYS ID EEPROM, PCIE1/2/3 are all tested under u-boot.

Quoted 3 lines

Applied to HEAD, thanks!

Andy