]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blobdiff - writer/eeprom/src/eepromwriter.c
Merge pull request #2 in PROCESSOR-SDK/mcsdk-tools from PRSDK-2194 to master
[keystone-rtos/mcsdk-tools.git] / writer / eeprom / src / eepromwriter.c
index a1df7a8933d84e35615a86c531c63956948b7c22..fb64d6e265be7baa748ba3e8787300420bd81c3c 100644 (file)
 #include <string.h>
 #include "platform.h"
 #include "types.h"
-#include "ti/csl/csl_semAux.h"
 
 /* EEPROM writer utility version */
-char version[] = "01.00.00.03";
+char version[] = "01.00.00.05";
+
 
 /* The input file name is hard coded */
 char *input_file = "eepromwriter_input.txt";
@@ -61,7 +61,7 @@ char *input_file = "eepromwriter_input.txt";
 #define SWAP_DATA      "swap_data"
 
 /* Memory address to store the write data */
-#define WRITE_DATA_ADDRESS     0x80000000
+#define WRITE_DATA_ADDRESS     0x0C000000
 
 /******************************************************************************
  * Structure:   EEPROM_WRITER_INFO_T
@@ -102,23 +102,11 @@ void Osal_platformFree (uint8_t *dataPtr, uint32_t num_bytes)
 
 void Osal_platformSpiCsEnter(void)
 {
-    /* Get the hardware semaphore.
-     *
-     * Acquire Multi core CPPI synchronization lock
-     */
-    while ((CSL_semAcquireDirect (3)) == 0);
-
     return;
 }
 
 void Osal_platformSpiCsExit (void)
 {
-    /* Release the hardware semaphore
-     *
-     * Release multi-core lock.
-     */
-    CSL_semReleaseSemaphore (3);
-
     return;
 }
 
@@ -343,7 +331,7 @@ parse_input_file
 )
 {
     char line[MAX_LINE_LENGTH];
-    char tokens[] = " :=;\n";
+    char tokens[] = " :=;\n\r";
     char *key, *data;
 
     memset(line, 0, MAX_LINE_LENGTH);
@@ -513,6 +501,8 @@ void main ()
     /* Initialize main Platform lib */
     memset(&init_config, 0, sizeof(platform_init_config));
     memset(&init_flags, 0x01, sizeof(platform_init_flags));
+    init_flags.pll = 0;
+    init_flags.ddr = 0;
     init_flags.phy = 0;
 
     if (platform_init(&init_flags, &init_config) != Platform_EOK)