]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MPC85xx: TQM8548: add support for the TQM8548_BE module
authorWolfgang Grandegger <wg@grandegger.com>
Wed, 11 Feb 2009 17:38:21 +0000 (18:38 +0100)
committerAndy Fleming <afleming@freescale.com>
Tue, 17 Feb 2009 00:05:59 +0000 (18:05 -0600)
The TQM8548_BE is a variant of the TQM8548 module with NAND and CAN
interface. With NAND support, the image is significantly larger and
TEXT_BASE is adjusted accordingly. U-Boot can be built for this
module with "$ make TQM8548_BE_config".

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
MAKEALL
Makefile
board/tqc/tqm85xx/config.mk
include/configs/TQM85xx.h

diff --git a/MAKEALL b/MAKEALL
index cf05133d197c7c76be224d045ceaaa61450c1c6b..f3d48ce9ebd4f50f95be15296496f4cc9a03fbf0 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -387,6 +387,7 @@ LIST_85xx="         \
        TQM8540         \
        TQM8541         \
        TQM8548         \
+       TQM8548_BE      \
        TQM8555         \
        TQM8560         \
        XPEDITE5200     \
index 787c5f24bced341a2eff1189c90acab4c2802bab..4e96ef67d0ca59d474d6427e028c9578ec3c059e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2479,16 +2479,19 @@ stxssa_4M_config:       unconfig
 TQM8540_config         \
 TQM8541_config         \
 TQM8548_config         \
+TQM8548_BE_config      \
 TQM8555_config         \
 TQM8560_config:                unconfig
        @mkdir -p $(obj)include
-       @CTYPE=$(subst TQM,,$(@:_config=)); \
-       $(XECHO) "... TQM"$${CTYPE}; \
+       @BTYPE=$(@:_config=); \
+       CTYPE=$(subst TQM,,$(subst _BE,,$(@:_config=))); \
+       $(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
        echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
-       echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
+       echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
        echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
-       echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
+       echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
        @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
+       @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
 
 XPEDITE5200_config:    unconfig
        @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
index 52e84ad77231b4f3589c9d9b89f2b9c753e6ae52..37b7b234ae679830fc33c576803946bfa8de6f1b 100644 (file)
@@ -23,7 +23,9 @@
 
 #
 # tqm85xx board
-# default CCARBAR is at 0xff700000
-# assume U-Boot is less than 256k
 #
+ifeq ($(CONFIG_TQM8548_BE),y)
+TEXT_BASE = 0xfff80000
+else
 TEXT_BASE = 0xfffc0000
+endif
index cca8255a302b9b6f98c78ad4ad92625e9946f06c..6a48d8f7d91947993a52ed61eaa8babe51156221 100644 (file)
 #define CONFIG_E500            1       /* BOOKE e500 family            */
 #define CONFIG_MPC85xx         1       /* MPC8540/60/55/41             */
 
+#if defined(CONFIG_TQM8548_BE)
+#define CONFIG_TQM8548
+#endif
+
 #define CONFIG_PCI
 #define CONFIG_PCI1                    /* PCI/PCI-X controller         */
 #ifdef CONFIG_TQM8548
@@ -71,7 +75,9 @@
  * Warning: NAND support will likely increase the U-Boot image size
  * to more than 256 KB. Please adjust TEXT_BASE if necessary.
  */
-#undef CONFIG_NAND
+#ifdef CONFIG_TQM8548_BE
+#define CONFIG_NAND
+#endif
 
 /*
  * MPC8540 and MPC8548 don't have CPM module
@@ -82,7 +88,9 @@
 
 #define CONFIG_FSL_LAW         1       /* Use common FSL init code     */
 
-#undef CONFIG_CAN_DRIVER               /* CAN Driver support           */
+#ifdef CONFIG_TQM8548_BE
+#define        CONFIG_CAN_DRIVER               /* CAN Driver support           */
+#endif
 
 /*
  * sysclk for MPC85xx