post: Update for k2e & k2l
authorSam Nelson <sam.nelson@ti.com>
Thu, 20 Mar 2014 03:21:34 +0000 (23:21 -0400)
committerSam Nelson <sam.nelson@ti.com>
Thu, 20 Mar 2014 03:21:34 +0000 (23:21 -0400)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
14 files changed:
post/evmk2e/.ccsproject [new file with mode: 0644]
post/evmk2e/.cproject [new file with mode: 0644]
post/evmk2e/.project [new file with mode: 0644]
post/evmk2e/macros.ini [new file with mode: 0644]
post/evmk2e/post.cmd [new file with mode: 0644]
post/evmk2l/.ccsproject [new file with mode: 0644]
post/evmk2l/.cproject [new file with mode: 0644]
post/evmk2l/.project [new file with mode: 0644]
post/evmk2l/macros.ini_initial [new file with mode: 0644]
post/evmk2l/post.cmd [new file with mode: 0644]
post/include/post.h
post/include/target.h
post/src/cpdma.c
post/src/post.c

diff --git a/post/evmk2e/.ccsproject b/post/evmk2e/.ccsproject
new file mode 100644 (file)
index 0000000..4bb7066
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<?ccsproject version="1.0"?>
+<projectOptions>
+       <deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
+       <deviceEndianness value="little"/>
+       <codegenToolVersion value="7.4.2"/>
+       <isElfFormat value="true"/>
+       <rts value="rts6600_elf.lib"/>
+       <deviceFamily value="C6000"/>
+       <isTargetManual value="false"/>
+</projectOptions>
diff --git a/post/evmk2e/.cproject b/post/evmk2e/.cproject
new file mode 100644 (file)
index 0000000..08adced
--- /dev/null
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+       <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
+               <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Release">
+                               <macros>
+                                       <stringMacro name="TI_MCSDK_POST_DIR" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
+                               </macros>
+                               <externalSettings/>
+                               <extensions>
+                                       <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
+                                       <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                               </extensions>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+                               <configuration artifactExtension="out" artifactName="../bin/post_evmk2e" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Release" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
+                                       <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
+                                               <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.DebugToolchain.1136462551" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.linkerDebug.2025870380">
+                                                       <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.751265122" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
+                                                               <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
+                                                               <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
+                                                               <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
+                                                               <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
+                                                               <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=post.cmd"/>
+                                                               <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
+                                                               <listOptionValue builtIn="false" value="RTSC_PRODUCTS=ti.pdk:3.1.0.00;com.ti.rtsc.NDK:2.22.2.16;com.ti.rtsc.SYSBIOS:6.37.0.20;"/>
+                                                               <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
+                                                       </option>
+                                                       <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.60778748" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.4.2" valueType="string"/>
+                                                       <targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.targetPlatformDebug.1149997848" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.targetPlatformDebug"/>
+                                                       <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.builderDebug.4445862" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.builderDebug"/>
+                                                       <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.compilerDebug.1501124947" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.compilerDebug">
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.SILICON_VERSION.1161494029" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEBUGGING_MODEL.953219106" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_LEVEL.957957051" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_LEVEL._none" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEFINE.1118010219" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEFINE" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="DEVICE_K2E"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.INCLUDE_PATH.161653540" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.INCLUDE_PATH" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${TI_PDK_INSTALL_DIR}/packages/ti/platform&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${TI_PDK_INSTALL_DIR}/packages/&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/../include&quot;"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DISPLAY_ERROR_NUMBER.1202420442" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DIAG_WARNING.2101880759" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DIAG_WARNING" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="225"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.ABI.2002794867" name="Application binary interface (coffabi, eabi) [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.ABI.eabi" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_FOR_SPACE.1136816882" name="Optimize for code size (--opt_for_space, -ms)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_FOR_SPACE" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_FOR_SPACE._none" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPTIMIZE_WITH_DEBUG.276963767" name="Optimize fully in the presence of debug directives (--optimize_with_debug, -mn)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPTIMIZE_WITH_DEBUG" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPTIMIZE_WITH_DEBUG._none" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DISABLE_PUSH_POP.1736418541" name="Disable push-pop optimization. (--disable_push_pop)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DISABLE_PUSH_POP" value="true" valueType="boolean"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__C_SRCS.658411556" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__C_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__CPP_SRCS.1570868798" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__CPP_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__ASM_SRCS.513556445" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__ASM_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__ASM2_SRCS.448107700" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__ASM2_SRCS"/>
+                                                       </tool>
+                                                       <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.linkerDebug.2025870380" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.linkerDebug">
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.OUTPUT_FILE.1387690635" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.OUTPUT_FILE" value="&quot;../bin/post_evmk2e.out&quot;" valueType="string"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.MAP_FILE.1118173402" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.MAP_FILE" value="&quot;../bin/post_evmk2e.map&quot;" valueType="string"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.LIBRARY.1449601348" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.LIBRARY" valueType="libs">
+                                                                       <listOptionValue builtIn="false" value="&quot;ti.platform.evmk2e.lite.lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;libc.a&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;ti.csl.ae66&quot;"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.SEARCH_PATH.1694659847" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.SEARCH_PATH" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${TI_PDK_INSTALL_DIR}/packages/ti/platform/evmk2e/platform_lib/lib/debug&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${TI_PDK_INSTALL_DIR}/packages/ti/csl/lib/k2e/c66&quot;"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.XML_LINK_INFO.2038257971" name="Detailed link information data-base into &lt;file&gt; (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.XML_LINK_INFO" value="&quot;../bin/post_evmk2e_linkInfo.xml&quot;" valueType="string"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__CMD_SRCS.720160824" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__CMD_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__CMD2_SRCS.1168356653" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__CMD2_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__GEN_CMDS.1409799359" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__GEN_CMDS"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <sourceEntries>
+                                               <entry excluding="src/evmc665x_sgmii.c|src/evmc665x_emac.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                       </sourceEntries>
+                               </configuration>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+                       <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+                       <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+               </cconfiguration>
+       </storageModule>
+       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+               <project id="post.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
+       </storageModule>
+       <storageModule moduleId="org.eclipse.cdt.core.language.mapping">
+               <project-mappings>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
+               </project-mappings>
+       </storageModule>
+       <storageModule moduleId="refreshScope"/>
+       <storageModule moduleId="scannerConfiguration"/>
+       <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
+</cproject>
diff --git a/post/evmk2e/.project b/post/evmk2e/.project
new file mode 100644 (file)
index 0000000..ac5f363
--- /dev/null
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>post_evmk2e</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+                       <arguments>
+                               <dictionary>
+                                       <key>?name?</key>
+                                       <value></value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.append_environment</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+                                       <value>all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildArguments</key>
+                                       <value>-k</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildCommand</key>
+                                       <value>${CCS_UTILS_DIR}/bin/gmake</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildLocation</key>
+                                       <value>${BuildDirectory}</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+                                       <value>clean</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.contents</key>
+                                       <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+                                       <value>all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.stopOnError</key>
+                                       <value>false</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+                                       <value>true</value>
+                               </dictionary>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+                       <triggers>full,incremental,</triggers>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature>
+               <nature>com.ti.ccstudio.core.ccsNature</nature>
+               <nature>org.eclipse.cdt.core.cnature</nature>
+               <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+               <nature>org.eclipse.cdt.core.ccnature</nature>
+               <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+       </natures>
+       <linkedResources>
+               <link>
+                       <name>README.txt</name>
+                       <type>1</type>
+                       <locationURI>TI_MCSDK_POST_DIR/post/docs/README.txt</locationURI>
+               </link>
+               <link>
+                       <name>include</name>
+                       <type>2</type>
+                       <locationURI>TI_MCSDK_POST_DIR/post/include</locationURI>
+               </link>
+               <link>
+                       <name>src</name>
+                       <type>2</type>
+                       <locationURI>TI_MCSDK_POST_DIR/post/src</locationURI>
+               </link>
+       </linkedResources>
+       <variableList>
+               <variable>
+                       <name>TI_MCSDK_POST_DIR</name>
+                       <value>$%7BPARENT-2-PROJECT_LOC%7D</value>
+               </variable>
+       </variableList>
+</projectDescription>
diff --git a/post/evmk2e/macros.ini b/post/evmk2e/macros.ini
new file mode 100644 (file)
index 0000000..7c28ad8
--- /dev/null
@@ -0,0 +1 @@
+TI_MCSDK_POST_DIR="../../../../
diff --git a/post/evmk2e/post.cmd b/post/evmk2e/post.cmd
new file mode 100644 (file)
index 0000000..9b142c8
--- /dev/null
@@ -0,0 +1,83 @@
+/******************************************************************************
+ * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
+ * 
+ *  Redistribution and use in source and binary forms, with or without 
+ *  modification, are permitted provided that the following conditions 
+ *  are met:
+ *
+ *    Redistributions of source code must retain the above copyright 
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the 
+ *    documentation and/or other materials provided with the   
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * 
+ *****************************************************************************/
+/*
+ *  Linker command file
+ *
+ */
+
+-c
+-heap  0x4000
+-stack 0x4000
+
+/* Memory Map 1 - the default */
+MEMORY
+{
+    L1PSRAM (RWX)  : org = 0x0E00000, len = 0x7FFF
+    L1DSRAM (RWX)  : org = 0x0F00000, len = 0x7FFF 
+
+    L2SRAM (RWX)   : org = 0x0830000, len = 0x50000
+    MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000
+    DDR3 (RWX)     : org = 0x80000000,len = 0x10000000
+       LINKRAM   :  origin =  0x10820000, length = 0x0200
+       CPPIRAM   :  origin =  0x10820200, length = 0x0200
+       PKTRAM    :  origin =  0x10820400, length = 0x0800
+}
+
+       
+SECTIONS
+{
+    .csl_vect   >       L2SRAM
+    .cppi       >       CPPIRAM
+    .qmss       >       L2SRAM
+    .linkram    >       LINKRAM
+    .mac_buffer >       PKTRAM
+    .version    >       L2SRAM
+    platform_lib>       L2SRAM
+    .text       >       L2SRAM
+    GROUP (NEAR_DP)
+    {
+    .neardata
+    .rodata 
+    .bss
+    } load > L2SRAM
+    .stack      >       L2SRAM
+    .cinit      >       L2SRAM
+    .cio        >       L2SRAM
+    .const      >       L2SRAM
+    .data       >       L2SRAM
+    .switch     >       L2SRAM
+    .sysmem     >       L2SRAM
+    .far        >       L2SRAM
+    .testMem    >       L2SRAM
+    .fardata    >       L2SRAM
+}
diff --git a/post/evmk2l/.ccsproject b/post/evmk2l/.ccsproject
new file mode 100644 (file)
index 0000000..4bb7066
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<?ccsproject version="1.0"?>
+<projectOptions>
+       <deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
+       <deviceEndianness value="little"/>
+       <codegenToolVersion value="7.4.2"/>
+       <isElfFormat value="true"/>
+       <rts value="rts6600_elf.lib"/>
+       <deviceFamily value="C6000"/>
+       <isTargetManual value="false"/>
+</projectOptions>
diff --git a/post/evmk2l/.cproject b/post/evmk2l/.cproject
new file mode 100644 (file)
index 0000000..eda90cc
--- /dev/null
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+       <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
+               <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Release">
+                               <macros>
+                                       <stringMacro name="TI_MCSDK_POST_DIR" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
+                               </macros>
+                               <externalSettings/>
+                               <extensions>
+                                       <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
+                                       <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                               </extensions>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+                               <configuration artifactExtension="out" artifactName="../bin/post_evmk2l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Release" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
+                                       <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
+                                               <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.DebugToolchain.1136462551" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.linkerDebug.2025870380">
+                                                       <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.751265122" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
+                                                               <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
+                                                               <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
+                                                               <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
+                                                               <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
+                                                               <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=post.cmd"/>
+                                                               <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
+                                                               <listOptionValue builtIn="false" value="RTSC_PRODUCTS=ti.pdk:3.1.0.00;com.ti.rtsc.NDK:2.22.2.16;com.ti.rtsc.SYSBIOS:6.37.0.20;"/>
+                                                               <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
+                                                       </option>
+                                                       <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.60778748" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.4.2" valueType="string"/>
+                                                       <targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.targetPlatformDebug.1149997848" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.targetPlatformDebug"/>
+                                                       <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.builderDebug.4445862" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.builderDebug"/>
+                                                       <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.compilerDebug.1501124947" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.compilerDebug">
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.SILICON_VERSION.1161494029" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEBUGGING_MODEL.953219106" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_LEVEL.957957051" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_LEVEL._none" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEFINE.1118010219" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DEFINE" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="DEVICE_K2L"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.INCLUDE_PATH.161653540" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.INCLUDE_PATH" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${TI_PDK_INSTALL_DIR}/packages/ti/platform&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${TI_PDK_INSTALL_DIR}/packages/&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${PROJECT_ROOT}/../include&quot;"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DISPLAY_ERROR_NUMBER.1202420442" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DIAG_WARNING.2101880759" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DIAG_WARNING" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="225"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.ABI.2002794867" name="Application binary interface (coffabi, eabi) [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.ABI.eabi" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_FOR_SPACE.1136816882" name="Optimize for code size (--opt_for_space, -ms)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_FOR_SPACE" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPT_FOR_SPACE._none" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPTIMIZE_WITH_DEBUG.276963767" name="Optimize fully in the presence of debug directives (--optimize_with_debug, -mn)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPTIMIZE_WITH_DEBUG" value="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.OPTIMIZE_WITH_DEBUG._none" valueType="enumerated"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DISABLE_PUSH_POP.1736418541" name="Disable push-pop optimization. (--disable_push_pop)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compilerID.DISABLE_PUSH_POP" value="true" valueType="boolean"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__C_SRCS.658411556" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__C_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__CPP_SRCS.1570868798" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__CPP_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__ASM_SRCS.513556445" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__ASM_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__ASM2_SRCS.448107700" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.compiler.inputType__ASM2_SRCS"/>
+                                                       </tool>
+                                                       <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.linkerDebug.2025870380" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exe.linkerDebug">
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.OUTPUT_FILE.1387690635" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.OUTPUT_FILE" value="&quot;../bin/post_evmk2l.out&quot;" valueType="string"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.MAP_FILE.1118173402" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.MAP_FILE" value="&quot;../bin/post_evmk2l.map&quot;" valueType="string"/>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.LIBRARY.1449601348" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.LIBRARY" valueType="libs">
+                                                                       <listOptionValue builtIn="false" value="&quot;ti.platform.evmk2l.lite.lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;libc.a&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;ti.csl.ae66&quot;"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.SEARCH_PATH.1694659847" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.SEARCH_PATH" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${TI_PDK_INSTALL_DIR}/packages/ti/platform/evmk2l/platform_lib/lib/debug&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${TI_PDK_INSTALL_DIR}/packages/ti/csl/lib/k2l/c66&quot;"/>
+                                                               </option>
+                                                               <option id="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.XML_LINK_INFO.2038257971" name="Detailed link information data-base into &lt;file&gt; (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.linkerID.XML_LINK_INFO" value="&quot;../bin/post_evmk2l_linkInfo.xml&quot;" valueType="string"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__CMD_SRCS.720160824" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__CMD_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__CMD2_SRCS.1168356653" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__CMD2_SRCS"/>
+                                                               <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__GEN_CMDS.1409799359" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.4.exeLinker.inputType__GEN_CMDS"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <sourceEntries>
+                                               <entry excluding="src/evmc665x_sgmii.c|src/evmc665x_emac.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                       </sourceEntries>
+                               </configuration>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+                       <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+                       <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+               </cconfiguration>
+       </storageModule>
+       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+               <project id="post.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
+       </storageModule>
+       <storageModule moduleId="org.eclipse.cdt.core.language.mapping">
+               <project-mappings>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
+                       <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
+               </project-mappings>
+       </storageModule>
+       <storageModule moduleId="refreshScope"/>
+       <storageModule moduleId="scannerConfiguration"/>
+       <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
+</cproject>
diff --git a/post/evmk2l/.project b/post/evmk2l/.project
new file mode 100644 (file)
index 0000000..3ecbd47
--- /dev/null
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>post_evmk2l</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+                       <arguments>
+                               <dictionary>
+                                       <key>?name?</key>
+                                       <value></value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.append_environment</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+                                       <value>all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildArguments</key>
+                                       <value>-k</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildCommand</key>
+                                       <value>${CCS_UTILS_DIR}/bin/gmake</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildLocation</key>
+                                       <value>${BuildDirectory}</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+                                       <value>clean</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.contents</key>
+                                       <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+                                       <value>all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.stopOnError</key>
+                                       <value>false</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+                                       <value>true</value>
+                               </dictionary>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+                       <triggers>full,incremental,</triggers>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature>
+               <nature>com.ti.ccstudio.core.ccsNature</nature>
+               <nature>org.eclipse.cdt.core.cnature</nature>
+               <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+               <nature>org.eclipse.cdt.core.ccnature</nature>
+               <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+       </natures>
+       <linkedResources>
+               <link>
+                       <name>README.txt</name>
+                       <type>1</type>
+                       <locationURI>TI_MCSDK_POST_DIR/post/docs/README.txt</locationURI>
+               </link>
+               <link>
+                       <name>include</name>
+                       <type>2</type>
+                       <locationURI>TI_MCSDK_POST_DIR/post/include</locationURI>
+               </link>
+               <link>
+                       <name>src</name>
+                       <type>2</type>
+                       <locationURI>TI_MCSDK_POST_DIR/post/src</locationURI>
+               </link>
+       </linkedResources>
+       <variableList>
+               <variable>
+                       <name>TI_MCSDK_POST_DIR</name>
+                       <value>$%7BPARENT-2-PROJECT_LOC%7D</value>
+               </variable>
+       </variableList>
+</projectDescription>
diff --git a/post/evmk2l/macros.ini_initial b/post/evmk2l/macros.ini_initial
new file mode 100644 (file)
index 0000000..7c28ad8
--- /dev/null
@@ -0,0 +1 @@
+TI_MCSDK_POST_DIR="../../../../
diff --git a/post/evmk2l/post.cmd b/post/evmk2l/post.cmd
new file mode 100644 (file)
index 0000000..9b142c8
--- /dev/null
@@ -0,0 +1,83 @@
+/******************************************************************************
+ * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
+ * 
+ *  Redistribution and use in source and binary forms, with or without 
+ *  modification, are permitted provided that the following conditions 
+ *  are met:
+ *
+ *    Redistributions of source code must retain the above copyright 
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the 
+ *    documentation and/or other materials provided with the   
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * 
+ *****************************************************************************/
+/*
+ *  Linker command file
+ *
+ */
+
+-c
+-heap  0x4000
+-stack 0x4000
+
+/* Memory Map 1 - the default */
+MEMORY
+{
+    L1PSRAM (RWX)  : org = 0x0E00000, len = 0x7FFF
+    L1DSRAM (RWX)  : org = 0x0F00000, len = 0x7FFF 
+
+    L2SRAM (RWX)   : org = 0x0830000, len = 0x50000
+    MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000
+    DDR3 (RWX)     : org = 0x80000000,len = 0x10000000
+       LINKRAM   :  origin =  0x10820000, length = 0x0200
+       CPPIRAM   :  origin =  0x10820200, length = 0x0200
+       PKTRAM    :  origin =  0x10820400, length = 0x0800
+}
+
+       
+SECTIONS
+{
+    .csl_vect   >       L2SRAM
+    .cppi       >       CPPIRAM
+    .qmss       >       L2SRAM
+    .linkram    >       LINKRAM
+    .mac_buffer >       PKTRAM
+    .version    >       L2SRAM
+    platform_lib>       L2SRAM
+    .text       >       L2SRAM
+    GROUP (NEAR_DP)
+    {
+    .neardata
+    .rodata 
+    .bss
+    } load > L2SRAM
+    .stack      >       L2SRAM
+    .cinit      >       L2SRAM
+    .cio        >       L2SRAM
+    .const      >       L2SRAM
+    .data       >       L2SRAM
+    .switch     >       L2SRAM
+    .sysmem     >       L2SRAM
+    .far        >       L2SRAM
+    .testMem    >       L2SRAM
+    .fardata    >       L2SRAM
+}
index 9cf63a871113b8a821b8a7a9d91227ad85c60634..2b5562b96724fc93da609b9c3a7d6be5ff021a30 100755 (executable)
@@ -88,7 +88,7 @@ typedef enum
 } POST_TEST_ID;
 
 #define POST_MAX_NUM_LED        4   /* Total number of LEDs on the EVM */
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2E) || defined(DEVICE_K2L))
 static uint8_t post_led_status[POST_MAX_TEST_NUM][POST_MAX_NUM_LED] =
 {
        /* LED0: red   LED0: green   LED1: blue   LED2: blue */
@@ -164,6 +164,16 @@ static char post_status[POST_MAX_TEST_NUM][POST_STATUS_MAX_NUM_CHAR] =
        #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(DEVICE_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(DEVICE_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 */
index 5723a4607e0ad06d571f0e7b44f37c4cc9dc77d3..cc3167c298245055ed9d30ff58a6b330355c6507 100755 (executable)
  *  @brief
  *    Device PLL definitions
  */
+#if defined(DEVICE_K2K) || defined(DEVICE_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(DEVICE_K2L) || defined(DEVICE_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
@@ -195,7 +200,13 @@ uint32_t deviceNandMemBase (int32_t cs);
  * @brief
  *   The base address of MDIO
  */
+#if defined(DEVICE_K2K) || defined(DEVICE_K2H)
 #define TARGET_MDIO_BASE    0x2090300
+#elif defined(DEVICE_K2E)
+#define TARGET_MDIO_BASE    0x24200F00
+#elif defined(DEVICE_K2L)
+#define TARGET_MDIO_BASE    0x26200F00
+#endif
 
 /**
  * @brief
@@ -227,12 +238,18 @@ int32_t chipPllExternalMult (uint16_t pllNum, uint16_t mult);
  */
 #define DEVICE_CPSW
 #define DEVICE_CPSW_NUM_PORTS       3                    /* 3 switch ports */
+#if defined(DEVICE_K2L)
+#define DEVICE_CPSW_BASE (0x26200000)
+#elif defined(DEVICE_K2K) || (DEVICE_K2H)
 #define DEVICE_CPSW_BASE            (0x02090800)
+#elif defined(DEVICE_K2E)
+#define DEVICE_CPSW_BASE                       0x24200000
+#endif
 #define targetGetSwitchCtl()        CPSW_CTL_P0_ENABLE   /* Enable port 0 */
 #define targetGetSwitchMaxPktSize() 9000
 
 #define DEVICE_QM
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2E) || defined(DEVICE_K2L))
 #define DEVICE_QM_MANAGER_BASE          0x02A02000
 #define DEVICE_QM_DESC_SETUP_BASE       0x02A03000
 #define DEVICE_QM_MANAGER_QUEUES_BASE   0x02A80000
