]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blobdiff - writer/eeprom/src/eepromwriter.c
Bumped up eepromwriter for changing to use MSMC
[keystone-rtos/mcsdk-tools.git] / writer / eeprom / src / eepromwriter.c
index 90b9eaa5d3c566b775c970b77a3d171ff426876b..fb64d6e265be7baa748ba3e8787300420bd81c3c 100644 (file)
@@ -48,7 +48,8 @@
 #include "types.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";
@@ -60,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
@@ -84,6 +85,31 @@ typedef struct EEPROM_WRITER_INFO_tag
 
 EEPROM_WRITER_INFO_T eepromWriterInfo;
 
+/* OSAL functions for Platform Library */
+uint8_t *Osal_platformMalloc (uint32_t num_bytes, uint32_t alignment)
+{
+       return malloc(num_bytes);
+}
+
+void Osal_platformFree (uint8_t *dataPtr, uint32_t num_bytes)
+{
+    /* Free up the memory */
+    if (dataPtr)
+    {
+        free(dataPtr);
+    }
+}
+
+void Osal_platformSpiCsEnter(void)
+{
+    return;
+}
+
+void Osal_platformSpiCsExit (void)
+{
+    return;
+}
+
 /******************************************************************************
  * Function:    print_platform_errno
  ******************************************************************************/
@@ -305,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);
@@ -475,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)