Merge branch 'tx48-devel' into karo-devel
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 26 Oct 2015 13:46:20 +0000 (14:46 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 26 Oct 2015 13:46:20 +0000 (14:46 +0100)
18 files changed:
board/karo/tx28/Kconfig
board/karo/tx28/tx28.c
board/karo/tx48/tx48.c
board/karo/tx51/tx51.c
board/karo/tx53/tx53.c
board/karo/tx6/tx6qdl.c
board/karo/tx6/tx6ul.c
board/karo/txa5/txa5.c
configs/tx28-40x1_defconfig
configs/tx28-40x1_noenv_defconfig
configs/tx28-40x2_defconfig
configs/tx28-40x2_noenv_defconfig
configs/tx28-40x3_defconfig
configs/tx28-40x3_noenv_defconfig
configs/tx28-41x0_defconfig
configs/tx28-41x0_noenv_defconfig
include/configs/tx51.h
tools/elftosb/makefile.rules

index aad93e6..c09dea7 100644 (file)
@@ -22,6 +22,7 @@ config TX28
        select APBH_DMA_BURST8
        select CC_OPTIMIZE_LIBS_FOR_SPEED
        select CMD_NAND_TRIMFFS if CMD_NAND
+       select CMD_ROMUPDATE
        select FDT_FIXUP_PARTITIONS
        select GET_FEC_MAC_ADDR_FROM_IIM if FEC_MXC
        select LIB_RAND
@@ -32,6 +33,7 @@ config TX28
        select NAND_MXS
        select OF_BOARD_SETUP
        select OF_LIBFDT
+       select PHYLIB
        select SYS_NAND_USE_FLASH_BBT
 
 config TARGET_TX28_40X2
index 9a60d29..f9cb02d 100644 (file)
@@ -1013,7 +1013,6 @@ int ft_board_setup(void *blob, bd_t *bd)
                karo_fdt_enable_node(blob, "stk5led", 0);
 
        fdt_fixup_mtdparts(blob, tx28_nand_nodes, ARRAY_SIZE(tx28_nand_nodes));
-       fdt_fixup_ethernet(blob);
 
        karo_fdt_fixup_touchpanel(blob, tx28_touchpanels,
                                ARRAY_SIZE(tx28_touchpanels));
index 028cfa8..e89dda8 100644 (file)
@@ -912,7 +912,6 @@ int ft_board_setup(void *blob, bd_t *bd)
                return ret;
        }
        fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
-       fdt_fixup_ethernet(blob);
 
        karo_fdt_fixup_touchpanel(blob, tx48_touchpanels,
                                ARRAY_SIZE(tx48_touchpanels));
index dc8204d..586663c 100644 (file)
@@ -1129,7 +1129,6 @@ int ft_board_setup(void *blob, bd_t *bd)
                return ret;
        }
        fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
-       fdt_fixup_ethernet(blob);
 
        karo_fdt_fixup_touchpanel(blob, tx51_touchpanels,
                                ARRAY_SIZE(tx51_touchpanels));
index 8d0c647..082d2bd 100644 (file)
@@ -1447,7 +1447,6 @@ int ft_board_setup(void *blob, bd_t *bd)
                karo_fdt_enable_node(blob, "stk5led", 0);
 
        fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
-       fdt_fixup_ethernet(blob);
 
        karo_fdt_fixup_touchpanel(blob, tx53_touchpanels,
                                ARRAY_SIZE(tx53_touchpanels));
index 06f9fe3..382c986 100644 (file)
@@ -1487,7 +1487,6 @@ int ft_board_setup(void *blob, bd_t *bd)
                karo_fdt_enable_node(blob, "stk5led", 0);
 
        fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
-       fdt_fixup_ethernet(blob);
 
        karo_fdt_fixup_touchpanel(blob, tx6_touchpanels,
                                ARRAY_SIZE(tx6_touchpanels));
index a433c14..54368f4 100644 (file)
@@ -1402,7 +1402,6 @@ int ft_board_setup(void *blob, bd_t *bd)
                karo_fdt_enable_node(blob, "stk5led", 0);
 
        fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
-       fdt_fixup_ethernet(blob);
 
        karo_fdt_fixup_touchpanel(blob, tx6_touchpanels,
                                ARRAY_SIZE(tx6_touchpanels));
index dd5ba89..147f2e0 100644 (file)
@@ -871,7 +871,6 @@ int ft_board_setup(void *blob, bd_t *bd)
                karo_fdt_enable_node(blob, "stk5led", 0);
 
        fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
-       fdt_fixup_ethernet(blob);
 
        karo_fdt_fixup_touchpanel(blob, txa5_touchpanels,
                                ARRAY_SIZE(txa5_touchpanels));
index 451f207..d7d24e5 100644 (file)
@@ -20,7 +20,6 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
 CONFIG_CMD_PING=y
-CONFIG_CMD_ROMUPDATE=y
 CONFIG_CMD_TIME=y
 CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_NAND=y
index f268650..d82c1e6 100644 (file)
@@ -19,7 +19,6 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
 CONFIG_CMD_PING=y