@@ -257,45 +274,92 @@ void     targetInitQs (void);
 
 #define chipLmbd(x,y) _lmbd(x,y)
 
-
-
-
 #define DEVICE_CPDMA
+#if defined(DEVICE_K2K) || (DEVICE_K2H)
+#define DEVICE_NETCP_CFG_BASE 0x02000000
+#elif defined(DEVICE_K2L)
+#define DEVICE_NETCP_CFG_BASE  0x26000000
+#elif defined(DEVICE_K2E)
+#define DEVICE_NETCP_CFG_BASE  0x24000000
+#endif
 
-#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
+//Corrected
+#if defined(DEVICE_K2K) || (DEVICE_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(DEVICE_K2L) || defined(DEVICE_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(DEVICE_K2K) || defined(DEVICE_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(DEVICE_K2L) || defined(DEVICE_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(DEVICE_K2K) || defined(DEVICE_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(DEVICE_K2L) || defined(DEVICE_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(DEVICE_K2K) || defined(DEVICE_K2H)
 #define DEVICE_PA_BASE                  0x02000000
 #define DEVICE_PA_NUM_PDSPS             6
+#elif defined(DEVICE_K2L)
+#define DEVICE_PA_BASE                  0x26000000
+#define DEVICE_PA_NUM_PDSPS             6
+#elif defined(DEVICE_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(DEVICE_K2K) || defined(DEVICE_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(DEVICE_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(DEVICE_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
@@ -304,14 +368,28 @@ void targetSgmiiSerdesConfig (int32_t port, void *cfg);
 #define chipKickClosedSerdes(x)         ;       /* never lock the registers */
 #define TARGET_SERDES_LOCK_DELAY        (1600*1000)
 
