FreeCalypso > hg > fc-selenite
comparison 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 |
comparison
equal
deleted
inserted
replaced
133:118c25581538 | 134:7d50d8d13711 |
---|---|
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; |