-CONFIG_CMD_ROMUPDATE=y
 CONFIG_CMD_TIME=y
 CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_NAND=y
index b82bfd9..d0dd8e4 100644 (file)
@@ -20,7 +20,6 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
 CONFIG_CMD_PING=y
-CONFIG_CMD_ROMUPDATE=y
 CONFIG_CMD_TIME=y
 CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_NAND=y
index deef2c9..ad8aa74 100644 (file)
@@ -19,7 +19,6 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
 CONFIG_CMD_PING=y
-CONFIG_CMD_ROMUPDATE=y
 CONFIG_CMD_TIME=y
 CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_NAND=y
index da4e132..c2eb455 100644 (file)
@@ -20,7 +20,6 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
 CONFIG_CMD_PING=y
-CONFIG_CMD_ROMUPDATE=y
 CONFIG_CMD_TIME=y
 CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_NAND=y
index d4c293a..220eda9 100644 (file)
@@ -19,7 +19,6 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
 CONFIG_CMD_PING=y
-CONFIG_CMD_ROMUPDATE=y
 CONFIG_CMD_TIME=y
 CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_NAND=y
index 118a6e0..75e5944 100644 (file)
@@ -20,7 +20,6 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
 CONFIG_CMD_PING=y
-CONFIG_CMD_ROMUPDATE=y
 CONFIG_CMD_TIME=y
 CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_NAND=y
index 3dc0765..7d03d96 100644 (file)
@@ -19,7 +19,6 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
 CONFIG_CMD_PING=y
-CONFIG_CMD_ROMUPDATE=y
 CONFIG_CMD_TIME=y
 CONFIG_DOS_PARTITION=y
 CONFIG_ENV_IS_IN_NAND=y
index ce82714..624343f 100644 (file)
        "mtdids=" MTDIDS_DEFAULT "\0"                                   \
        "mtdparts=" MTDPARTS_DEFAULT "\0"
 #else
-#define CONFIG_SYS_CPU_CLK_STR         xstr(CONFIG_SYS_MPU_CLK)
+#define CONFIG_SYS_CPU_CLK_STR         xstr(CONFIG_SYS_CPU_CLK)
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "autostart=no\0"                                                \
index e3e009d..3fe2730 100644 (file)
@@ -15,6 +15,8 @@
 # UNAMES is going to be set to either "Linux" or "CYGWIN_NT-5.1"
 UNAMES = $(shell uname -s)
 
+CXX ?= g++
+
 #*******************************************************************************
 #                               Directories
 
@@ -22,93 +24,93 @@ UNAMES = $(shell uname -s)
 #                               Paths
 
 # search path for source files. make finds them automatically.
-VPATH = \
-       ${SRC_DIR}/common       \
-       ${SRC_DIR}/elftosb2 \
-       ${SRC_DIR}/sbtool       \
+VPATH =                                                \
+       ${SRC_DIR}/common                       \
+       ${SRC_DIR}/elftosb2                     \
+       ${SRC_DIR}/sbtool                       \
        ${SRC_DIR}/keygen
 
 # include directories
-INC_PATH =                      \
-    -I${SRC_DIR}/elftosb2        \
-    -I${SRC_DIR}/keygen   \
-    -I${SRC_DIR}/sbtool      \
-       -I${SRC_DIR}/common
+INC_PATH =                                     \
+    -I${SRC_DIR}/elftosb2                      \
+    -I${SRC_DIR}/keygen                                \
+    -I${SRC_DIR}/sbtool                                \
+    -I${SRC_DIR}/common
 
 #*******************************************************************************
 #                               Build flags
-# gcc Compiler flags
+# Compiler flags
 #    -g                                                : Produce debugging information.
 
-CFLAGS     = -g $(INC_PATH) -D${UNAMES}
+CXXFLAGS       = -g $(INC_PATH) -D${UNAMES}
 
 #*******************************************************************************
 #                               File lists
 
-OBJ_FILES_COMMON =                     \
-       AESKey.o        \
-       Blob.o  \
-       crc.o   \
-       DataSource.o    \
-       DataTarget.o    \
-       ELFSourceFile.o \
-       EncoreBootImage.o       \
-       EvalContext.o   \
-       GHSSecInfo.o    \
-       GlobMatcher.o   \
-       HexValues.o \
-       Logging.o       \
-       Operation.o \
-       OptionDictionary.o      \
-       options.o       \
-       OutputSection.o \
-       Random.o        \
-       RijndaelCBCMAC.o        \
-       rijndael.o      \
-       SHA1.o  \
-       SourceFile.o    \
-       SRecordSourceFile.o \
-       stdafx.o        \
-       StELFFile.o \
-       StExecutableImage.o \
-       StSRecordFile.o \
-       Value.o \
-       Version.o \
-       format_string.o \
-       ExcludesListMatcher.o \
-       SearchPath.o    \
-       DataSourceImager.o \
+OBJ_FILES_COMMON =                             \
+       AESKey.o                                \
+       Blob.o                                  \
+       crc.o                                   \
+       DataSource.o                            \
+       DataTarget.o                            \
+       ELFSourceFile.o                         \
+       EncoreBootImage.o                       \
+       EvalContext.o                           \
+       GHSSecInfo.o                            \
+       GlobMatcher.o                           \
+       HexValues.o                             \
+       Logging.o                               \
+       Operation.o                             \
+       OptionDictionary.o                      \
+       options.o                               \
+       OutputSection.o                         \
+       Random.o                                \
+       RijndaelCBCMAC.o                        \
+       rijndael.o                              \
+       SHA1.o                                  \
+       SourceFile.o                            \
+       SRecordSourceFile.o                     \
+       stdafx.o                                \
+       StELFFile.o                             \
+       StExecutableImage.o                     \
+       StSRecordFile.o                         \
+       Value.o                                 \
+       Version.o                               \
+       format_string.o                         \
+       ExcludesListMatcher.o                   \
+       SearchPath.o                            \
+       DataSourceImager.o                      \
        IVTDataSource.o
 
