comparison src/cs/drivers/drv_app/ffs/board/cfgffs.c @ 557:7aad22344e77

flash autodetection made to work on FC and Pirelli targets
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Dec 2018 07:37:44 +0000
parents 204d6866901b
children
comparison
equal deleted inserted replaced
556:39a226a06196 557:7aad22344e77
14 14
15 #include "ffs/ffs.h" 15 #include "ffs/ffs.h"
16 #include "ffs/board/drv.h" 16 #include "ffs/board/drv.h"
17 17
18 #include "config/board.cfg" 18 #include "config/board.cfg"
19 #include "config/fc-target.cfg"
20 19
21 #if (BOARD == 34) 20 #if (BOARD == 34)
22 #include "ffs/board/ffspcm.h" 21 #include "ffs/board/ffspcm.h"
23 #endif 22 #endif
24 23
55 54
56 int ffs_ram_image_address = FFS_BASE_ADDRESS; 55 int ffs_ram_image_address = FFS_BASE_ADDRESS;
57 56
58 #else 57 #else
59 58
60 #if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM)
61
62 uint16 ffs_flash_manufact = MANUFACT_AMD;
63 uint16 ffs_flash_device = 0x2101;
64
65 #else
66
67 uint16 ffs_flash_manufact = 0x00; // autodetect device 59 uint16 ffs_flash_manufact = 0x00; // autodetect device
68 //uint16 ffs_flash_manufact = MANUFACT_RAM; 60 //uint16 ffs_flash_manufact = MANUFACT_RAM;
69 //uint16 ffs_flash_manufact = 0x04; // Fujitsu 61 //uint16 ffs_flash_manufact = 0x04; // Fujitsu
70 //uint16 ffs_flash_manufact = 0xBF; // SST 62 //uint16 ffs_flash_manufact = 0xBF; // SST
71 63
72 uint16 ffs_flash_device = 0x0000; // autodetect device 64 uint16 ffs_flash_device = 0x0000; // autodetect device
73 //uint16 ffs_flash_device = 0x0404; // RAM 65 //uint16 ffs_flash_device = 0x0404; // RAM
74 //uint16 ffs_flash_device = 0xB496; // Fujitsu stacked device 66 //uint16 ffs_flash_device = 0xB496; // Fujitsu stacked device
75 //uint16 ffs_flash_device = 0x2761; // SST device 1601 67 //uint16 ffs_flash_device = 0x2761; // SST device 1601
76 //uint16 ffs_flash_device = 0x2259; // 8x8kB blocks 68 //uint16 ffs_flash_device = 0x2259; // 8x8kB blocks
77
78 #endif
79 69
80 int ffs_ram_image_address = 0; // Dummy 70 int ffs_ram_image_address = 0; // Dummy
81 71
82 //unsigned char ffs_image[8*8*1024]; 72 //unsigned char ffs_image[8*8*1024];
83 //int ffs_ram_image_address = (int) &ffs_image; 73 //int ffs_ram_image_address = (int) &ffs_image;