FreeCalypso > hg > freecalypso-sw
comparison loadtools/ltflash.c @ 96:57b8dbb029c2
fc-loadtool: GTA0x flash support
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 01 Sep 2013 04:18:32 +0000 |
parents | a7da6648a7f8 |
children | b78db17bfc85 |
comparison
equal
deleted
inserted
replaced
95:336f5cc96810 | 96:57b8dbb029c2 |
---|---|
9 #include <string.h> | 9 #include <string.h> |
10 #include <strings.h> | 10 #include <strings.h> |
11 #include <stdlib.h> | 11 #include <stdlib.h> |
12 #include "flash.h" | 12 #include "flash.h" |
13 | 13 |
14 /* K5A32xx device description */ | |
15 | |
16 static struct flash_region_desc k5a32xx_topboot_regions[] = { | |
17 /* 4 MiB total, 64 KiB sectors except for the boot block of 8x 8 KiB */ | |
18 {0x10000, 63}, | |
19 {0x2000, 8}, | |
20 {0, 0} /* array terminator */ | |
21 }; | |
22 | |
23 static struct flash_bank_desc k5a32xx_topboot_bankdesc = { | |
24 k5a32xx_topboot_regions, 0xFFF00000 | |
25 }; | |
26 | |
14 /* S{29,71}PL129N device description */ | 27 /* S{29,71}PL129N device description */ |
15 | 28 |
16 static struct flash_region_desc pl129n_ce1_regions[] = { | 29 static struct flash_region_desc pl129n_ce1_regions[] = { |
17 /* 4 sectors of 64 KiB each at the beginning, then 256 KiB sectors */ | 30 /* 4 sectors of 64 KiB each at the beginning, then 256 KiB sectors */ |
18 {0x10000, 4}, | 31 {0x10000, 4}, |
33 }; | 46 }; |
34 | 47 |
35 /* list of supported flash devices */ | 48 /* list of supported flash devices */ |
36 | 49 |
37 struct flash_device_desc flash_device_list[] = { | 50 struct flash_device_desc flash_device_list[] = { |
51 {"k5a32xx_t", &k5a32xx_topboot_bankdesc, 1}, | |
38 {"pl129n", pl129n_banks, 2}, | 52 {"pl129n", pl129n_banks, 2}, |
39 {0, 0, 0} /* array terminator */ | 53 {0, 0, 0} /* array terminator */ |
40 }; | 54 }; |
41 | 55 |
42 /* the following variables describe our selected flash device */ | 56 /* the following variables describe our selected flash device */ |