diff src/cs/drivers/drv_app/ffs/board/cfgffs.c @ 134:7d50d8d13711

FFS code sync with Magnetite + gcc version fix This change brings the new flash autodetection for FC and Pirelli targets from Magnetite, and should also fix the gcc version for C1xx and gtamodem targets, which were previously broken because they used TI's original flash autodetect code (which operates at address 0) while the boot ROM is mapped there.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Dec 2018 08:43:25 +0000
parents b6a5e36de839
children
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/board/cfgffs.c	Mon Nov 19 07:19:05 2018 +0000
+++ b/src/cs/drivers/drv_app/ffs/board/cfgffs.c	Tue Dec 11 08:43:25 2018 +0000
@@ -16,7 +16,6 @@
 #include "ffs/board/drv.h"
 
 #include "config/board.cfg"
-#include "config/fc-target.cfg"
 
 #if (BOARD == 34)
   #include "ffs/board/ffspcm.h"
@@ -57,13 +56,6 @@
 
 #else
 
-#if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM)
-
-uint16 ffs_flash_manufact = MANUFACT_AMD;
-uint16 ffs_flash_device   = 0x2101;
-
-#else
-
 uint16 ffs_flash_manufact = 0x00; // autodetect device
 //uint16 ffs_flash_manufact = MANUFACT_RAM;
 //uint16 ffs_flash_manufact = 0x04; // Fujitsu
@@ -75,8 +67,6 @@
 //uint16 ffs_flash_device   = 0x2761; // SST device 1601
 //uint16 ffs_flash_device   = 0x2259; // 8x8kB blocks
 
-#endif
-
 int ffs_ram_image_address = 0;  // Dummy
 
 //unsigned char ffs_image[8*8*1024];