diff src/cs/drivers/drv_app/ffs/board/cfgffs.c @ 85:204d6866901b

FFS changes to support C139, Pirelli and future FreeCalypso targets
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 02 Oct 2016 08:10:40 +0000
parents 945cf7f506b2
children 7aad22344e77
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/board/cfgffs.c	Sun Oct 02 07:44:36 2016 +0000
+++ b/src/cs/drivers/drv_app/ffs/board/cfgffs.c	Sun Oct 02 08:10:40 2016 +0000
@@ -16,6 +16,7 @@
 #include "ffs/board/drv.h"
 
 #include "config/board.cfg"
+#include "config/fc-target.cfg"
 
 #if (BOARD == 34)
   #include "ffs/board/ffspcm.h"
@@ -56,6 +57,13 @@
 
 #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
@@ -67,6 +75,8 @@
 //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];