-OBJ_FILES_ELFTOSB2 =           \
-       ${OBJ_FILES_COMMON} \
-       BootImageGenerator.o    \
-       ConversionController.o  \
-       ElftosbAST.o    \
-       elftosb.o       \
-       elftosb_lexer.o \
-       ElftosbLexer.o  \
-       elftosb_parser.tab.o    \
+OBJ_FILES_ELFTOSB2 =                           \
+       ${OBJ_FILES_COMMON}                     \
+       BootImageGenerator.o                    \
+       ConversionController.o                  \
+       ElftosbAST.o                            \
+       elftosb.o                               \
+       elftosb_lexer.o                         \
+       ElftosbLexer.o                          \
+       elftosb_parser.tab.o                    \
        EncoreBootImageGenerator.o
 
-OBJ_FILES_SBTOOL =                     \
-       ${OBJ_FILES_COMMON} \
-       EncoreBootImageReader.o \
+OBJ_FILES_SBTOOL =                             \
+       ${OBJ_FILES_COMMON}                     \
+       EncoreBootImageReader.o                 \
        sbtool.o
 
-OBJ_FILES_KEYGEN =                     \
-       ${OBJ_FILES_COMMON} \
+OBJ_FILES_KEYGEN =                             \
+       ${OBJ_FILES_COMMON}                     \
        keygen.o
 
 
-LIBS =     -lstdc++
+LIBS = -lstdc++
 
 
 ifeq ("${UNAMES}", "Linux")
 EXEC_FILE_ELFTOSB2 = elftosb
 EXEC_FILE_SBTOOL = sbtool
 EXEC_FILE_KEYGEN = keygen
-else 
+else
 ifeq ("${UNAMES}", "CYGWIN_NT-5.1")
 EXEC_FILE_ELFTOSB2 = elftosb.exe
 EXEC_FILE_SBTOOL = sbtool.exe
@@ -137,13 +139,13 @@ clean:
                ${EXEC_FILE_ELFTOSB2} ${EXEC_FILE_SBTOOL} ${EXEC_FILE_KEYGEN}
 
 elftosb: ${OBJ_FILES_ELFTOSB2}
-       gcc ${OBJ_FILES_ELFTOSB2} ${LIBS} -o ${EXEC_FILE_ELFTOSB2}
+       $(CXX) ${OBJ_FILES_ELFTOSB2} ${LIBS} -o ${EXEC_FILE_ELFTOSB2}
 
 sbtool: ${OBJ_FILES_SBTOOL}
-       gcc ${OBJ_FILES_SBTOOL} ${LIBS} -o ${EXEC_FILE_SBTOOL}
+       $(CXX) ${OBJ_FILES_SBTOOL} ${LIBS} -o ${EXEC_FILE_SBTOOL}
 
 keygen: ${OBJ_FILES_KEYGEN}
-       gcc ${OBJ_FILES_KEYGEN} ${LIBS} -o ${EXEC_FILE_KEYGEN}
+       $(CXX) ${OBJ_FILES_KEYGEN} ${LIBS} -o ${EXEC_FILE_KEYGEN}
 
 
 #ifeq ("${UNAMES}", "Linux")
@@ -152,10 +154,10 @@ keygen: ${OBJ_FILES_KEYGEN}
 .SUFFIXES : .c .cpp .o .h
 
 .c.o:
-       gcc ${CFLAGS} -c $<
+       $(CC) ${CXXFLAGS} -c $<
 
 .cpp.o:
-       gcc ${CFLAGS} -c $<
+       $(CXX) ${CXXFLAGS} -c $<
 
 #endif
 
@@ -164,13 +166,13 @@ keygen: ${OBJ_FILES_KEYGEN}
 
 %.d: %.c
        @set -e; \
-       $(CC) -MM $(CFLAGS) $< | \
+       $(CC) -MM $(CXXFLAGS) $< | \
        sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
        [ -s $@ ]  || rm -f $@
 
 %.d: %.cpp
        @set -e; \
-       $(CC) -MM $(CFLAGS) $< | \
+       $(CC) -MM $(CXXFLAGS) $< | \
        sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
        [ -s $@ ]  || rm -f $@