+#if defined(DEVICE_K2H) || defined(DEVICE_K2K)
 #define DEVICE_EMACSL_BASE(x)           (0x02090900 + (x)*0x040)
+#elif defined(DEVICE_K2L)
+#define DEVICE_EMACSL_BASE(x)           (0x26220000 + (x)*0x040)
+#elif defined(DEVICE_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(DEVICE_K2H) || defined(DEVICE_K2K)
 #define DEVICE_PSTREAM_CFG_REG_ADDR                 0x2000604
+#elif defined(DEVICE_K2L)
+#define DEVICE_PSTREAM_CFG_REG_ADDR                 0x26000604
+#elif defined(DEVICE_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);
 
index c5c2067ea62c0c7ce912c4de6e0b68c1a1305366..bbccb2b63223e2aecf9845f7c2a7632eed5fa176 100755 (executable)
@@ -148,7 +148,7 @@ int16_t hwCpdmaTxConfig (const cpdmaTxCfg_t *cfg)
     /* Disable loopback in the tx direction */
     DEVICE_REG32_W (cfg->gblCtlBase + CPDMA_REG_EMU_CTL, CPDMA_REG_VAL_EMU_CTL_NO_LOOPBACK);
 
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2E) || defined(DEVICE_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
index 0f3c362a34592bd9114577db9fc88054693cee20..3131ad258af859f2122036279d069c5e4cd1f274 100755 (executable)
@@ -240,18 +240,19 @@ post_test_external_memory
 {
     POST_TEST_RESULT    test_result = POST_TEST_RESULT_PASSED;
 
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2E) || defined(DEVICE_K2L))
     /* DDR3A test */
     if(platform_external_memory_test(0x80000000, 0x88000000) != Platform_EOK)
     {
         test_result = POST_TEST_RESULT_FAILED;
     }
