Skip to contentSkip to conversation

mpc83xx: Add support for MPC8349 esd caddy2

PATCH New Stefan Roese 2 participants 2 messages Dec 8, 2009 – Jan 8, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpc83xx: Add support for MPC8349 esd caddy2

From: Reinhard Arlt <[email protected]>

The caddy2 is a variant of the already supported vme8349. So we just add the differences to this board port. To better support those two boards we switched from fixed SDRAM configuration to usage of spd_sdram(). This is done by providing a board specific SPD EEPROM routine with different values for both boards.

---
 MAINTAINERS                 |    1 +
 MAKEALL                     |    1 +
 Makefile                    |    8 ++-
 board/esd/vme8349/vme8349.c |  200 ++++++++++++++++++++++++++++++------------
 include/configs/vme8349.h   |   90 +++++++++++---------
 5 files changed, 201 insertions(+), 99 deletions(-)
MAINTAINERS +1 -0
index 9734b1d..48db504 100644
@@ -36,6 +36,7 @@ Reinhard Arlt <[email protected]>
 	mecp5200	MPC5200
 	pf5200		MPC5200
 
+	caddy2		MPC8349
 	vme8349		MPC8349
 
 	CPCI750		PPC750FX/GX
MAKEALL +1 -0
index ab1bb6f..140d512 100755
@@ -358,6 +358,7 @@ LIST_8260="		\
 #########################################################################
 
 LIST_83xx="		\
+	caddy2		\
 	kmeter1		\
 	MPC8313ERDB_33	\
 	MPC8313ERDB_NAND_66	\
Makefile +7 -1
index 75b2c1e..04608e0 100644
@@ -2429,8 +2429,14 @@ SIMPC8313_SP_config: unconfig
 TQM834x_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
 
+caddy2_config \
 vme8349_config:		unconfig
-	@$(MKCONFIG) $(@:_config=) ppc mpc83xx vme8349 esd
+	@mkdir -p $(obj)include
+	@if [ "$(findstring caddy2,$@)" ] ; then \
+		$(XECHO) -n "...for VME-Caddy/2..." ; \
+		echo "#define VME_CADDY2" >> $(obj)include/config.h ; \
+	fi ;
+	@$(MKCONFIG) -a vme8349 ppc mpc83xx vme8349 esd
 
 #########################################################################
 ## MPC85xx Systems
board/esd/vme8349/vme8349.c +143 -57

233 lines not on this page · raw message

include/configs/vme8349.h +49 -41

173 lines not on this page · raw message

Signature · 1 line
1.6.6.rc1
Applied
#1 lore raw

PATCH 1/1 mpc83xx: Add support for MPC8349 esd caddy2

Quoted 8 lines · On Tue, 8 Dec 2009 09:13:08 +0100 Stefan Roese <[email protected]> wrote:

From: Reinhard Arlt <[email protected]>

The caddy2 is a variant of the already supported vme8349. So we just add the differences to this board port. To better support those two boards we switched from fixed SDRAM configuration to usage of spd_sdram(). This is done by providing a board specific SPD EEPROM routine with different values for both boards.

Quoted 4 lines

---

applied, with the below fixes merged into the same commit.

Thanks,

Kim