diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2020-12-04 16:39:38 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2020-12-11 20:04:02 +0000 |
commit | 5caca947b22674b4c0681b8c2cedac5ff0e04462 (patch) | |
tree | 2fc117994599df9b21edf58cb14e9483639ade73 /util/amdfwtool/amdfwtool.c | |
parent | 13ec029145d60fcb6de460046f1edc162b5ca095 (diff) |
amdfwtool: Register APCB and APCB_BK respectively
We took the assumption the APCB(0x60) and APCB_BK(0x68) are the
same file. For picasso, they are. For later programe, they are not.
Change-Id: Idea7847691c2b511b489c306f04a8cb8945fd057
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48524
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/amdfwtool/amdfwtool.c')
-rw-r--r-- | util/amdfwtool/amdfwtool.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 401cf20d6c..5ae6d06186 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -1342,9 +1342,11 @@ int main(int argc, char **argv) sub = 0; break; case 'a': - register_bdt_data(AMD_BIOS_APCB, sub, instance, optarg); - register_bdt_data(AMD_BIOS_APCB_BK, sub, - instance, optarg); + if ((instance & 0xF0) == 0) + register_bdt_data(AMD_BIOS_APCB, sub, instance & 0xF, optarg); + else + register_bdt_data(AMD_BIOS_APCB_BK, sub, + instance & 0xF, optarg); sub = instance = 0; break; case 'Q': |