summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2021-10-30 16:53:23 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-11-05 12:55:29 +0000
commit33351336f84523d458e5a1c005c4ab119a82b52e (patch)
treefc2544951abaebf735c57d74da18ae6cec79babe
parent615ab90db3a42000c477dd83567552d329adc227 (diff)
downloadcoreboot-33351336f84523d458e5a1c005c4ab119a82b52e.tar.gz
coreboot-33351336f84523d458e5a1c005c4ab119a82b52e.tar.bz2
coreboot-33351336f84523d458e5a1c005c4ab119a82b52e.zip
amdfwtool: Change the definition of level to a bitwise form
Change-Id: Icca393f0d69519cc1c3cb852a11dd7006cf72061 Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58765 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r--util/amdfwtool/amdfwtool.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/amdfwtool/amdfwtool.h b/util/amdfwtool/amdfwtool.h
index d7f0f5db9687..b37503e16f4a 100644
--- a/util/amdfwtool/amdfwtool.h
+++ b/util/amdfwtool/amdfwtool.h
@@ -182,8 +182,8 @@ typedef struct _bios_directory_table {
bios_directory_entry entries[];
} bios_directory_table;
-#define BDT_LVL1 0x1
-#define BDT_LVL2 0x2
+#define BDT_LVL1 (1 << 0)
+#define BDT_LVL2 (1 << 1)
#define BDT_BOTH (BDT_LVL1 | BDT_LVL2)
typedef struct _amd_bios_entry {
amd_bios_type type;
@@ -208,8 +208,8 @@ typedef struct _amd_bios_entry {
#define BDT1_COOKIE 0x44484224 /* 'DHB$ */
#define BDT2_COOKIE 0x324c4224 /* '2LB$ */
-#define PSP_LVL1 0x1
-#define PSP_LVL2 0x2
+#define PSP_LVL1 (1 << 0)
+#define PSP_LVL2 (1 << 1)
#define PSP_BOTH (PSP_LVL1 | PSP_LVL2)
typedef struct _amd_fw_entry {
amd_fw_type type;