summaryrefslogtreecommitdiff
path: root/src/soc/intel/alderlake/bootblock
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-11 10:23:50 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-13 14:28:56 +0000
commitb988f8aac542adebcde13d7d90e5def414a3c972 (patch)
tree229fa39bef1a5c1eaaa52824ced84212cb94b799 /src/soc/intel/alderlake/bootblock
parent347b471901f581cf6441719e674bc92a45021881 (diff)
soc/intel/alderlake/bootblock: Use 'false/true' macros
Change-Id: Ic40f1e935b244f39fa3c1322e5128465c57f5e26 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70579 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/soc/intel/alderlake/bootblock')
-rw-r--r--src/soc/intel/alderlake/bootblock/update_descriptor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/alderlake/bootblock/update_descriptor.c b/src/soc/intel/alderlake/bootblock/update_descriptor.c
index 8c88122477..42c4ee21cc 100644
--- a/src/soc/intel/alderlake/bootblock/update_descriptor.c
+++ b/src/soc/intel/alderlake/bootblock/update_descriptor.c
@@ -25,16 +25,16 @@ static bool is_descriptor_writeable(uint8_t *desc)
/* Check flash has valid signature */
if (read32p(desc + FLASH_SIGN_OFFSET) != FLASH_VAL_SIGN) {
printk(BIOS_ERR, "Flash Descriptor is not valid\n");
- return 0;
+ return false;
}
/* Check host has write access to the Descriptor Region */
if (!((read32p(desc + FLMSTR1) >> FLMSTR_WR_SHIFT_V2) & BIT(0))) {
printk(BIOS_ERR, "Host doesn't have write access to Descriptor Region\n");
- return 0;
+ return false;
}
- return 1;
+ return true;
}
void configure_descriptor(struct descriptor_byte *bytes, size_t num)