|
1 | 1 | #include "bootver.h"
|
2 | 2 |
|
3 |
| -static const boot_ver_t minRevA_CE = { 5, 0, 0, 0 }; /* Rev A */ |
| 3 | +static const boot_ver_t minRev0_CE = { 5, 0, 0, 0 }; /* Rev pre-A */ |
4 | 4 | static const boot_ver_t minRevI_CE = { 5, 0, 0, 0 }; /* Rev I */
|
5 | 5 | static const boot_ver_t minRevM_CE = { 5, 3, 6, 0 }; /* Rev M */
|
6 |
| -static const boot_ver_t minRevM_82 = { 5, 6, 3, 0 }; /* Rev pre-A of 82AEP, but otherwise the same JB-007 ASIC as M on CE */ |
7 |
| -static const boot_ver_t maxRevA_CE = { 5, 3, 5, 65535 }; /* Rev A */ |
| 6 | +static const boot_ver_t minRev0_82 = { 5, 6, 3, 0 }; /* Rev pre-A of 82AEP, but otherwise the same JB-007 ASIC as M on CE */ |
| 7 | +static const boot_ver_t maxRev0_CE = { 5, 3, 5, 65535 }; /* Rev pre-A */ |
8 | 8 | static const boot_ver_t maxRevI_CE = { 5, 3, 5, 65535 }; /* Rev I */
|
9 | 9 | static const boot_ver_t maxRev = { 255, 255, 255, 65535 }; /* Rev M */
|
10 | 10 |
|
11 | 11 | /* NULL means unsupported */
|
12 |
| -static const boot_ver_t* asic_min_ver_8384CE[] = { &minRevA_CE, &minRevI_CE, &minRevM_CE }; |
13 |
| -static const boot_ver_t* asic_max_ver_8384CE[] = { &maxRevA_CE, &maxRevI_CE, &maxRev }; |
14 |
| -static const boot_ver_t* asic_min_ver_82AEP[] = { NULL, NULL, &minRevM_82 }; |
15 |
| -static const boot_ver_t* asic_max_ver_82AEP[] = { NULL, NULL, &maxRev }; |
| 12 | +static const boot_ver_t* asic_min_ver_8384CE[] = { &minRev0_CE, &minRevI_CE, &minRevM_CE }; |
| 13 | +static const boot_ver_t* asic_max_ver_8384CE[] = { &maxRev0_CE, &maxRevI_CE, &maxRev }; |
| 14 | +static const boot_ver_t* asic_min_ver_82AEP[] = { &minRev0_82, NULL, NULL }; |
| 15 | +static const boot_ver_t* asic_max_ver_82AEP[] = { &maxRev, NULL, NULL }; |
16 | 16 |
|
17 | 17 | static bool parse_entry(const uint8_t* data, uint32_t entry, uint32_t* addr) {
|
18 | 18 | if (entry + 4 >= SIZE_BOOTCODE) {
|
|
0 commit comments