-
+#if (defined(DEVICE_K2K) || defined(DEVICE_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)
     {
@@ -529,8 +530,8 @@ int Init_MAC (uint32_t macPortNum, uint8_t macAddress[6], uint32_t mtu)
     CSL_CPGMAC_SL_enableExtControl (macPortNum);
 
     /* Configure the MAC address for this port */
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-    CSL_CPSW_nGF_setPortMACAddress (macPortNum, macAddress);
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+    CSL_CPSW_setPortMACAddress (macPortNum, macAddress);
 #else
     CSL_CPSW_3GF_setPortMACAddress (macPortNum, macAddress);
 #endif
@@ -540,8 +541,8 @@ int Init_MAC (uint32_t macPortNum, uint8_t macAddress[6], uint32_t mtu)
      * For now, we are not using VLANs so just configure them
      * to all zeros.
      */
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-    CSL_CPSW_nGF_setPortVlanReg (macPortNum, 0, 0, 0);
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+       CSL_CPSW_setPortVlanReg (macPortNum, 0, 0, 0);
 #else
     CSL_CPSW_3GF_setPortVlanReg (macPortNum, 0, 0, 0);
 #endif
@@ -561,8 +562,8 @@ int Init_MAC (uint32_t macPortNum, uint8_t macAddress[6], uint32_t mtu)
 
 void Init_Switch (uint32_t mtu)
 {
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-    CSL_CPSW_5GF_PORTSTAT               portStatCfg;
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+       CSL_CPSW_PORTSTAT               portStatCfg;
 #else
     CSL_CPSW_3GF_PORTSTAT               portStatCfg;
 #endif
@@ -570,11 +571,11 @@ void Init_Switch (uint32_t mtu)
     /* Enable the CPPI port, i.e., port 0 that does all
      * the data streaming in/out of EMAC.
      */
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-    CSL_CPSW_nGF_enablePort0 ();
-    CSL_CPSW_nGF_disableVlanAware ();
-    CSL_CPSW_nGF_setPort0VlanReg (0, 0, 0);
-    CSL_CPSW_nGF_setPort0RxMaxLen (mtu);
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_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 ();
@@ -587,12 +588,24 @@ void Init_Switch (uint32_t mtu)
      * MAC Sliver ports -   Port 1, Port 2
      * CPPI Port        -   Port 0
      */
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
     portStatCfg.p0AStatEnable   =   1;
     portStatCfg.p0BStatEnable   =   1;
     portStatCfg.p1StatEnable    =   1;
     portStatCfg.p2StatEnable    =   1;
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-    CSL_CPSW_nGF_setPortStatsEnableReg (&portStatCfg);
+#elif (defined(DEVICE_K2L) || defined(DEVICE_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(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+       CSL_CPSW_setPortStatsEnableReg (&portStatCfg);
 #else
     CSL_CPSW_3GF_setPortStatsEnableReg (&portStatCfg);
 #endif
@@ -607,14 +620,14 @@ void Init_Switch (uint32_t mtu)
      *          properties for the switch, i.e., which
      *          ports to send the packets to.
      */
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-    CSL_CPSW_nGF_enableAle ();
-    CSL_CPSW_nGF_clearAleTable ();
-
-    CSL_CPSW_nGF_disableAleVlanAware ();
-    CSL_CPSW_nGF_disableAleTxRateLimit ();
-    CSL_CPSW_nGF_setAlePrescaleReg (125000000u/1000u);
-    CSL_CPSW_nGF_setAleUnkownVlanReg (7, 3, 3, 7);
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_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 ();
@@ -626,8 +639,8 @@ void Init_Switch (uint32_t mtu)
 #endif
 
     if(cpswLpbkMode != CPSW_LOOPBACK_NONE)
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-        CSL_CPSW_nGF_enableAleBypass();
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+       CSL_CPSW_enableAleBypass();
 #else
         CSL_CPSW_3GF_enableAleBypass();
 #endif
@@ -639,9 +652,9 @@ void Init_Switch (uint32_t mtu)
 int Switch_update_addr (uint32_t portNum, uint8_t macAddress[6], Uint16 add)
 {
     uint32_t                              i;
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-    CSL_CPSW_5GF_ALE_PORTCONTROL        alePortControlCfg;
-    CSL_CPSW_5GF_ALE_UNICASTADDR_ENTRY  ucastAddrCfg;
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_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;
@@ -655,8 +668,8 @@ int Switch_update_addr (uint32_t portNum, uint8_t macAddress[6], Uint16 add)
     alePortControlCfg.mcastLimit            =   0;
     alePortControlCfg.bcastLimit            =   0;
 
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-    CSL_CPSW_nGF_setAlePortControlReg (portNum, &alePortControlCfg);
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+       CSL_CPSW_setAlePortControlReg (portNum, &alePortControlCfg);
 #else
     CSL_CPSW_3GF_setAlePortControlReg (portNum, &alePortControlCfg);
 #endif
@@ -669,14 +682,14 @@ int Switch_update_addr (uint32_t portNum, uint8_t macAddress[6], Uint16 add)
         * matching received packet must be forwarded to.
         */
         /* Get the next free ALE entry to program */
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-        for (i = 0; i < CSL_CPSW_5GF_NUMALE_ENTRIES; i++)
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+        for (i = 0; i < CSL_CPSW_NUMALE_ENTRIES; i++)
 #else
         for (i = 0; i < CSL_CPSW_3GF_NUMALE_ENTRIES; i++)
 #endif
         {
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-            if (CSL_CPSW_nGF_getALEEntryType (i) == ALE_ENTRYTYPE_FREE)
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+            if (CSL_CPSW_getALEEntryType (i) == ALE_ENTRYTYPE_FREE)
 #else
             if (CSL_CPSW_3GF_getALEEntryType (i) == ALE_ENTRYTYPE_FREE)
 #endif
@@ -685,8 +698,8 @@ int Switch_update_addr (uint32_t portNum, uint8_t macAddress[6], Uint16 add)
                 break;
             }
         }
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-        if (i == CSL_CPSW_5GF_NUMALE_ENTRIES)
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+       if (i == CSL_CPSW_NUMALE_ENTRIES)
 #else
         if (i == CSL_CPSW_3GF_NUMALE_ENTRIES)
 #endif
@@ -704,8 +717,8 @@ int Switch_update_addr (uint32_t portNum, uint8_t macAddress[6], Uint16 add)
             ucastAddrCfg.portNumber     =      portNum;   // Add the ALE entry for this port
 
             /* Setup the ALE entry for this port's MAC address */
-#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
-            CSL_CPSW_nGF_setAleUnicastAddrEntry (i, &ucastAddrCfg);
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
+            CSL_CPSW_setAleUnicastAddrEntry (i, &ucastAddrCfg);
 #else
             CSL_CPSW_3GF_setAleUnicastAddrEntry (i, &ucastAddrCfg);
 #endif
@@ -720,7 +733,7 @@ int32_t Init_SGMII_SERDES(void)
 {
     if (cpswSimTest)
     {
-#if (!defined(DEVICE_K2K) && !defined(DEVICE_K2H))
+#if (!defined(DEVICE_K2K) && !defined(DEVICE_K2H) && !defined(DEVICE_K2L) && !defined(DEVICE_K2E))
 
            /* Unlock the chip configuration registers to allow SGMII SERDES registers to
            * be written */
@@ -1146,8 +1159,14 @@ main
             msg[3] = 0;
             post_write_uart(msg);
         }
-#if !(defined(_EVMC6657L_)||defined(_EVMC6655L_))
+#if !(defined(_EVMC6657L_)||defined(_EVMC6655L_) || defined(DEVICE_K2L) || defined(DEVICE_K2E))
         sa_enable = *(volatile uint32_t *)0x20c0004;
+#elif defined(DEVICE_K2L)
+        sa_enable = *(volatile uint32_t *)0x260c0004;
+#elif defined(DEVICE_K2E)
+        sa_enable = *(volatile uint32_t *)0x240c0004;
+#endif
+#if !(defined(_EVMC6657L_)||defined(_EVMC6655L_))
         sa_enable &= 0x1;
 
         if (sa_enable)
@@ -1224,15 +1243,16 @@ main
        acc_fail++;
     }
     post_display_status(POST_TEST_NAND, test_result);
-
+#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);
 
+    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)
@@ -1252,7 +1272,7 @@ main
        post_write_uart("\r\n\r\nPOST result: FAIL");
     }
 
-#if (!defined(DEVICE_K2K) && !defined(DEVICE_K2H))
+#if (!defined(DEVICE_K2K) && !defined(DEVICE_K2H) && !defined(DEVICE_K2L) && !defined(DEVICE_K2E) )
     post_write_serial_no();
 #endif
 }