drivers/intel/fsp2_0/notify.c: Clean up some cosmetics

Sort includes alphabetically, drop spaces after type casts and unbreak
some long lines that are less than 96 characters long.

Tested with BUILD_TIMELESS=1, Prodrive Hermes remains identical.

Change-Id: I2dafd677abbdd892745fea1bf4414f6e0d5549bb
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60638
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
Angel Pons 2022-01-01 17:08:00 +01:00 committed by Subrata Banik
parent 2b1f8d4129
commit 654930e7f2
1 changed files with 8 additions and 12 deletions

View File

@ -4,19 +4,19 @@
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <fsp/util.h> #include <fsp/util.h>
#include <timestamp.h>
#include <mode_switch.h> #include <mode_switch.h>
#include <timestamp.h>
static void fsp_notify(enum fsp_notify_phase phase) static void fsp_notify(enum fsp_notify_phase phase)
{ {
uint32_t ret;
fsp_notify_fn fspnotify;
struct fsp_notify_params notify_params = { .phase = phase }; struct fsp_notify_params notify_params = { .phase = phase };
fsp_notify_fn fspnotify;
uint32_t ret;
if (!fsps_hdr.notify_phase_entry_offset) if (!fsps_hdr.notify_phase_entry_offset)
die("Notify_phase_entry_offset is zero!\n"); die("Notify_phase_entry_offset is zero!\n");
fspnotify = (void *) (uintptr_t)(fsps_hdr.image_base + fspnotify = (void *)(uintptr_t)(fsps_hdr.image_base +
fsps_hdr.notify_phase_entry_offset); fsps_hdr.notify_phase_entry_offset);
fsp_before_debug_notify(fspnotify, &notify_params); fsp_before_debug_notify(fspnotify, &notify_params);
@ -68,14 +68,10 @@ static void fsp_notify_dummy(void *arg)
fsp_notify(END_OF_FIRMWARE); fsp_notify(END_OF_FIRMWARE);
} }
BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_ENTRY, fsp_notify_dummy, BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_ENTRY, fsp_notify_dummy, (void *)AFTER_PCI_ENUM);
(void *) AFTER_PCI_ENUM); BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_EXIT, fsp_notify_dummy, (void *)READY_TO_BOOT);
BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_EXIT, fsp_notify_dummy, BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, fsp_notify_dummy, (void *)READY_TO_BOOT);
(void *) READY_TO_BOOT);
BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, fsp_notify_dummy,
(void *) READY_TO_BOOT);
__weak void platform_fsp_notify_status( __weak void platform_fsp_notify_status(enum fsp_notify_phase phase)
enum fsp_notify_phase phase)
{ {
} }