mb/facebook/fbg1701: correct clang issues
Corrected clang issues in fbg1701 directory. BUG=N/A TEST=build Change-Id: I968bf8418aa457a7ebd28096bd92a64211bf86dd Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35963 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
This commit is contained in:
parent
ea98989e2c
commit
89f5967647
|
@ -32,16 +32,15 @@ void *load_logo(size_t *logo_size)
|
|||
return (void *)logo_data;
|
||||
}
|
||||
|
||||
logo_data_sz = cbfs_boot_load_file(filename, logo_data,
|
||||
sizeof(logo_data), CBFS_TYPE_RAW);
|
||||
logo_data_sz =
|
||||
cbfs_boot_load_file(filename, logo_data, sizeof(logo_data), CBFS_TYPE_RAW);
|
||||
if (logo_data_sz == 0)
|
||||
return NULL;
|
||||
|
||||
if (logo_size)
|
||||
*logo_size = logo_data_sz;
|
||||
|
||||
printk(BIOS_DEBUG, "Found a Logo of %zu bytes after decompression\n",
|
||||
logo_data_sz);
|
||||
printk(BIOS_DEBUG, "Found a Logo of %zu bytes after decompression\n", logo_data_sz);
|
||||
|
||||
return (void *)logo_data;
|
||||
}
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
/* SD CARD gpio */
|
||||
#define SDCARD_CD 81 /* Not used */
|
||||
|
||||
#define ITE8528_CMD_PORT 0x6E
|
||||
#define ITE8528_DATA_PORT 0x6F
|
||||
|
||||
/* CPLD definitions */
|
||||
#define CPLD_PCB_VERSION_PORT 0x283
|
||||
|
@ -32,6 +30,8 @@
|
|||
#define CPLD_RESET_PORT 0x287
|
||||
#define CPLD_CMD_RESET_DSI_BRIDGE_ACTIVE 0x20
|
||||
#define CPLD_CMD_RESET_DSI_BRIDGE_INACTIVE 0x00
|
||||
#define ITE8528_CMD_PORT 0x6E
|
||||
#define ITE8528_DATA_PORT 0x6F
|
||||
|
||||
/* Define the items to be measured or verified */
|
||||
#define FSP (const char *)"fsp.bin"
|
||||
|
|
|
@ -68,8 +68,8 @@ void mainboard_after_memory_init(void)
|
|||
*/
|
||||
|
||||
static const uint8_t crtm_version[] =
|
||||
CONFIG_VENDORCODE_ELTAN_CRTM_VERSION_STRING
|
||||
COREBOOT_VERSION COREBOOT_EXTRA_VERSION " " COREBOOT_BUILD;
|
||||
CONFIG_VENDORCODE_ELTAN_CRTM_VERSION_STRING COREBOOT_VERSION COREBOOT_EXTRA_VERSION
|
||||
" " COREBOOT_BUILD;
|
||||
|
||||
int mb_crtm(EFI_TCG2_EVENT_ALGORITHM_BITMAP activePcr)
|
||||
{
|
||||
|
@ -82,15 +82,13 @@ int mb_crtm(EFI_TCG2_EVENT_ALGORITHM_BITMAP activePcr)
|
|||
tcgEventHdr.pcrIndex = MBOOT_PCR_INDEX_0;
|
||||
tcgEventHdr.eventType = EV_S_CRTM_VERSION;
|
||||
tcgEventHdr.eventSize = sizeof(crtm_version);
|
||||
printk(BIOS_DEBUG, "%s: EventSize - %u\n", __func__,
|
||||
tcgEventHdr.eventSize);
|
||||
printk(BIOS_DEBUG, "%s: EventSize - %u\n", __func__, tcgEventHdr.eventSize);
|
||||
|
||||
status = mboot_hash_extend_log(activePcr, 0, (uint8_t *)crtm_version,
|
||||
tcgEventHdr.eventSize, &tcgEventHdr,
|
||||
(uint8_t *)crtm_version, 0);
|
||||
if (status) {
|
||||
printk(BIOS_DEBUG, "Measure CRTM Version returned 0x%x\n",
|
||||
status);
|
||||
printk(BIOS_DEBUG, "Measure CRTM Version returned 0x%x\n", status);
|
||||
}
|
||||
|
||||
return status;
|
||||
|
|
Loading…
Reference in New Issue