FreeCalypso > hg > freecalypso-sw
comparison loadtools/ltflash.c @ 203:99c234bf6a9b
fc-loadtool flash ID check: definitions created
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 23 Dec 2013 07:26:37 +0000 |
parents | 02cb0206aa47 |
children | 61c7480b3c50 |
comparison
equal
deleted
inserted
replaced
202:b26b7459bd44 | 203:99c234bf6a9b |
---|---|
18 {0x10000, 63}, | 18 {0x10000, 63}, |
19 {0x2000, 8}, | 19 {0x2000, 8}, |
20 {0, 0} /* array terminator */ | 20 {0, 0} /* array terminator */ |
21 }; | 21 }; |
22 | 22 |
23 static struct flash_idcheck k5a32xx_topboot_idcheck[2] = { | |
24 {0x00, 0x00EC}, | |
25 {0x02, 0x22A0} | |
26 }; | |
27 | |
23 static struct flash_bank_desc k5a32xx_topboot_bankdesc = { | 28 static struct flash_bank_desc k5a32xx_topboot_bankdesc = { |
24 k5a32xx_topboot_regions, 0xFFF00000 | 29 k5a32xx_topboot_regions, 0xFFF00000, k5a32xx_topboot_idcheck, 2 |
25 }; | 30 }; |
26 | 31 |
27 /* S{29,71}PL129N device description */ | 32 /* S{29,71}PL129N device description */ |
28 | 33 |
29 static struct flash_region_desc pl129n_ce1_regions[] = { | 34 static struct flash_region_desc pl129n_ce1_regions[] = { |
38 {0x40000, 31}, | 43 {0x40000, 31}, |
39 {0x10000, 4}, | 44 {0x10000, 4}, |
40 {0, 0} /* array terminator */ | 45 {0, 0} /* array terminator */ |
41 }; | 46 }; |
42 | 47 |
48 static struct flash_idcheck pl129n_idcheck[4] = { | |
49 {0x00, 0x0001}, | |
50 {0x02, 0x227E}, | |
51 {0x1C, 0x2221}, | |
52 {0x1E, 0x2200} | |
53 }; | |
54 | |
43 static struct flash_bank_desc pl129n_banks[2] = { | 55 static struct flash_bank_desc pl129n_banks[2] = { |
44 {pl129n_ce1_regions, 0xFFFC0000}, | 56 {pl129n_ce1_regions, 0xFFFC0000, pl129n_idcheck, 4}, |
45 {pl129n_ce2_regions, 0xFFFC0000} | 57 {pl129n_ce2_regions, 0xFFFC0000, pl129n_idcheck, 4} |
46 }; | 58 }; |
47 | 59 |
48 /* list of supported flash devices */ | 60 /* list of supported flash devices */ |
49 | 61 |
50 struct flash_device_desc flash_device_list[] = { | 62 struct flash_device_desc flash_device_list[] = { |