FreeCalypso > hg > fc-magnetite
comparison 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 |
comparison
equal
deleted
inserted
replaced
84:42d766231c46 | 85:204d6866901b |
---|---|
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" | |
19 | 20 |
20 #if (BOARD == 34) | 21 #if (BOARD == 34) |
21 #include "ffs/board/ffspcm.h" | 22 #include "ffs/board/ffspcm.h" |
22 #endif | 23 #endif |
23 | 24 |
54 | 55 |
55 int ffs_ram_image_address = FFS_BASE_ADDRESS; | 56 int ffs_ram_image_address = FFS_BASE_ADDRESS; |
56 | 57 |
57 #else | 58 #else |
58 | 59 |
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 | |
59 uint16 ffs_flash_manufact = 0x00; // autodetect device | 67 uint16 ffs_flash_manufact = 0x00; // autodetect device |
60 //uint16 ffs_flash_manufact = MANUFACT_RAM; | 68 //uint16 ffs_flash_manufact = MANUFACT_RAM; |
61 //uint16 ffs_flash_manufact = 0x04; // Fujitsu | 69 //uint16 ffs_flash_manufact = 0x04; // Fujitsu |
62 //uint16 ffs_flash_manufact = 0xBF; // SST | 70 //uint16 ffs_flash_manufact = 0xBF; // SST |
63 | 71 |
64 uint16 ffs_flash_device = 0x0000; // autodetect device | 72 uint16 ffs_flash_device = 0x0000; // autodetect device |
65 //uint16 ffs_flash_device = 0x0404; // RAM | 73 //uint16 ffs_flash_device = 0x0404; // RAM |
66 //uint16 ffs_flash_device = 0xB496; // Fujitsu stacked device | 74 //uint16 ffs_flash_device = 0xB496; // Fujitsu stacked device |
67 //uint16 ffs_flash_device = 0x2761; // SST device 1601 | 75 //uint16 ffs_flash_device = 0x2761; // SST device 1601 |
68 //uint16 ffs_flash_device = 0x2259; // 8x8kB blocks | 76 //uint16 ffs_flash_device = 0x2259; // 8x8kB blocks |
77 | |
78 #endif | |
69 | 79 |
70 int ffs_ram_image_address = 0; // Dummy | 80 int ffs_ram_image_address = 0; // Dummy |
71 | 81 |
72 //unsigned char ffs_image[8*8*1024]; | 82 //unsigned char ffs_image[8*8*1024]; |
73 //int ffs_ram_image_address = (int) &ffs_image; | 83 //int ffs_ram_image_address = (int) &ffs_image; |