Skip to contentSkip to conversation

General modification to support mpc836 [...]

PATCH New DENX Support System 1 participant 1 message Aug 17, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 General modification to support mpc836 [...]

Hello list,

inside the automatic U-Boot patch tracking system a new ticket [DNX#2006081742000052] was created:

<snip>

Quoted 97 lines

Subject: [PATCH] General modification to support mpc8360epb

---

 CHANGELOG                     |    2 ++
 MAKEALL                       |    2 +-
 Makefile                      |   31 ++++++++++++++++++++++++++++
 README                        |   45
++++++++++++++++++++++-------------------
 include/asm-ppc/e300.h        |    2 ++
 include/asm-ppc/global_data.h |   14 +++++++++++--
 include/asm-ppc/i2c.h         |    8 ++++---
 include/asm-ppc/u-boot.h      |    4 ++++
 include/common.h              |    5 +++++
 lib_ppc/board.c               |    4 ++++
 10 files changed, 89 insertions(+), 28 deletions(-)

d1bd8dc6d94dcb6e70992467a2e74de4f321ef56

CHANGELOG +2 -0
index 24499c5..d2a9643 100644
@@ -1,6 +1,8 @@
 ======================================================================
 Changes since U-Boot 1.1.4:
 ======================================================================
+* Add support for Freescale MPC8360EPB board.
+  Patch by Dave Liu and Tanya Jiang, Aug 17 2006
 
 * Fix control-c handing in CONFIG_CMDLINE_EDITING
   Properly pass break code back from readline.
MAKEALL +1 -1
index 467a9be..25e0399 100755
@@ -119,7 +119,7 @@ ## MPC83xx Systems (includes 8349, etc.)
 
 ########################################################################
 #
 
 LIST_83xx="	\
-	TQM834x		MPC8349EMDS
 \
+	TQM834x		MPC8349EMDS	MPC8360EPB

\
"

Makefile +31 -0
index 128ae59..c65bb4b 100644
@@ -139,6 +139,10 @@ LIBS += drivers/sk98lin/libsk98lin.a
 LIBS += post/libpost.a post/cpu/libcpu.a
 LIBS += common/libcommon.a
 LIBS += $(BOARDLIBS)
+ifeq ($(BOARD),mpc8360epb)
+LIBS += drivers/sysdev/qe_lib/ucc/libucc.a
+LIBS += drivers/sysdev/qe_lib/libqe.a
+endif
 .PHONY : $(LIBS)
 
 # Add GCC lib
@@ -1377,6 +1381,33 @@ TQM834x_config:	unconfig
 MPC8349EMDS_config:	unconfig
 	@./mkconfig $(@:_config=) ppc mpc83xx mpc8349emds
 
+#######################################################################
 #
+## MPC8360 Systems
+#######################################################################
 ##
+MPC8360EPB_config \
+MPC8360EPB_HOST_33_config \
+MPC8360EPB_HOST_66_config \
+MPC8360EPB_SLAVE_config:	unconfig
+	@echo "" >include/config.h ; \
+	if [ "$(findstring _HOST_,$@)" ] ; then \
+		echo -n "... PCI HOST " ; \
+		echo "#define CONFIG_PCI" >>include/config.h ; \
+	fi ; \
+	if [ "$(findstring _SLAVE_,$@)" ] ; then \
+		echo "...PCI SLAVE 66M"  ; \
+		echo "#define CONFIG_PCI" >>include/config.h ; \
+		echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
+	fi ; \
+	if [ "$(findstring _33_,$@)" ] ; then \
+		echo -n "...33M ..." ; \
+		echo "#define PCI_33M" >>include/config.h ; \
+	fi ; \
+	if [ "$(findstring _66_,$@)" ] ; then \
+		echo -n "...66M..." ; \
+		echo "#define PCI_66M" >>include/config.h ; \
+	fi ;
+	@./mkconfig -a MPC8360EPB ppc mpc83xx mpc8360epb
+
 
Quoted 3 lines

########################################################################
#
## MPC85xx Systems

</snip>

Your U-Boot support team