summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea5985d)
raw | patch | inline | side by side (parent: ea5985d)
author | Ivan Pang <i-pang@ti.com> | |
Mon, 30 May 2016 23:17:06 +0000 (18:17 -0500) | ||
committer | Ivan Pang <i-pang@ti.com> | |
Mon, 30 May 2016 23:17:06 +0000 (18:17 -0500) |
Signed-off-by: Ivan Pang <i-pang@ti.com>
31 files changed:
diff --git a/post/evmk2e/build/makefile b/post/evmk2e/build/makefile
--- /dev/null
@@ -0,0 +1,157 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+
+CG_TOOL_ROOT = $(C6X_GEN_INSTALL_PATH)
+
+ORDERED_OBJS += \
+"./src/c6678.obj" \
+"./src/cpdma.obj" \
+"./src/gmacsl.obj" \
+"./src/pa.obj" \
+"./src/post.obj" \
+"./src/psc.obj" \
+"./src/qm.obj" \
+"../post.cmd" \
+$(GEN_CMDS__FLAG) \
+-l"ti.platform.evmk2e.lite.lib" \
+-l"ti.csl.ae66" \
+-l"libc.a" \
+
+-include ../makefile.init
+
+RM = rm -f
+RMDIR = rm -rf
+MKDIR = mkdir -p
+
+# All of the sources participating in the build are defined here
+-include sources.mk
+-include subdir_vars.mk
+-include src/subdir_vars.mk
+-include subdir_rules.mk
+-include src/subdir_rules.mk
+-include objects.mk
+
+ifneq ($(MAKECMDGOALS),clean)
+ifneq ($(strip $(S_DEPS)),)
+-include $(S_DEPS)
+endif
+ifneq ($(strip $(S_UPPER_DEPS)),)
+-include $(S_UPPER_DEPS)
+endif
+ifneq ($(strip $(S62_DEPS)),)
+-include $(S62_DEPS)
+endif
+ifneq ($(strip $(C64_DEPS)),)
+-include $(C64_DEPS)
+endif
+ifneq ($(strip $(ASM_DEPS)),)
+-include $(ASM_DEPS)
+endif
+ifneq ($(strip $(CC_DEPS)),)
+-include $(CC_DEPS)
+endif
+ifneq ($(strip $(S55_DEPS)),)
+-include $(S55_DEPS)
+endif
+ifneq ($(strip $(C67_DEPS)),)
+-include $(C67_DEPS)
+endif
+ifneq ($(strip $(CLA_DEPS)),)
+-include $(CLA_DEPS)
+endif
+ifneq ($(strip $(C??_DEPS)),)
+-include $(C??_DEPS)
+endif
+ifneq ($(strip $(CPP_DEPS)),)
+-include $(CPP_DEPS)
+endif
+ifneq ($(strip $(S??_DEPS)),)
+-include $(S??_DEPS)
+endif
+ifneq ($(strip $(C_DEPS)),)
+-include $(C_DEPS)
+endif
+ifneq ($(strip $(C62_DEPS)),)
+-include $(C62_DEPS)
+endif
+ifneq ($(strip $(CXX_DEPS)),)
+-include $(CXX_DEPS)
+endif
+ifneq ($(strip $(C++_DEPS)),)
+-include $(C++_DEPS)
+endif
+ifneq ($(strip $(ASM_UPPER_DEPS)),)
+-include $(ASM_UPPER_DEPS)
+endif
+ifneq ($(strip $(K_DEPS)),)
+-include $(K_DEPS)
+endif
+ifneq ($(strip $(C43_DEPS)),)
+-include $(C43_DEPS)
+endif
+ifneq ($(strip $(INO_DEPS)),)
+-include $(INO_DEPS)
+endif
+ifneq ($(strip $(S67_DEPS)),)
+-include $(S67_DEPS)
+endif
+ifneq ($(strip $(SA_DEPS)),)
+-include $(SA_DEPS)
+endif
+ifneq ($(strip $(S43_DEPS)),)
+-include $(S43_DEPS)
+endif
+ifneq ($(strip $(OPT_DEPS)),)
+-include $(OPT_DEPS)
+endif
+ifneq ($(strip $(PDE_DEPS)),)
+-include $(PDE_DEPS)
+endif
+ifneq ($(strip $(S64_DEPS)),)
+-include $(S64_DEPS)
+endif
+ifneq ($(strip $(C_UPPER_DEPS)),)
+-include $(C_UPPER_DEPS)
+endif
+ifneq ($(strip $(C55_DEPS)),)
+-include $(C55_DEPS)
+endif
+endif
+
+-include ../makefile.defs
+
+# Add inputs and outputs from these tool invocations to the build variables
+EXE_OUTPUTS += \
+../bin/post_evmk2e.out \
+
+EXE_OUTPUTS__QUOTED += \
+"../bin/post_evmk2e.out" \
+
+
+# All Target
+all: ../bin/post_evmk2e.out
+
+# Tool invocations
+../bin/post_evmk2e.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: C6000 Linker'
+ @$(MKDIR) ../bin
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --define=SOC_K2E --display_error_number --diag_warning=225 -z -m"../bin/post_evmk2e.map" -i"$(CG_TOOL_ROOT)/lib" -i"$(CG_TOOL_ROOT)/include" -i"$(PDK_INSTALL_PATH)/ti/platform/evmk2e/platform_lib/lib/debug" -i"$(PDK_INSTALL_PATH)/ti/csl/lib/k2e/c66/release" --reread_libs --warn_sections --xml_link_info="../bin/post_evmk2e_linkInfo.xml" --rom_model -o "../bin/post_evmk2e.out" $(ORDERED_OBJS)
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+# Other Targets
+clean:
+ -$(RM) $(EXE_OUTPUTS__QUOTED)
+ -$(RM) "src/c6678.pp" "src/cpdma.pp" "src/gmacsl.pp" "src/pa.pp" "src/post.pp" "src/psc.pp" "src/qm.pp"
+ -$(RM) "src/c6678.obj" "src/cpdma.obj" "src/gmacsl.obj" "src/pa.obj" "src/post.obj" "src/psc.obj" "src/qm.obj"
+ -@echo 'Finished clean'
+ -@echo ' '
+
+.PHONY: all clean dependents
+.SECONDARY:
+
+-include ../makefile.targets
+
diff --git a/post/evmk2e/build/objects.mk b/post/evmk2e/build/objects.mk
--- /dev/null
@@ -0,0 +1,8 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+USER_OBJS :=
+
+LIBS := -l"ti.platform.evmk2e.lite.lib" -l"libc.a"
+
diff --git a/post/evmk2e/build/sources.mk b/post/evmk2e/build/sources.mk
--- /dev/null
@@ -0,0 +1,108 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+O_SRCS :=
+CPP_SRCS :=
+K_SRCS :=
+LD_SRCS :=
+S67_SRCS :=
+LDS_SRCS :=
+CMD_SRCS :=
+CXX_SRCS :=
+CMD_UPPER_SRCS :=
+C43_SRCS :=
+S55_SRCS :=
+LD_UPPER_SRCS :=
+C62_SRCS :=
+S_UPPER_SRCS :=
+A_SRCS :=
+SA_SRCS :=
+C55_SRCS :=
+LDS_UPPER_SRCS :=
+C_UPPER_SRCS :=
+INO_SRCS :=
+OBJ_SRCS :=
+S62_SRCS :=
+LIB_SRCS :=
+PDE_SRCS :=
+ASM_SRCS :=
+ASM_UPPER_SRCS :=
+C++_SRCS :=
+CLA_SRCS :=
+S??_SRCS :=
+C_SRCS :=
+C67_SRCS :=
+S_SRCS :=
+S43_SRCS :=
+OPT_SRCS :=
+C64_SRCS :=
+CC_SRCS :=
+C??_SRCS :=
+S64_SRCS :=
+OBJS :=
+S_DEPS :=
+S_UPPER_DEPS :=
+S62_DEPS :=
+C64_DEPS :=
+ASM_DEPS :=
+CC_DEPS :=
+S55_DEPS :=
+C67_DEPS :=
+CLA_DEPS :=
+C??_DEPS :=
+CPP_DEPS :=
+S??_DEPS :=
+C_DEPS :=
+C62_DEPS :=
+EXE_OUTPUTS :=
+CXX_DEPS :=
+C++_DEPS :=
+ASM_UPPER_DEPS :=
+K_DEPS :=
+C43_DEPS :=
+INO_DEPS :=
+S67_DEPS :=
+SA_DEPS :=
+S43_DEPS :=
+OPT_DEPS :=
+PDE_DEPS :=
+S64_DEPS :=
+C_UPPER_DEPS :=
+C55_DEPS :=
+CPP_DEPS__QUOTED :=
+C67_DEPS__QUOTED :=
+INO_DEPS__QUOTED :=
+C??_DEPS__QUOTED :=
+S_UPPER_DEPS__QUOTED :=
+CLA_DEPS__QUOTED :=
+ASM_UPPER_DEPS__QUOTED :=
+C62_DEPS__QUOTED :=
+CXX_DEPS__QUOTED :=
+EXE_OUTPUTS__QUOTED :=
+S67_DEPS__QUOTED :=
+C_DEPS__QUOTED :=
+C_UPPER_DEPS__QUOTED :=
+OPT_DEPS__QUOTED :=
+S_DEPS__QUOTED :=
+K_DEPS__QUOTED :=
+S??_DEPS__QUOTED :=
+C64_DEPS__QUOTED :=
+C++_DEPS__QUOTED :=
+OBJS__QUOTED :=
+CC_DEPS__QUOTED :=
+S43_DEPS__QUOTED :=
+S55_DEPS__QUOTED :=
+SA_DEPS__QUOTED :=
+C55_DEPS__QUOTED :=
+PDE_DEPS__QUOTED :=
+C43_DEPS__QUOTED :=
+S62_DEPS__QUOTED :=
+ASM_DEPS__QUOTED :=
+S64_DEPS__QUOTED :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+. \
+src \
+
diff --git a/post/evmk2e/build/src/subdir_rules.mk b/post/evmk2e/build/src/subdir_rules.mk
--- /dev/null
@@ -0,0 +1,55 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Each subdirectory must supply rules for building sources it contributes
+src/c6678.obj: ../../../post/src/c6678.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2E --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/c6678.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/cpdma.obj: ../../../post/src/cpdma.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2E --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/cpdma.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/gmacsl.obj: ../../../post/src/gmacsl.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2E --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/gmacsl.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/pa.obj: ../../../post/src/pa.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2E --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/pa.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/post.obj: ../../../post/src/post.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2E --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/post.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/psc.obj: ../../../post/src/psc.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2E --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/psc.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/qm.obj: ../../../post/src/qm.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2E --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/qm.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
diff --git a/post/evmk2e/build/src/subdir_vars.mk b/post/evmk2e/build/src/subdir_vars.mk
--- /dev/null
@@ -0,0 +1,60 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+C_SRCS += \
+../../../post/src/c6678.c \
+../../../post/src/cpdma.c \
+../../../post/src/gmacsl.c \
+../../../post/src/pa.c \
+../../../post/src/post.c \
+../../../post/src/psc.c \
+../../../post/src/qm.c
+
+OBJS += \
+./src/c6678.obj \
+./src/cpdma.obj \
+./src/gmacsl.obj \
+./src/pa.obj \
+./src/post.obj \
+./src/psc.obj \
+./src/qm.obj
+
+C_DEPS += \
+./src/c6678.pp \
+./src/cpdma.pp \
+./src/gmacsl.pp \
+./src/pa.pp \
+./src/post.pp \
+./src/psc.pp \
+./src/qm.pp
+
+C_DEPS__QUOTED += \
+"src/c6678.pp" \
+"src/cpdma.pp" \
+"src/gmacsl.pp" \
+"src/pa.pp" \
+"src/post.pp" \
+"src/psc.pp" \
+"src/qm.pp"
+
+OBJS__QUOTED += \
+"src/c6678.obj" \
+"src/cpdma.obj" \
+"src/gmacsl.obj" \
+"src/pa.obj" \
+"src/post.obj" \
+"src/psc.obj" \
+"src/qm.obj"
+
+C_SRCS__QUOTED += \
+"../../../post/src/c6678.c" \
+"../../../post/src/cpdma.c" \
+"../../../post/src/gmacsl.c" \
+"../../../post/src/pa.c" \
+"../../../post/src/post.c" \
+"../../../post/src/psc.c" \
+"../../../post/src/qm.c"
+
+
diff --git a/post/evmk2e/build/subdir_rules.mk b/post/evmk2e/build/subdir_rules.mk
--- /dev/null
@@ -0,0 +1,6 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Each subdirectory must supply rules for building sources it contributes
+
diff --git a/post/evmk2e/build/subdir_vars.mk b/post/evmk2e/build/subdir_vars.mk
--- /dev/null
@@ -0,0 +1,9 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CMD_SRCS += \
+../post.cmd
+
+
diff --git a/post/evmk2h/bin/post.rmd b/post/evmk2h/bin/post.rmd
--- a/post/evmk2h/bin/post.rmd
+++ /dev/null
@@ -1,11 +0,0 @@
--a
--boot
--e _c_int00
-
-ROMS
-{
- ROM1: org = 0x0400, length = 0x10000, memwidth = 32, romwidth = 32
- files = { post2.b }
-}
-
-
diff --git a/post/evmk2h/bin/post_i2crom.map.pp b/post/evmk2h/bin/post_i2crom.map.pp
+++ /dev/null
@@ -1,25 +0,0 @@
-section
-{
- param_index = 0
- boot_mode = 40
- sw_pll_prediv = 1
- sw_pll_mult = 16
- sw_pll_postdiv = 2
- options = 1
-
- core_freq_mhz = 625
- i2c_clk_freq_khz = 200
-
- dev_addr_ext = 0x50
-
- multi_i2c_id = 0
- my_i2c_id = 1
- address_delay = 0
- exe_file = "post.i2c.ccs"
-}
-
-
-
-
-
-
diff --git a/post/evmk2h/bin/post_image.rmd b/post/evmk2h/bin/post_image.rmd
+++ /dev/null
@@ -1,10 +0,0 @@
--a
--e _c_int00
-
-ROMS
-{
- ROM1: org = 0x820000, length = 0x10000, memwidth = 32, romwidth = 32
- files = { post.b }
-}
-
-
diff --git a/post/evmk2h/bin/post_romparse.bat b/post/evmk2h/bin/post_romparse.bat
+++ /dev/null
@@ -1,44 +0,0 @@
-set C6000_CG_DIR="C:\ti\ccsv5\tools\compiler\c6000_7.4.1"
-set TARGET=k2h
-set ENDIAN=little
-set IBL_ROOT_DIR="..\..\..\boot_loader\ibl"
-set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
-
-
-@echo off
-
-echo C6000_CG_DIR set as: %C6000_CG_DIR%
-echo TARGET set as: %TARGET%
-echo IBL_ROOT_DIR set as : %IBL_ROOT_DIR%
-
-echo Converting .out to HEX ...
-if %ENDIAN% == little (
-%C6000_CG_DIR%\bin\hex6x -order L post_image.rmd post_evm%TARGET%.out
-) else (
-%C6000_CG_DIR%\bin\hex6x -order M post_image.rmd post_evm%TARGET%.out
-)
-
-%IBL_ROOT_DIR%\src\util\btoccs\b2ccs post.b post.ccs
-
-if %ENDIAN% == little (
-%C6000_CG_DIR%\bin\hex6x -order L post.rmd post_evm%TARGET%.out
-) else (
-%C6000_CG_DIR%\bin\hex6x -order M post.rmd post_evm%TARGET%.out
-)
-
-if %ENDIAN% == little (
-%IBL_ROOT_DIR%\src\util\bconvert\bconvert64x -le post2.b post.b
-) else (
-%IBL_ROOT_DIR%\src\util\bconvert\bconvert64x -be post2.b post.b
-)
-
-%IBL_ROOT_DIR%\src\util\btoccs\b2i2c post.b post.i2c.b
-
-%IBL_ROOT_DIR%\src\util\btoccs\b2ccs post.i2c.b post.i2c.ccs
-
-echo Generating I2C ROM data ...
-%IBL_ROOT_DIR%\src\util\romparse\romparse -rom_base 0x50 post_i2crom.map.pp
-
-%IBL_ROOT_DIR%\src\util\btoccs\ccs2bin -swap i2crom.ccs post_i2crom.bin
-
-rm -f *.ccs *.b
diff --git a/post/evmk2h/bin/post_romparse.sh b/post/evmk2h/bin/post_romparse.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-export CGT_INSTALL_DIR=~/ti/ccsv5/tools/compiler/c6000_7.4.1
-export TARGET=k2h
-export ENDIAN=little
-export IBL_ROOT_DIR="../../../boot_loader/ibl"
-
-echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
-echo TARGET set as: ${TARGET}
-echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
-
-echo Converting .out to HEX ...
-if [ ${ENDIAN} == little ]
-then
-${CGT_INSTALL_DIR}/bin/hex6x -order L post_image.rmd post_evm${TARGET}.out
-else
-${CGT_INSTALL_DIR}/bin/hex6x -order M post_image.rmd post_evm${TARGET}.out
-fi
-
-${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.b post.ccs
-
-if [ ${ENDIAN} == little ]
-then
-${CGT_INSTALL_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}.out
-else
-${CGT_INSTALL_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}.out
-fi
-
-if [ ${ENDIAN} == little ]
-then
-${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -le post2.b post.b
-else
-${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -be post2.b post.b
-fi
-
-${IBL_ROOT_DIR}/src/util/btoccs/b2i2c post.b post.i2c.b
-
-${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.i2c.b post.i2c.ccs
-
-echo Generating I2C ROM data ...
-${IBL_ROOT_DIR}/src/util/romparse/romparse -rom_base 0x50 post_i2crom.map.pp
-
-${IBL_ROOT_DIR}/src/util/btoccs/ccs2bin -swap i2crom.ccs post_i2crom.bin
-
-rm -f *.ccs *.b
diff --git a/post/evmk2h/build/makefile b/post/evmk2h/build/makefile
--- /dev/null
@@ -0,0 +1,157 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+
+CG_TOOL_ROOT = $(C6X_GEN_INSTALL_PATH)
+
+ORDERED_OBJS += \
+"./src/c6678.obj" \
+"./src/cpdma.obj" \
+"./src/gmacsl.obj" \
+"./src/pa.obj" \
+"./src/post.obj" \
+"./src/psc.obj" \
+"./src/qm.obj" \
+"../post.cmd" \
+$(GEN_CMDS__FLAG) \
+-l"ti.platform.evmk2h.lite.lib" \
+-l"ti.csl.ae66" \
+-l"libc.a" \
+
+-include ../makefile.init
+
+RM = rm -f
+RMDIR = rm -rf
+MKDIR = mkdir -p
+
+# All of the sources participating in the build are defined here
+-include sources.mk
+-include subdir_vars.mk
+-include src/subdir_vars.mk
+-include subdir_rules.mk
+-include src/subdir_rules.mk
+-include objects.mk
+
+ifneq ($(MAKECMDGOALS),clean)
+ifneq ($(strip $(S_DEPS)),)
+-include $(S_DEPS)
+endif
+ifneq ($(strip $(S_UPPER_DEPS)),)
+-include $(S_UPPER_DEPS)
+endif
+ifneq ($(strip $(S62_DEPS)),)
+-include $(S62_DEPS)
+endif
+ifneq ($(strip $(C64_DEPS)),)
+-include $(C64_DEPS)
+endif
+ifneq ($(strip $(ASM_DEPS)),)
+-include $(ASM_DEPS)
+endif
+ifneq ($(strip $(CC_DEPS)),)
+-include $(CC_DEPS)
+endif
+ifneq ($(strip $(S55_DEPS)),)
+-include $(S55_DEPS)
+endif
+ifneq ($(strip $(C67_DEPS)),)
+-include $(C67_DEPS)
+endif
+ifneq ($(strip $(CLA_DEPS)),)
+-include $(CLA_DEPS)
+endif
+ifneq ($(strip $(C??_DEPS)),)
+-include $(C??_DEPS)
+endif
+ifneq ($(strip $(CPP_DEPS)),)
+-include $(CPP_DEPS)
+endif
+ifneq ($(strip $(S??_DEPS)),)
+-include $(S??_DEPS)
+endif
+ifneq ($(strip $(C_DEPS)),)
+-include $(C_DEPS)
+endif
+ifneq ($(strip $(C62_DEPS)),)
+-include $(C62_DEPS)
+endif
+ifneq ($(strip $(CXX_DEPS)),)
+-include $(CXX_DEPS)
+endif
+ifneq ($(strip $(C++_DEPS)),)
+-include $(C++_DEPS)
+endif
+ifneq ($(strip $(ASM_UPPER_DEPS)),)
+-include $(ASM_UPPER_DEPS)
+endif
+ifneq ($(strip $(K_DEPS)),)
+-include $(K_DEPS)
+endif
+ifneq ($(strip $(C43_DEPS)),)
+-include $(C43_DEPS)
+endif
+ifneq ($(strip $(INO_DEPS)),)
+-include $(INO_DEPS)
+endif
+ifneq ($(strip $(S67_DEPS)),)
+-include $(S67_DEPS)
+endif
+ifneq ($(strip $(SA_DEPS)),)
+-include $(SA_DEPS)
+endif
+ifneq ($(strip $(S43_DEPS)),)
+-include $(S43_DEPS)
+endif
+ifneq ($(strip $(OPT_DEPS)),)
+-include $(OPT_DEPS)
+endif
+ifneq ($(strip $(PDE_DEPS)),)
+-include $(PDE_DEPS)
+endif
+ifneq ($(strip $(S64_DEPS)),)
+-include $(S64_DEPS)
+endif
+ifneq ($(strip $(C_UPPER_DEPS)),)
+-include $(C_UPPER_DEPS)
+endif
+ifneq ($(strip $(C55_DEPS)),)
+-include $(C55_DEPS)
+endif
+endif
+
+-include ../makefile.defs
+
+# Add inputs and outputs from these tool invocations to the build variables
+EXE_OUTPUTS += \
+../bin/post_evmk2h.out \
+
+EXE_OUTPUTS__QUOTED += \
+"../bin/post_evmk2h.out" \
+
+
+# All Target
+all: ../bin/post_evmk2h.out
+
+# Tool invocations
+../bin/post_evmk2h.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: C6000 Linker'
+ @$(MKDIR) ../bin
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --define=SOC_K2H --display_error_number --diag_warning=225 -z -m"../bin/post_evmk2h.map" -i"$(CG_TOOL_ROOT)/lib" -i"$(CG_TOOL_ROOT)/include" -i"$(PDK_INSTALL_PATH)/ti/platform/evmk2h/platform_lib/lib/debug" -i"$(PDK_INSTALL_PATH)/ti/csl/lib/k2h/c66/release" --reread_libs --warn_sections --xml_link_info="../bin/post_evmk2h_linkInfo.xml" --rom_model -o "../bin/post_evmk2h.out" $(ORDERED_OBJS)
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+# Other Targets
+clean:
+ -$(RM) $(EXE_OUTPUTS__QUOTED)
+ -$(RM) "src/c6678.pp" "src/cpdma.pp" "src/gmacsl.pp" "src/pa.pp" "src/post.pp" "src/psc.pp" "src/qm.pp"
+ -$(RM) "src/c6678.obj" "src/cpdma.obj" "src/gmacsl.obj" "src/pa.obj" "src/post.obj" "src/psc.obj" "src/qm.obj"
+ -@echo 'Finished clean'
+ -@echo ' '
+
+.PHONY: all clean dependents
+.SECONDARY:
+
+-include ../makefile.targets
+
diff --git a/post/evmk2h/build/objects.mk b/post/evmk2h/build/objects.mk
--- /dev/null
@@ -0,0 +1,8 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+USER_OBJS :=
+
+LIBS := -l"ti.platform.evmk2h.lite.lib" -l"libc.a"
+
diff --git a/post/evmk2h/build/sources.mk b/post/evmk2h/build/sources.mk
--- /dev/null
@@ -0,0 +1,108 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+O_SRCS :=
+CPP_SRCS :=
+K_SRCS :=
+LD_SRCS :=
+S67_SRCS :=
+LDS_SRCS :=
+CMD_SRCS :=
+CXX_SRCS :=
+CMD_UPPER_SRCS :=
+C43_SRCS :=
+S55_SRCS :=
+LD_UPPER_SRCS :=
+C62_SRCS :=
+S_UPPER_SRCS :=
+A_SRCS :=
+SA_SRCS :=
+C55_SRCS :=
+LDS_UPPER_SRCS :=
+C_UPPER_SRCS :=
+INO_SRCS :=
+OBJ_SRCS :=
+S62_SRCS :=
+LIB_SRCS :=
+PDE_SRCS :=
+ASM_SRCS :=
+ASM_UPPER_SRCS :=
+C++_SRCS :=
+CLA_SRCS :=
+S??_SRCS :=
+C_SRCS :=
+C67_SRCS :=
+S_SRCS :=
+S43_SRCS :=
+OPT_SRCS :=
+C64_SRCS :=
+CC_SRCS :=
+C??_SRCS :=
+S64_SRCS :=
+OBJS :=
+S_DEPS :=
+S_UPPER_DEPS :=
+S62_DEPS :=
+C64_DEPS :=
+ASM_DEPS :=
+CC_DEPS :=
+S55_DEPS :=
+C67_DEPS :=
+CLA_DEPS :=
+C??_DEPS :=
+CPP_DEPS :=
+S??_DEPS :=
+C_DEPS :=
+C62_DEPS :=
+EXE_OUTPUTS :=
+CXX_DEPS :=
+C++_DEPS :=
+ASM_UPPER_DEPS :=
+K_DEPS :=
+C43_DEPS :=
+INO_DEPS :=
+S67_DEPS :=
+SA_DEPS :=
+S43_DEPS :=
+OPT_DEPS :=
+PDE_DEPS :=
+S64_DEPS :=
+C_UPPER_DEPS :=
+C55_DEPS :=
+CPP_DEPS__QUOTED :=
+C67_DEPS__QUOTED :=
+INO_DEPS__QUOTED :=
+C??_DEPS__QUOTED :=
+S_UPPER_DEPS__QUOTED :=
+CLA_DEPS__QUOTED :=
+ASM_UPPER_DEPS__QUOTED :=
+C62_DEPS__QUOTED :=
+CXX_DEPS__QUOTED :=
+EXE_OUTPUTS__QUOTED :=
+S67_DEPS__QUOTED :=
+C_DEPS__QUOTED :=
+C_UPPER_DEPS__QUOTED :=
+OPT_DEPS__QUOTED :=
+S_DEPS__QUOTED :=
+K_DEPS__QUOTED :=
+S??_DEPS__QUOTED :=
+C64_DEPS__QUOTED :=
+C++_DEPS__QUOTED :=
+OBJS__QUOTED :=
+CC_DEPS__QUOTED :=
+S43_DEPS__QUOTED :=
+S55_DEPS__QUOTED :=
+SA_DEPS__QUOTED :=
+C55_DEPS__QUOTED :=
+PDE_DEPS__QUOTED :=
+C43_DEPS__QUOTED :=
+S62_DEPS__QUOTED :=
+ASM_DEPS__QUOTED :=
+S64_DEPS__QUOTED :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+. \
+src \
+
diff --git a/post/evmk2h/build/src/subdir_rules.mk b/post/evmk2h/build/src/subdir_rules.mk
--- /dev/null
@@ -0,0 +1,55 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Each subdirectory must supply rules for building sources it contributes
+src/c6678.obj: ../../../post/src/c6678.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/c6678.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/cpdma.obj: ../../../post/src/cpdma.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/cpdma.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/gmacsl.obj: ../../../post/src/gmacsl.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/gmacsl.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/pa.obj: ../../../post/src/pa.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/pa.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/post.obj: ../../../post/src/post.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/post.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/psc.obj: ../../../post/src/psc.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/psc.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/qm.obj: ../../../post/src/qm.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/qm.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
diff --git a/post/evmk2h/build/src/subdir_vars.mk b/post/evmk2h/build/src/subdir_vars.mk
--- /dev/null
@@ -0,0 +1,60 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+C_SRCS += \
+../../../post/src/c6678.c \
+../../../post/src/cpdma.c \
+../../../post/src/gmacsl.c \
+../../../post/src/pa.c \
+../../../post/src/post.c \
+../../../post/src/psc.c \
+../../../post/src/qm.c
+
+OBJS += \
+./src/c6678.obj \
+./src/cpdma.obj \
+./src/gmacsl.obj \
+./src/pa.obj \
+./src/post.obj \
+./src/psc.obj \
+./src/qm.obj
+
+C_DEPS += \
+./src/c6678.pp \
+./src/cpdma.pp \
+./src/gmacsl.pp \
+./src/pa.pp \
+./src/post.pp \
+./src/psc.pp \
+./src/qm.pp
+
+C_DEPS__QUOTED += \
+"src/c6678.pp" \
+"src/cpdma.pp" \
+"src/gmacsl.pp" \
+"src/pa.pp" \
+"src/post.pp" \
+"src/psc.pp" \
+"src/qm.pp"
+
+OBJS__QUOTED += \
+"src/c6678.obj" \
+"src/cpdma.obj" \
+"src/gmacsl.obj" \
+"src/pa.obj" \
+"src/post.obj" \
+"src/psc.obj" \
+"src/qm.obj"
+
+C_SRCS__QUOTED += \
+"../../../post/src/c6678.c" \
+"../../../post/src/cpdma.c" \
+"../../../post/src/gmacsl.c" \
+"../../../post/src/pa.c" \
+"../../../post/src/post.c" \
+"../../../post/src/psc.c" \
+"../../../post/src/qm.c"
+
+
diff --git a/post/evmk2h/build/subdir_rules.mk b/post/evmk2h/build/subdir_rules.mk
--- /dev/null
@@ -0,0 +1,6 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Each subdirectory must supply rules for building sources it contributes
+
diff --git a/post/evmk2h/build/subdir_vars.mk b/post/evmk2h/build/subdir_vars.mk
--- /dev/null
@@ -0,0 +1,9 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CMD_SRCS += \
+../post.cmd
+
+
diff --git a/post/evmk2l/build/makefile b/post/evmk2l/build/makefile
--- /dev/null
@@ -0,0 +1,157 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+
+CG_TOOL_ROOT = $(C6X_GEN_INSTALL_PATH)
+
+ORDERED_OBJS += \
+"./src/c6678.obj" \
+"./src/cpdma.obj" \
+"./src/gmacsl.obj" \
+"./src/pa.obj" \
+"./src/post.obj" \
+"./src/psc.obj" \
+"./src/qm.obj" \
+"../post.cmd" \
+$(GEN_CMDS__FLAG) \
+-l"ti.platform.evmk2h.lite.lib" \
+-l"ti.csl.ae66" \
+-l"libc.a" \
+
+-include ../makefile.init
+
+RM = rm -f
+RMDIR = rm -rf
+MKDIR = mkdir -p
+
+# All of the sources participating in the build are defined here
+-include sources.mk
+-include subdir_vars.mk
+-include src/subdir_vars.mk
+-include subdir_rules.mk
+-include src/subdir_rules.mk
+-include objects.mk
+
+ifneq ($(MAKECMDGOALS),clean)
+ifneq ($(strip $(S_DEPS)),)
+-include $(S_DEPS)
+endif
+ifneq ($(strip $(S_UPPER_DEPS)),)
+-include $(S_UPPER_DEPS)
+endif
+ifneq ($(strip $(S62_DEPS)),)
+-include $(S62_DEPS)
+endif
+ifneq ($(strip $(C64_DEPS)),)
+-include $(C64_DEPS)
+endif
+ifneq ($(strip $(ASM_DEPS)),)
+-include $(ASM_DEPS)
+endif
+ifneq ($(strip $(CC_DEPS)),)
+-include $(CC_DEPS)
+endif
+ifneq ($(strip $(S55_DEPS)),)
+-include $(S55_DEPS)
+endif
+ifneq ($(strip $(C67_DEPS)),)
+-include $(C67_DEPS)
+endif
+ifneq ($(strip $(CLA_DEPS)),)
+-include $(CLA_DEPS)
+endif
+ifneq ($(strip $(C??_DEPS)),)
+-include $(C??_DEPS)
+endif
+ifneq ($(strip $(CPP_DEPS)),)
+-include $(CPP_DEPS)
+endif
+ifneq ($(strip $(S??_DEPS)),)
+-include $(S??_DEPS)
+endif
+ifneq ($(strip $(C_DEPS)),)
+-include $(C_DEPS)
+endif
+ifneq ($(strip $(C62_DEPS)),)
+-include $(C62_DEPS)
+endif
+ifneq ($(strip $(CXX_DEPS)),)
+-include $(CXX_DEPS)
+endif
+ifneq ($(strip $(C++_DEPS)),)
+-include $(C++_DEPS)
+endif
+ifneq ($(strip $(ASM_UPPER_DEPS)),)
+-include $(ASM_UPPER_DEPS)
+endif
+ifneq ($(strip $(K_DEPS)),)
+-include $(K_DEPS)
+endif
+ifneq ($(strip $(C43_DEPS)),)
+-include $(C43_DEPS)
+endif
+ifneq ($(strip $(INO_DEPS)),)
+-include $(INO_DEPS)
+endif
+ifneq ($(strip $(S67_DEPS)),)
+-include $(S67_DEPS)
+endif
+ifneq ($(strip $(SA_DEPS)),)
+-include $(SA_DEPS)
+endif
+ifneq ($(strip $(S43_DEPS)),)
+-include $(S43_DEPS)
+endif
+ifneq ($(strip $(OPT_DEPS)),)
+-include $(OPT_DEPS)
+endif
+ifneq ($(strip $(PDE_DEPS)),)
+-include $(PDE_DEPS)
+endif
+ifneq ($(strip $(S64_DEPS)),)
+-include $(S64_DEPS)
+endif
+ifneq ($(strip $(C_UPPER_DEPS)),)
+-include $(C_UPPER_DEPS)
+endif
+ifneq ($(strip $(C55_DEPS)),)
+-include $(C55_DEPS)
+endif
+endif
+
+-include ../makefile.defs
+
+# Add inputs and outputs from these tool invocations to the build variables
+EXE_OUTPUTS += \
+../bin/post_evmk2h.out \
+
+EXE_OUTPUTS__QUOTED += \
+"../bin/post_evmk2h.out" \
+
+
+# All Target
+all: ../bin/post_evmk2h.out
+
+# Tool invocations
+../bin/post_evmk2h.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: C6000 Linker'
+ @$(MKDIR) ../bin
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --define=SOC_K2H --display_error_number --diag_warning=225 -z -m"../bin/post_evmk2h.map" -i"$(CG_TOOL_ROOT)/lib" -i"$(CG_TOOL_ROOT)/include" -i"$(PDK_INSTALL_PATH)/ti/platform/evmk2h/platform_lib/lib/debug" -i"$(PDK_INSTALL_PATH)/ti/csl/lib/k2h/c66/release" --reread_libs --warn_sections --xml_link_info="../bin/post_evmk2h_linkInfo.xml" --rom_model -o "../bin/post_evmk2h.out" $(ORDERED_OBJS)
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+# Other Targets
+clean:
+ -$(RM) $(EXE_OUTPUTS__QUOTED)
+ -$(RM) "src/c6678.pp" "src/cpdma.pp" "src/gmacsl.pp" "src/pa.pp" "src/post.pp" "src/psc.pp" "src/qm.pp"
+ -$(RM) "src/c6678.obj" "src/cpdma.obj" "src/gmacsl.obj" "src/pa.obj" "src/post.obj" "src/psc.obj" "src/qm.obj"
+ -@echo 'Finished clean'
+ -@echo ' '
+
+.PHONY: all clean dependents
+.SECONDARY:
+
+-include ../makefile.targets
+
diff --git a/post/evmk2l/build/objects.mk b/post/evmk2l/build/objects.mk
--- /dev/null
@@ -0,0 +1,8 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+USER_OBJS :=
+
+LIBS := -l"ti.platform.evmk2h.lite.lib" -l"libc.a"
+
diff --git a/post/evmk2l/build/sources.mk b/post/evmk2l/build/sources.mk
--- /dev/null
@@ -0,0 +1,108 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+O_SRCS :=
+CPP_SRCS :=
+K_SRCS :=
+LD_SRCS :=
+S67_SRCS :=
+LDS_SRCS :=
+CMD_SRCS :=
+CXX_SRCS :=
+CMD_UPPER_SRCS :=
+C43_SRCS :=
+S55_SRCS :=
+LD_UPPER_SRCS :=
+C62_SRCS :=
+S_UPPER_SRCS :=
+A_SRCS :=
+SA_SRCS :=
+C55_SRCS :=
+LDS_UPPER_SRCS :=
+C_UPPER_SRCS :=
+INO_SRCS :=
+OBJ_SRCS :=
+S62_SRCS :=
+LIB_SRCS :=
+PDE_SRCS :=
+ASM_SRCS :=
+ASM_UPPER_SRCS :=
+C++_SRCS :=
+CLA_SRCS :=
+S??_SRCS :=
+C_SRCS :=
+C67_SRCS :=
+S_SRCS :=
+S43_SRCS :=
+OPT_SRCS :=
+C64_SRCS :=
+CC_SRCS :=
+C??_SRCS :=
+S64_SRCS :=
+OBJS :=
+S_DEPS :=
+S_UPPER_DEPS :=
+S62_DEPS :=
+C64_DEPS :=
+ASM_DEPS :=
+CC_DEPS :=
+S55_DEPS :=
+C67_DEPS :=
+CLA_DEPS :=
+C??_DEPS :=
+CPP_DEPS :=
+S??_DEPS :=
+C_DEPS :=
+C62_DEPS :=
+EXE_OUTPUTS :=
+CXX_DEPS :=
+C++_DEPS :=
+ASM_UPPER_DEPS :=
+K_DEPS :=
+C43_DEPS :=
+INO_DEPS :=
+S67_DEPS :=
+SA_DEPS :=
+S43_DEPS :=
+OPT_DEPS :=
+PDE_DEPS :=
+S64_DEPS :=
+C_UPPER_DEPS :=
+C55_DEPS :=
+CPP_DEPS__QUOTED :=
+C67_DEPS__QUOTED :=
+INO_DEPS__QUOTED :=
+C??_DEPS__QUOTED :=
+S_UPPER_DEPS__QUOTED :=
+CLA_DEPS__QUOTED :=
+ASM_UPPER_DEPS__QUOTED :=
+C62_DEPS__QUOTED :=
+CXX_DEPS__QUOTED :=
+EXE_OUTPUTS__QUOTED :=
+S67_DEPS__QUOTED :=
+C_DEPS__QUOTED :=
+C_UPPER_DEPS__QUOTED :=
+OPT_DEPS__QUOTED :=
+S_DEPS__QUOTED :=
+K_DEPS__QUOTED :=
+S??_DEPS__QUOTED :=
+C64_DEPS__QUOTED :=
+C++_DEPS__QUOTED :=
+OBJS__QUOTED :=
+CC_DEPS__QUOTED :=
+S43_DEPS__QUOTED :=
+S55_DEPS__QUOTED :=
+SA_DEPS__QUOTED :=
+C55_DEPS__QUOTED :=
+PDE_DEPS__QUOTED :=
+C43_DEPS__QUOTED :=
+S62_DEPS__QUOTED :=
+ASM_DEPS__QUOTED :=
+S64_DEPS__QUOTED :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+. \
+src \
+
diff --git a/post/evmk2l/build/src/subdir_rules.mk b/post/evmk2l/build/src/subdir_rules.mk
--- /dev/null
@@ -0,0 +1,55 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Each subdirectory must supply rules for building sources it contributes
+src/c6678.obj: ../../../post/src/c6678.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/c6678.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/cpdma.obj: ../../../post/src/cpdma.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/cpdma.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/gmacsl.obj: ../../../post/src/gmacsl.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/gmacsl.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/pa.obj: ../../../post/src/pa.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/pa.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/post.obj: ../../../post/src/post.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/post.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/psc.obj: ../../../post/src/psc.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/psc.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+src/qm.obj: ../../../post/src/qm.c $(GEN_OPTS) $(GEN_HDRS)
+ @echo 'Building file: $<'
+ @echo 'Invoking: C6000 Compiler'
+ "$(CG_TOOL_ROOT)/bin/cl6x" -mv6600 --abi=eabi -g --include_path="$(CG_TOOL_ROOT)/include" --include_path="$(PDK_INSTALL_PATH)/ti/platform" --include_path="$(PDK_INSTALL_PATH)/" --include_path="../../../post/include" --define=SOC_K2H --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/qm.pp" --obj_directory="src" $(GEN_OPTS__FLAG) "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
diff --git a/post/evmk2l/build/src/subdir_vars.mk b/post/evmk2l/build/src/subdir_vars.mk
--- /dev/null
@@ -0,0 +1,60 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+C_SRCS += \
+../../../post/src/c6678.c \
+../../../post/src/cpdma.c \
+../../../post/src/gmacsl.c \
+../../../post/src/pa.c \
+../../../post/src/post.c \
+../../../post/src/psc.c \
+../../../post/src/qm.c
+
+OBJS += \
+./src/c6678.obj \
+./src/cpdma.obj \
+./src/gmacsl.obj \
+./src/pa.obj \
+./src/post.obj \
+./src/psc.obj \
+./src/qm.obj
+
+C_DEPS += \
+./src/c6678.pp \
+./src/cpdma.pp \
+./src/gmacsl.pp \
+./src/pa.pp \
+./src/post.pp \
+./src/psc.pp \
+./src/qm.pp
+
+C_DEPS__QUOTED += \
+"src/c6678.pp" \
+"src/cpdma.pp" \
+"src/gmacsl.pp" \
+"src/pa.pp" \
+"src/post.pp" \
+"src/psc.pp" \
+"src/qm.pp"
+
+OBJS__QUOTED += \
+"src/c6678.obj" \
+"src/cpdma.obj" \
+"src/gmacsl.obj" \
+"src/pa.obj" \
+"src/post.obj" \
+"src/psc.obj" \
+"src/qm.obj"
+
+C_SRCS__QUOTED += \
+"../../../post/src/c6678.c" \
+"../../../post/src/cpdma.c" \
+"../../../post/src/gmacsl.c" \
+"../../../post/src/pa.c" \
+"../../../post/src/post.c" \
+"../../../post/src/psc.c" \
+"../../../post/src/qm.c"
+
+
diff --git a/post/evmk2l/build/subdir_rules.mk b/post/evmk2l/build/subdir_rules.mk
--- /dev/null
@@ -0,0 +1,6 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Each subdirectory must supply rules for building sources it contributes
+
diff --git a/post/evmk2l/build/subdir_vars.mk b/post/evmk2l/build/subdir_vars.mk
--- /dev/null
@@ -0,0 +1,9 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CMD_SRCS += \
+../post.cmd
+
+
index 49d78cb1a6acc3fa5089a2dfe24ed697bd30c106..80b7b12c35c586462d743a79af3d4200b33aad5e 100644 (file)
--- a/post/include/cpdma_loc.h
+++ b/post/include/cpdma_loc.h
/* Emulation control register */
#define CPDMA_REG_EMU_CTL 0x08
+#define CPDMA_REG_QM_BASE_ADDR(x) (0x10 + (x)*0x4)
/* CPPI Tx DMA channel control registers */
#define CPDMA_REG_TCHAN_CFG_REG_A(x) (0x00 + (x)*0x20)
diff --git a/post/include/post.h b/post/include/post.h
index 8863ecb139685d4b2a3172ecbf302cd36e2b6a4d..9a61322404a1550477a80bccd795a439d7773bf4 100644 (file)
--- a/post/include/post.h
+++ b/post/include/post.h
* POST version definitions
******************************************************************************/
#define POST_EVM_VERSION_MSG " POST Version "
-#define POST_VERSION "01.00.00.06"
+#define POST_VERSION "01.00.00.08"
/******************************************************************************
* PLL Controller Reset Type Status register
} POST_TEST_ID;
#define POST_MAX_NUM_LED 4 /* Total number of LEDs on the EVM */
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2E) || defined(SOC_K2L))
+static uint8_t post_led_status[POST_MAX_TEST_NUM][POST_MAX_NUM_LED] =
+{
+ /* LED0: red LED0: green LED1: blue LED2: blue */
+ {POST_LED_OFF, POST_LED_OFF, POST_LED_ON, POST_LED_ON}, /* POST running in progress */
+ {POST_LED_OFF, POST_LED_ON, POST_LED_OFF, POST_LED_OFF}, /* POST done successfully */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_OFF, POST_LED_OFF}, /* POST external memory test failed */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_ON, POST_LED_OFF}, /* POST I2C EEPROM read test failed */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_OFF, POST_LED_ON}, /* POST EMIF16 NAND read test failed */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_ON, POST_LED_ON}, /* POST SPI NOR read test failed */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_BLINK, POST_LED_OFF}, /* POST UART write test failed */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_OFF, POST_LED_BLINK}, /* POST EMAC loopback test failed */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_BLINK, POST_LED_ON}, /* POST PLL initialization failed */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_ON, POST_LED_BLINK}, /* POST NAND initialization failed */
+ {POST_LED_ON, POST_LED_OFF, POST_LED_BLINK, POST_LED_BLINK}, /* POST NOR initialization failed */
+ {POST_LED_BLINK, POST_LED_OFF, POST_LED_OFF, POST_LED_OFF}, /* POST general failure */
+ {POST_LED_BLINK, POST_LED_OFF, POST_LED_ON, POST_LED_OFF} /* POST PA loopback failure */
+};
+#else
static uint8_t post_led_status[POST_MAX_TEST_NUM][POST_MAX_NUM_LED] =
{
{POST_LED_ON, POST_LED_ON, POST_LED_ON, POST_LED_ON}, /* POST running in progress */
{POST_LED_BLINK, POST_LED_BLINK, POST_LED_BLINK, POST_LED_BLINK}, /* POST general failure */
{POST_LED_ON, POST_LED_BLINK, POST_LED_BLINK, POST_LED_BLINK} /* POST PA loopback failure */
};
+#endif
#define POST_STATUS_MAX_NUM_CHAR 25 /* Maximum char length of the POST status string */
static char post_status[POST_MAX_TEST_NUM][POST_STATUS_MAX_NUM_CHAR] =
/******************************************************************************
* NAND test definitions
******************************************************************************/
-#if (defined(_EVMC6657L_))
+#if (defined(_EVMC6657L_) || defined(SOC_K2K) || defined(SOC_K2H))
#define POST_NAND_TEST_DEVICE_ID PLATFORM_DEVID_MT29F1G08ABCHC /* NAND device ID */
#define POST_NAND_TEST_READ_BLOCK_NUM 0 /* NAND read block number */
#define POST_NAND_TEST_READ_PAGE_NUM 0 /* NAND read page number */
#define POST_NAND_TEST_READ_LENGTH 2048 /* Read length in bytes (one page) */
+#elif (defined(SOC_K2E))
+ #define POST_NAND_TEST_DEVICE_ID PLATFORM_DEVID_MT29F4G08ABADA /* NAND device ID */
+ #define POST_NAND_TEST_READ_BLOCK_NUM 0 /* NAND read block number */
+ #define POST_NAND_TEST_READ_PAGE_NUM 0 /* NAND read page number */
+ #define POST_NAND_TEST_READ_LENGTH 2048 /* Read length in bytes (one page) */
+#elif (defined(SOC_K2L))
+ #define POST_NAND_TEST_DEVICE_ID PLATFORM_DEVID_MT29F16G08ADBCAH4C /* NAND device ID */
+ #define POST_NAND_TEST_READ_BLOCK_NUM 0 /* NAND read block number */
+ #define POST_NAND_TEST_READ_PAGE_NUM 0 /* NAND read page number */
+ #define POST_NAND_TEST_READ_LENGTH 4096 /* Read length in bytes (one page) */
#else
#define POST_NAND_TEST_DEVICE_ID PLATFORM_DEVID_NAND512R3A2D
#define POST_NAND_TEST_READ_BLOCK_NUM 0 /* NAND read block number */
diff --git a/post/include/target.h b/post/include/target.h
index 7ec9543b4b9abd62b0972de992ab0f5217248bb2..55d8c7ddeacf810f772425a60fad7561c3e3bab3 100644 (file)
--- a/post/include/target.h
+++ b/post/include/target.h
* @brief
* Device PLL definitions
*/
+#if defined(SOC_K2K) || defined(SOC_K2H)
#define DEVICE_PLL_BASE(x) ((x) == MAIN_PLL ? 0x2310000 : ((x) == NET_PLL ? 0x2620338 : 0x2620330))
#define DEVICE_MAIN_PLL_CTL_0 0x2620328
#define DEVICE_MAIN_PLL_CTL_1 0x262032c
-
+#elif defined(SOC_K2L) || defined(SOC_K2E)
+#define DEVICE_PLL_BASE(x) ((x) == MAIN_PLL ? 0x2310000 : ((x) == NET_PLL ? 0x2620338 : 0x2620330))
+#define DEVICE_MAIN_PLL_CTL_0 0x2620350
+#define DEVICE_MAIN_PLL_CTL_1 0x2620354
+#endif
/**
* @brief
* @brief
* The base address of MDIO
*/
+#if defined(SOC_K2K) || defined(SOC_K2H)
#define TARGET_MDIO_BASE 0x2090300
+#elif defined(SOC_K2E)
+#define TARGET_MDIO_BASE 0x24200F00
+#elif defined(SOC_K2L)
+#define TARGET_MDIO_BASE 0x26200F00
+#endif
/**
* @brief
*/
#define DEVICE_CPSW
#define DEVICE_CPSW_NUM_PORTS 3 /* 3 switch ports */
+#if defined(SOC_K2L)
+#define DEVICE_CPSW_BASE (0x26200000)
+#elif defined(SOC_K2K) || (SOC_K2H)
#define DEVICE_CPSW_BASE (0x02090800)
+#elif defined(SOC_K2E)
+#define DEVICE_CPSW_BASE 0x24200000
+#endif
#define targetGetSwitchCtl() CPSW_CTL_P0_ENABLE /* Enable port 0 */
#define targetGetSwitchMaxPktSize() 9000
#define DEVICE_QM
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2E) || defined(SOC_K2L))
+#define DEVICE_QM_MANAGER_BASE 0x02A02000
+#define DEVICE_QM_DESC_SETUP_BASE 0x02A03000
+#define DEVICE_QM_MANAGER_QUEUES_BASE 0x02A80000
+#define DEVICE_QM_MANAGER_Q_PROXY_BASE 0x02AC0000
+#define DEVICE_QM_QUEUE_STATUS_BASE 0x02A40000
+
+/* QM base address register */
+#define DEVICE_QM1_QUEUE_MANAGEMENT_REGS(x) (0x23A00000 + 0x80000 + 0x10000*(x))
+#define DEVICE_QM2_QUEUE_MANAGEMENT_REGS(x) (0x23A00000 + 0xA0000 + 0x10000*(x))
+#else
#define DEVICE_QM_MANAGER_BASE 0x02a68000
#define DEVICE_QM_DESC_SETUP_BASE 0x02a6a000
#define DEVICE_QM_MANAGER_QUEUES_BASE 0x02a20000
#define DEVICE_QM_MANAGER_Q_PROXY_BASE 0x02a40000
#define DEVICE_QM_QUEUE_STATUS_BASE 0x02a00000
+#endif
+
#define DEVICE_QM_NUM_LINKRAMS 2
#define DEVICE_QM_NUM_MEMREGIONS 20
void *targetGetQmConfig(void);
#define chipLmbd(x,y) _lmbd(x,y)
-
-
-
#define DEVICE_CPDMA
-
-#define DEVICE_PA_CDMA_GLOBAL_CFG_BASE 0x02004000
-#define DEVICE_PA_CDMA_TX_CHAN_CFG_BASE 0x02004400
-#define DEVICE_PA_CDMA_RX_CHAN_CFG_BASE 0x02004800
-#define DEVICE_PA_CDMA_RX_FLOW_CFG_BASE 0x02005000
-
+#if defined(SOC_K2K) || (SOC_K2H)
+#define DEVICE_NETCP_CFG_BASE 0x02000000
+#elif defined(SOC_K2L)
+#define DEVICE_NETCP_CFG_BASE 0x26000000
+#elif defined(SOC_K2E)
+#define DEVICE_NETCP_CFG_BASE 0x24000000
+#endif
+
+//Corrected
+#if defined(SOC_K2K) || (SOC_K2H)
+#define DEVICE_PA_CDMA_GLOBAL_CFG_BASE DEVICE_NETCP_CFG_BASE+0x4000
+#define DEVICE_PA_CDMA_TX_CHAN_CFG_BASE DEVICE_NETCP_CFG_BASE+0x4400
+#define DEVICE_PA_CDMA_RX_CHAN_CFG_BASE DEVICE_NETCP_CFG_BASE+0x4800
+#define DEVICE_PA_CDMA_RX_FLOW_CFG_BASE DEVICE_NETCP_CFG_BASE+0x5000
+#elif defined(SOC_K2L) || defined(SOC_K2E)
+#define DEVICE_PA_CDMA_GLOBAL_CFG_BASE DEVICE_NETCP_CFG_BASE+0x186000
+#define DEVICE_PA_CDMA_TX_CHAN_CFG_BASE DEVICE_NETCP_CFG_BASE+0x187000
+#define DEVICE_PA_CDMA_RX_CHAN_CFG_BASE DEVICE_NETCP_CFG_BASE+0x188000
+#define DEVICE_PA_CDMA_RX_FLOW_CFG_BASE DEVICE_NETCP_CFG_BASE+0x189000
+#endif
+
+#if defined(SOC_K2K) || defined(SOC_K2H)
#define DEVICE_PA_CDMA_RX_NUM_CHANNELS 24
#define DEVICE_PA_CDMA_RX_NUM_FLOWS 32
#define DEVICE_PA_CDMA_TX_NUM_CHANNELS 9
-
-
+#elif defined(SOC_K2L) || defined(SOC_K2E)
+#define DEVICE_PA_CDMA_RX_NUM_CHANNELS 91
+#define DEVICE_PA_CDMA_RX_NUM_FLOWS 96
+#define DEVICE_PA_CDMA_TX_NUM_CHANNELS 21
+#endif
+//Corrected Over
+#if defined(SOC_K2K) || defined(SOC_K2H)
#define DEVICE_QM_FREE_Q 910
#define DEVICE_QM_LNK_BUF_Q 911
#define DEVICE_QM_RCV_Q 912
#define DEVICE_QM_TX_Q 913
#define DEVICE_QM_PA_CFG_Q 640
#define DEVICE_QM_ETH_TX_Q 648
-
+#elif defined(SOC_K2L) || defined(SOC_K2E)
+#define DEVICE_QM_FREE_Q 1034
+#define DEVICE_QM_LNK_BUF_Q 1035
+#define DEVICE_QM_RCV_Q 1036
+#define DEVICE_QM_TX_Q 1037
+#define DEVICE_QM_PA_CFG_Q 640
+#define DEVICE_QM_ETH_TX_Q 896
+#endif
#define DEVICE_RX_CDMA_TIMEOUT_COUNT 1000
#define DEVICE_PA
+#if defined(SOC_K2K) || defined(SOC_K2H)
#define DEVICE_PA_BASE 0x02000000
#define DEVICE_PA_NUM_PDSPS 6
+#elif defined(SOC_K2L)
+#define DEVICE_PA_BASE 0x26000000
+#define DEVICE_PA_NUM_PDSPS 6
+#elif defined(SOC_K2E)
+#define DEVICE_PA_BASE 0x24000000
+#define DEVICE_PA_NUM_PDSPS 6
+#endif
+
#define DEVICE_PA_RUN_CHECK_COUNT 100 /* Number of loops to verify PA firmware is running */
#define DEVICE_PA_PLL_BASE 0x02620338
#define chipLower8(x) ((x) & 0x00ff)
#define TARGET_SGMII_EXTERNAL_SERDES
+#if defined(SOC_K2K) || defined(SOC_K2H)
#define TARGET_SGMII_TYPE_2 /* Use second sgmii setup sequence */
#define TARGET_SGMII_BASE_ADDRESSES { 0x02090100, 0x02090200 }
#define TARGET_SGMII_SERDES_BASE 0x2620340
#define TARGET_SGMII_SERDES_STATUS_BASE 0x2620158
+#elif defined(SOC_K2L)
+#define TARGET_SGMII_TYPE_2 /* Use second sgmii setup sequence */
+#define TARGET_SGMII_BASE_ADDRESSES { 0x26200100,0x26200200 }
+#define TARGET_SGMII_SERDES_BASE 0x2620340
+#define TARGET_SGMII_SERDES_STATUS_BASE 0x2620158
+#elif defined(SOC_K2E)
+#define TARGET_SGMII_TYPE_2 /* Use second sgmii setup sequence */
+#define TARGET_SGMII_BASE_ADDRESSES { 0x24200100,0x24200200 }
+#define TARGET_SGMII_SERDES_BASE 0x2620340
+#define TARGET_SGMII_SERDES_STATUS_BASE 0x2620158
+
+#endif
#define TARGET_SGMII_SOFT_RESET 0x04
#define TARGET_SGMII_CONTROL 0x10
#define TARGET_SGMII_MR_ADV_ABILITY 0x18
#define chipKickClosedSerdes(x) ; /* never lock the registers */
#define TARGET_SERDES_LOCK_DELAY (1600*1000)
+#if defined(SOC_K2H) || defined(SOC_K2K)
#define DEVICE_EMACSL_BASE(x) (0x02090900 + (x)*0x040)
+#elif defined(SOC_K2L)
+#define DEVICE_EMACSL_BASE(x) (0x26220000 + (x)*0x040)
+#elif defined(SOC_K2E)
+#define DEVICE_EMACSL_BASE(x) (0x24220000 + (x)*0x040)
+#endif
+
#define DEVICE_N_GMACSL_PORTS 2
#define DEVICE_EMACSL_RESET_POLL_COUNT 100
int32_t targetMacSend (void *ptr_device, uint8_t* buffer, int32_t num_bytes);
int32_t targetMacRcv (void *ptr_device, uint8_t *buffer);
#define DEVICE_SS
+
+#if defined(SOC_K2H) || defined(SOC_K2K)
#define DEVICE_PSTREAM_CFG_REG_ADDR 0x2000604
+#elif defined(SOC_K2L)
+#define DEVICE_PSTREAM_CFG_REG_ADDR 0x26000604
+#elif defined(SOC_K2E)
+#define DEVICE_PSTREAM_CFG_REG_ADDR 0x240000604
+#endif
#define DEVICE_PSTREAM_CFG_REG_VAL_ROUTE_PDSP0 0
#define hwConfigStreamingSwitch() DEVICE_REG32_W(DEVICE_PSTREAM_CFG_REG_ADDR, DEVICE_PSTREAM_CFG_REG_VAL_ROUTE_PDSP0);
diff --git a/post/src/cpdma.c b/post/src/cpdma.c
index 9f444a85a4d7bd3ca7a7d9c0a7ada7da97ffcb62..4171d3b17adf53e5fd20e21b4f1dabcc5729af9b 100644 (file)
--- a/post/src/cpdma.c
+++ b/post/src/cpdma.c
/* Disable loopback in the tx direction */
DEVICE_REG32_W (cfg->gblCtlBase + CPDMA_REG_EMU_CTL, CPDMA_REG_VAL_EMU_CTL_NO_LOOPBACK);
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2E) || defined(SOC_K2L))
+ /* Set QM base address, only for K2x devices */
+ DEVICE_REG32_W (cfg->gblCtlBase + CPDMA_REG_QM_BASE_ADDR(0), DEVICE_QM1_QUEUE_MANAGEMENT_REGS(0));
+#endif
+
/* Enable all channels. The current state isn't important */
for (i = 0; i < cfg->nTxChans; i++) {
DEVICE_REG32_W (cfg->txBase + CPDMA_REG_TCHAN_CFG_REG_B(i), 0); /* Priority */
diff --git a/post/src/post.c b/post/src/post.c
index 0b8ec0b9aa71bc1ec96f36be793e7580f709875b..f90473873ad465fc18b2e2b45061d4ef4304ab74 100644 (file)
--- a/post/src/post.c
+++ b/post/src/post.c
#include <ti/csl/cslr_cpsgmii.h>
#include <ti/csl/csl_mdioAux.h>
#else
- #include <ti/csl/csl_cpsgmii.h>
- #include <ti/csl/cslr_cpsgmii.h>
+ #include <ti/csl/csl_sgmii.h>
+ #include <ti/csl/cslr_sgmii.h>
#endif
#include <ti/csl/csl_mdio.h>
#pragma DATA_ALIGN(post_version, 16)
char post_version[] = POST_VERSION;
+#if (defined(SOC_K2K) || defined(SOC_K2H))
+/*
+ * Holds the base address of ports.
+ */
+void *cpswPortBaseAddr[4] = {
+ &hCpsw5gfRegs->PORT1_INFO,
+ &hCpsw5gfRegs->PORT2_INFO,
+ &hCpsw5gfRegs->PORT3_INFO,
+ &hCpsw5gfRegs->PORT4_INFO
+};
+#endif
+
/* OSAL functions for Platform Library */
uint8_t *Osal_platformMalloc (uint32_t num_bytes, uint32_t alignment)
{
{
POST_TEST_RESULT test_result = POST_TEST_RESULT_PASSED;
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2E) || defined(SOC_K2L))
+ /* DDR3A test */
+ if(platform_external_memory_test(0x80000000, 0x88000000) != Platform_EOK)
+ {
+ test_result = POST_TEST_RESULT_FAILED;
+ }
+#if (defined(SOC_K2K) || defined(SOC_K2H))
+ /* DDR3B test */
+ if(platform_external_memory_test(0x60000000, 0x68000000) != Platform_EOK)
+ {
+ test_result = POST_TEST_RESULT_FAILED;
+ }
+#endif
+#else
if(platform_external_memory_test(0, 0) != Platform_EOK)
{
test_result = POST_TEST_RESULT_FAILED;
}
-
+#endif
return test_result;
}
#endif
int32_t cpswEvm6678 = 0;
-#if !(defined(_EVMC6657L_)) && !(defined(_EVMC6678L_))
+#if !(defined(_EVMC6657L_))
/** ============================================================================
* @n@b Init_SGMII
*
CSL_CPGMAC_SL_enableExtControl (macPortNum);
/* Configure the MAC address for this port */
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_setPortMACAddress (macPortNum, macAddress);
+#else
CSL_CPSW_3GF_setPortMACAddress (macPortNum, macAddress);
+#endif
/* Configure VLAN ID/CFI/Priority.
*
* For now, we are not using VLANs so just configure them
* to all zeros.
*/
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_setPortVlanReg (macPortNum, 0, 0, 0);
+#else
CSL_CPSW_3GF_setPortVlanReg (macPortNum, 0, 0, 0);
+#endif
/* Configure the Receive Maximum length on this port,
* i.e., the maximum size the port can receive without
void Init_Switch (uint32_t mtu)
{
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_PORTSTAT portStatCfg;
+#else
CSL_CPSW_3GF_PORTSTAT portStatCfg;
+#endif
/* Enable the CPPI port, i.e., port 0 that does all
* the data streaming in/out of EMAC.
*/
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_enablePort0 ();
+ CSL_CPSW_disableVlanAware ();
+ CSL_CPSW_setPort0VlanReg (0, 0, 0);
+ CSL_CPSW_setPort0RxMaxLen (mtu);
+#else
CSL_CPSW_3GF_enablePort0 ();
CSL_CPSW_3GF_disableVlanAware ();
CSL_CPSW_3GF_setPort0VlanReg (0, 0, 0);
CSL_CPSW_3GF_setPort0RxMaxLen (mtu);
+#endif
/* Enable statistics on both the port groups:
*
* MAC Sliver ports - Port 1, Port 2
* CPPI Port - Port 0
*/
+#if (defined(SOC_K2K) || defined(SOC_K2H))
portStatCfg.p0AStatEnable = 1;
portStatCfg.p0BStatEnable = 1;
portStatCfg.p1StatEnable = 1;
portStatCfg.p2StatEnable = 1;
+#elif (defined(SOC_K2L) || defined(SOC_K2E))
+ portStatCfg.p0StatEnable = 1;
+ portStatCfg.p1StatEnable = 1;
+ portStatCfg.p2StatEnable = 1;
+ portStatCfg.p3StatEnable = 1;
+ portStatCfg.p4StatEnable = 1;
+ portStatCfg.p5StatEnable = 1;
+ portStatCfg.p6StatEnable = 1;
+ portStatCfg.p7StatEnable = 1;
+ portStatCfg.p8StatEnable = 1;
+#endif
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_setPortStatsEnableReg (&portStatCfg);
+#else
CSL_CPSW_3GF_setPortStatsEnableReg (&portStatCfg);
+#endif
/* Setup the Address Lookup Engine (ALE) Configuration:
* (1) Enable ALE.
* properties for the switch, i.e., which
* ports to send the packets to.
*/
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_enableAle ();
+ CSL_CPSW_clearAleTable ();
+
+ CSL_CPSW_disableAleVlanAware ();
+ CSL_CPSW_disableAleTxRateLimit ();
+ CSL_CPSW_setAlePrescaleReg (125000000u/1000u);
+ CSL_CPSW_setAleUnkownVlanReg (7, 3, 3, 7);
+#else
CSL_CPSW_3GF_enableAle ();
CSL_CPSW_3GF_clearAleTable ();
CSL_CPSW_3GF_disableAleTxRateLimit ();
CSL_CPSW_3GF_setAlePrescaleReg (125000000u/1000u);
CSL_CPSW_3GF_setAleUnkownVlanReg (7, 3, 3, 7);
+#endif
if(cpswLpbkMode != CPSW_LOOPBACK_NONE)
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_enableAleBypass();
+#else
CSL_CPSW_3GF_enableAleBypass();
+#endif
/* Done with switch configuration */
return;
int Switch_update_addr (uint32_t portNum, uint8_t macAddress[6], Uint16 add)
{
uint32_t i;
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_ALE_PORTCONTROL alePortControlCfg;
+ CSL_CPSW_ALE_UNICASTADDR_ENTRY ucastAddrCfg;
+#else
CSL_CPSW_3GF_ALE_PORTCONTROL alePortControlCfg;
CSL_CPSW_3GF_ALE_UNICASTADDR_ENTRY ucastAddrCfg;
-
+#endif
/* Configure the address in "Learning"/"Forward" state */
alePortControlCfg.portState = ALE_PORTSTATE_FORWARD;
alePortControlCfg.mcastLimit = 0;
alePortControlCfg.bcastLimit = 0;
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_setAlePortControlReg (portNum, &alePortControlCfg);
+#else
CSL_CPSW_3GF_setAlePortControlReg (portNum, &alePortControlCfg);
+#endif
if (cpswLpbkMode != CPSW_LOOPBACK_NONE)
{
* matching received packet must be forwarded to.
*/
/* Get the next free ALE entry to program */
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ for (i = 0; i < CSL_CPSW_NUMALE_ENTRIES; i++)
+#else
for (i = 0; i < CSL_CPSW_3GF_NUMALE_ENTRIES; i++)
+#endif
{
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ if (CSL_CPSW_getALEEntryType (i) == ALE_ENTRYTYPE_FREE)
+#else
if (CSL_CPSW_3GF_getALEEntryType (i) == ALE_ENTRYTYPE_FREE)
+#endif
{
/* Found a free entry */
break;
}
}
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ if (i == CSL_CPSW_NUMALE_ENTRIES)
+#else
if (i == CSL_CPSW_3GF_NUMALE_ENTRIES)
+#endif
{
/* No free ALE entry found. return error. */
return -1;
ucastAddrCfg.portNumber = portNum; // Add the ALE entry for this port
/* Setup the ALE entry for this port's MAC address */
+#if (defined(SOC_K2K) || defined(SOC_K2H) || defined(SOC_K2L) || defined(SOC_K2E))
+ CSL_CPSW_setAleUnicastAddrEntry (i, &ucastAddrCfg);
+#else
CSL_CPSW_3GF_setAleUnicastAddrEntry (i, &ucastAddrCfg);
+#endif
}
}
{
if (cpswSimTest)
{
+#if (!defined(SOC_K2K) && !defined(SOC_K2H) && !defined(SOC_K2L) && !defined(SOC_K2E))
/* Unlock the chip configuration registers to allow SGMII SERDES registers to
* be written */
/* Re-lock the chip configuration registers to prevent unintentional writes */
CSL_BootCfgLockKicker();
-
+#endif
}
/* SGMII SERDES Configuration complete. Return. */
#endif
-#if !(defined(_EVMC6678L_))
/******************************************************************************
* Function: post_test_emac_loopback
******************************************************************************/
{
return POST_TEST_RESULT_FAILED;
}
-
+
platform_delay(100);
-
+
/* Receive the loopback packet */
if (ret = cpmac_drv_receive (&nDevice, test_buf) <= 0)
{
#endif
return POST_TEST_RESULT_PASSED;
}
-#endif
void
post_hex_to_string
post_hex_to_string(reg_val, 8, msg);
msg[8] = ' ';
msg[9] = 0;
- post_write_uart(msg);
+ post_write_uart(msg);
}
/******************************************************************************
memset(&init_config, 0, sizeof(platform_init_config));
memset(&init_flags, 0x01, sizeof(platform_init_flags));
- init_flags.phy = 1;
+ init_flags.phy = 0;
acc_fail = 0;
/* Initialize the platform */
post_write_uart("\r\n\r------------------------------------------");
post_write_uart("\r\n\rSOC Information");
post_hex_to_string(info.board_rev, 4, msg);
- post_write_uart("\r\n\r\nFPGA Version: ");
+ post_write_uart("\r\n\r\nBMC Version: ");
post_write_uart(msg);
if (info.serial_nbr[0] != 0)
msg[3] = 0;
post_write_uart(msg);
}
-#if !(defined(_EVMC6657L_)||defined(_EVMC6655L_))
+#if !(defined(_EVMC6657L_)||defined(_EVMC6655L_) || defined(SOC_K2L) || defined(SOC_K2E))
sa_enable = *(volatile uint32_t *)0x20c0004;
+#elif defined(SOC_K2L)
+ sa_enable = *(volatile uint32_t *)0x260c0004;
+#elif defined(SOC_K2E)
+ sa_enable = *(volatile uint32_t *)0x240c0004;
+#endif
+#if !(defined(_EVMC6657L_)||defined(_EVMC6655L_))
sa_enable &= 0x1;
if (sa_enable)
/* Dump Additional Information */
post_dump_register_val ((uint32_t)&platform_init_return_code, "\r\n\rPlatform init return code: 0x");
+#if (!defined(SOC_K2K) && !defined(SOC_K2H))
post_write_uart("\r\n\rAdditional Information: ");
post_dump_register_val (0x02350014, "\r\n\r (0x02350014) :");
post_dump_register_val (0x02350624, "\r\n\r (0x02350624) :");
post_dump_register_val (0x02620180, "\r\n\r (0x02620180) :");
post_write_uart("\r\n\r------------------------------------------");
+#endif
}
post_write_uart("\r\n\r\nPower On Self Test\n");
acc_fail++;
}
post_display_status(POST_TEST_NAND, test_result);
-
-#if !(defined(_EVMC6678L_))
+#if 0
post_display_status(POST_TEST_EMAC_LOOPBACK, POST_TEST_RESULT_STARTED);
test_result = post_test_emac_loopback();
if (test_result == POST_TEST_RESULT_FAILED)
{
acc_fail++;
}
+
post_display_status(POST_TEST_EMAC_LOOPBACK, test_result);
#endif
-
post_display_status(POST_TEST_DDR, POST_TEST_RESULT_STARTED);
test_result = post_test_external_memory();
if (test_result == POST_TEST_RESULT_FAILED)
post_write_uart("\r\n\r\nPOST result: FAIL");
}
+#if (!defined(SOC_K2K) && !defined(SOC_K2H) && !defined(SOC_K2L) && !defined(SOC_K2E) )
post_write_serial_no();
+#endif
}