Skip to contentSkip to conversation

Add support for the MPC8349E-mITX-GP

PATCH New OTRS Notification Master 2 participants 2 messages Jan 17, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support for the MPC8349E-mITX-GP

Hello list,

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

<snip>

Quoted 90 lines

From: Timur Tabi <[email protected]>

Add support for the MPC8349E-mITX-GP, a stripped-down version of the MPC8349E-mITX.

---
 MAINTAINERS                   |    1 +
 Makefile                      |   16 ++-
 board/mpc8349itx/config.mk    |    6 +-
 board/mpc8349itx/mpc8349itx.c |  105 ++--------
 include/configs/MPC8349ITX.h  |  463
++++++++++++++++-------------------------
 include/mpc83xx.h             |   41 ++++
 6 files changed, 264 insertions(+), 368 deletions(-)
MAINTAINERS +1 -0
index ce20def..e65699f 100644
@@ -347,6 +347,7 @@ John Zhan <[email protected]>
 Timur Tabi <[email protected]>
 
 	MPC8349E-mITX		MPC8349
+	MPC8349E-mITX-GP	MPC8349
 
 Kim Phillips <[email protected]>
 
Makefile +14 -2
index 1dbdf4d..10d961f 100644
@@ -1624,8 +1624,20 @@ MPC8360EMDS_SLAVE_config:	unconfig
 	fi ;
 	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
 
-MPC8349ITX_config:	unconfig
-	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349itx
+MPC8349ITX_config \
+MPC8349ITX_LOWBOOT_config \
+MPC8349ITXGP_config:	unconfig
+	@mkdir -p $(obj)include
+	@mkdir -p $(obj)board/mpc8349itx
+	@CTYPE=$(subst MPC,,$(@:_config=)); \
+	echo "#define CONFIG_MPC$${CTYPE}" >> $(obj)include/config.h
+	@if [ "$(findstring GP,$@)" ] ; then \
+		echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
+	fi
+	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
+		echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
+	fi
+	@$(MKCONFIG) -a MPC8349ITX ppc mpc83xx mpc8349itx
 
 #########################################################################
 ## MPC85xx Systems
board/mpc8349itx/config.mk +5 -1
index 2e11311..1901fdc 100644
@@ -21,10 +21,14 @@
 #
 
 #
-# MPC8349ITX
+# MPC8349E-mITX and MPC8349E-mITX-GP
 #
 
+sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
+
+ifndef TEXT_BASE
 TEXT_BASE  =   0xFEF00000
+endif
 
 ifneq ($(OBJTREE),$(SRCTREE))
 # We are building u-boot in a separate directory, use generated
board/mpc8349itx/mpc8349itx.c +0 -6
index 4838e70..aefdaf7 100644
@@ -134,88 +134,6 @@ volatile static struct pci_controller ho
 };
 #endif				/* CONFIG_PCI */
 
-/* If MPC8349E-mITX is soldered with SDRAM, then initialize it. */
-
-void sdram_init(void)
-{
-	volatile immap_t *immap = (immap_t *) CFG_IMMR;
-	volatile lbus83xx_t *lbc = &immap->lbus;

board/mpc8349itx/mpc8349itx.c volatile static struct pci_controller ho · line 152

Quoted 10 lines
board/mpc8349itx/mpc8349itx.c +0 -10
-
-#if defined(CFG_BR2_PRELIM) \
-	&& defined(CFG_OR2_PRELIM) \
-	&& defined(CFG_LBLAWBAR2_PRELIM) \
-	&& defined(CFG_LBLAWAR2_PRELIM) \
-	&& !defined(CONFIG_COMPACT_FLASH)
-
-	uint *sdram_addr = (uint *) CFG_LBC_SDRAM_BASE;
-
-	puts("\n   SDRAM on Local Bus: ");

</snip>

Your U-Boot support team

#1 lore raw

PATCH 1/1 Add support for the MPC8349E-mITX-GP

Quoted 10 lines · OTRS Notification Master

Hello list,

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

<snip>

Quoted 4 lines

From: Timur Tabi <[email protected]>

Add support for the MPC8349E-mITX-GP, a stripped-down version of the MPC8349E-mITX.

FYI, this patch was created on top of my other patch titled, " Add support for generating assembly listing files", so you may need to apply that patch before this one applies cleanly.

Signature · 2 lines
Timur Tabi
Linux Kernel Developer @ Freescale