diff options
author | zbao <fishbaozi@gmail.com> | 2016-02-19 13:34:59 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-02-20 04:57:20 +0100 |
commit | 6e2f3d1df462330c524aece7f3ddb91bd20b96c7 (patch) | |
tree | fb8f156a78405535996223610d54d6e0854ba3fd /util | |
parent | 9831244cb8b3e72aa03851cfa73819e2964de330 (diff) | |
download | coreboot-6e2f3d1df462330c524aece7f3ddb91bd20b96c7.tar.xz |
amdfwtool: Fix some fields in PSP level-2 directory
Change-Id: Ib2da7f2210a823fce7f05824e2a2b73d3c0490e9
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/13738
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/amdfwtool/amdfwtool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index b08a961964..92a53fc598 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -43,11 +43,11 @@ * * PSP2 directory * +------------+---------------+----------------+------------+ - * | 'PSP2' | Fletcher | Count | Reserved | + * | 'PSP2' | Fletcher | Count |Look up mode| * +------------+---------------+----------------+------------+ - * | 1 | PSP ID | PSPDIR ADDR | | 2nd PSP directory + * | ID-Sel | PSP ID | PSPDIR ADDR | | 2nd PSP directory * +------------+---------------+----------------+------------+ - * | 2 | PSP ID | PSPDIR ADDR | | 3rd PSP directory + * | ID-Sel | PSP ID | PSPDIR ADDR | | 3rd PSP directory * +------------+---------------+----------------+------------+ * | | * | Other PSP | @@ -537,7 +537,7 @@ int main(int argc, char **argv) /* TODO: remove the hardcode. */ psp2count = 1; /* Start from 1. */ /* for (; psp2count <= PSP2COUNT; psp2count++, current=ALIGN(current, 0x100)) { */ - psp2dir[psp2count*4 + 0] = psp2count; /* PSP Number */ + psp2dir[psp2count*4 + 0] = 0; /* 0 -Compare PSP ID, 1 -Compare chip family ID */ psp2dir[psp2count*4 + 1] = 0x10220B00; /* TODO: PSP ID. Documentation is needed. */ psp2dir[psp2count*4 + 2] = current + ROM_BASE_ADDRESS; pspdir = rom + current; @@ -553,7 +553,7 @@ int main(int argc, char **argv) /* fill the PSP2 head */ psp2dir[0] = 0x50535032; /* 'PSP2' */ psp2dir[2] = psp2count; /* Count */ - psp2dir[3] = 0; + psp2dir[3] = 0; /* 0-Dynamic look up through all entries, 1-PSP/chip ID match */ psp2dir[1] = fletcher32((uint16_t *)&psp2dir[1], (psp2count*16 + 16)/2 - 2); } #endif |