FreeCalypso > hg > tcs211-pirelli
comparison chipsetsw/drivers/drv_app/ffs/board/dev.c @ 27:176f5b1bc360
first round of changes for the Pirelli
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Tue, 08 Sep 2015 01:16:54 +0000 |
parents | 509db1a7b7b8 |
children | ecf935c93cd8 |
comparison
equal
deleted
inserted
replaced
26:1a81baea22d7 | 27:176f5b1bc360 |
---|---|
86 // 2. Base 2 logarithm of sector byte size, e.g. 64kB ~ 2^16. | 86 // 2. Base 2 logarithm of sector byte size, e.g. 64kB ~ 2^16. |
87 // | 87 // |
88 // Note that does NOT support a flash definition with different sized blocks | 88 // Note that does NOT support a flash definition with different sized blocks |
89 // so all blocks contained in the device definition MUST be the same size! | 89 // so all blocks contained in the device definition MUST be the same size! |
90 | 90 |
91 // 256 KiB sectors | |
92 static const struct block_info_s flash_32x256[] = | |
93 { | |
94 { 0x000000, 18 }, | |
95 { 0x040000, 18 }, | |
96 { 0x080000, 18 }, | |
97 { 0x0C0000, 18 }, | |
98 { 0x100000, 18 }, | |
99 { 0x140000, 18 }, | |
100 { 0x180000, 18 }, | |
101 { 0x1C0000, 18 }, | |
102 { 0x200000, 18 }, | |
103 { 0x240000, 18 }, | |
104 { 0x280000, 18 }, | |
105 { 0x2C0000, 18 }, | |
106 { 0x300000, 18 }, | |
107 { 0x340000, 18 }, | |
108 { 0x380000, 18 }, | |
109 { 0x3C0000, 18 }, | |
110 { 0x400000, 18 }, | |
111 { 0x440000, 18 }, | |
112 { 0x480000, 18 }, | |
113 { 0x4C0000, 18 }, | |
114 { 0x500000, 18 }, | |
115 { 0x540000, 18 }, | |
116 { 0x580000, 18 }, | |
117 { 0x5C0000, 18 }, | |
118 { 0x600000, 18 }, | |
119 { 0x640000, 18 }, | |
120 { 0x680000, 18 }, | |
121 { 0x6C0000, 18 }, | |
122 { 0x700000, 18 }, | |
123 { 0x740000, 18 }, | |
124 { 0x780000, 18 }, | |
125 { 0x7C0000, 18 } | |
126 }; | |
91 | 127 |
92 // 128x64kb | 128 // 128x64kb |
93 static const struct block_info_s flash_128x64[] = | 129 static const struct block_info_s flash_128x64[] = |
94 { | 130 { |
95 { 0x00000, 16 }, | 131 { 0x00000, 16 }, |
314 { &flash_8x8[0], 0, MANUFACT_RAM, 0x080D, | 350 { &flash_8x8[0], 0, MANUFACT_RAM, 0x080D, |
315 FFS_DRIVER_RAM, 8}, | 351 FFS_DRIVER_RAM, 8}, |
316 | 352 |
317 /********** AMD Devices ***********************************************/ | 353 /********** AMD Devices ***********************************************/ |
318 | 354 |
319 // AMD Am29DL640F. Ignoring the 8kB sectors | 355 // Spansion S71PL129NC0 used in Pirelli DP-L10 |
320 // Multi-id device: 0x227E, 0x2221, 0x2200. Converted to 0x2100 | 356 // Multi-id device: 0x227E, 0x2221, 0x2200. Converted to 0x2100 |
321 { &flash_16x64[0], (char *) 0x01800000, MANUFACT_AMD, 0x2100, | 357 // This is an aftermarket FFS config for the Pirelli target |
322 FFS_DRIVER_AMD, 15 }, | 358 { &flash_32x256[0], (char *) 0x02480000, MANUFACT_AMD, 0x2100, |
359 FFS_DRIVER_AMD, 6 }, | |
323 | 360 |
324 // AMD Am29DL640G. Ignoring the 8kB sectors | 361 // AMD Am29DL640G. Ignoring the 8kB sectors |
325 // Multi-id device: 0x227E, 0x2202, 0x2201. Converted to 0x0201 | 362 // Multi-id device: 0x227E, 0x2202, 0x2201. Converted to 0x0201 |
326 { &flash_16x64[0], (char *) 0x700000, MANUFACT_AMD, 0x0201, | 363 { &flash_16x64[0], (char *) 0x700000, MANUFACT_AMD, 0x0201, |
327 FFS_DRIVER_AMD, 15 }, | 364 FFS_DRIVER_AMD, 15 }, |