summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-09-08 11:52:09 +0200
committerSubrata Banik <subrata.banik@intel.com>2021-09-09 06:21:20 +0000
commitfd63e11f714eb1e908df2005d9becb492a5247e9 (patch)
treec48416cfb2316a1061aaac65c4f5152c5579d7b9 /src
parent8d8a98650b36383cd5b31c8af9f1b971ea63beed (diff)
downloadcoreboot-fd63e11f714eb1e908df2005d9becb492a5247e9.tar.gz
coreboot-fd63e11f714eb1e908df2005d9becb492a5247e9.tar.bz2
coreboot-fd63e11f714eb1e908df2005d9becb492a5247e9.zip
drivers/intel/fsp2_0: Retype loop variable from int to uint32_t
Retype loop variable `i` to `uint32_t` for consistency with the types of the `number_of_phases` and `phase_index` struct fields and the parameter of the `platform_fsp_multi_phase_init_cb()` function. Change-Id: I82916f33c2dc5dab6a31111c9acba2a18a5cfb0b Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57491 Reviewed-by: Subrata Banik <subrata.banik@intel.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/intel/fsp2_0/silicon_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/intel/fsp2_0/silicon_init.c b/src/drivers/intel/fsp2_0/silicon_init.c
index a00699df0b45..bf5230e90de7 100644
--- a/src/drivers/intel/fsp2_0/silicon_init.c
+++ b/src/drivers/intel/fsp2_0/silicon_init.c
@@ -166,8 +166,8 @@ static void do_silicon_init(struct fsp_header *hdr)
fsps_return_value_handler(FSP_MULTI_PHASE_SI_INIT_GET_NUMBER_OF_PHASES_API, status);
/* Execute Multi Phase Execution */
- for (int i = 1; i <= multi_phase_get_number.number_of_phases; i++) {
- printk(BIOS_SPEW, "Executing Phase %d of FspMultiPhaseSiInit\n", i);
+ for (uint32_t i = 1; i <= multi_phase_get_number.number_of_phases; i++) {
+ printk(BIOS_SPEW, "Executing Phase %u of FspMultiPhaseSiInit\n", i);
/*
* Give SoC/mainboard a chance to perform any operation before
* Multi Phase Execution