aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/prodrive/hermes/eeprom.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-11-25 13:34:11 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-12-03 15:51:22 +0000
commit0b697a247331168c35593d0741e4d0fd09a463f6 (patch)
tree9cdf7b87ab3220eeb49cd2a9716ae94b82d7c427 /src/mainboard/prodrive/hermes/eeprom.h
parente81560c6cf1980144dbb5e15c108db36eae97ce9 (diff)
mb/prodrive/hermes: Clean up some cosmetics
Use lowercase for hex numbers, sort includes alphabetically and avoid relying on indirect inclusion. Include `<intelblocks/gpio.h>` instead of `<intelblocks/gpio_defs.h>`, as the latter implcitly relies on one definition from `<soc/gpio.h>`. Also drop useless dsdt.asl and fix up the indentation of some includes. Tested with BUILD_TIMELESS=1, Prodrive Hermes remains identical. Change-Id: I3aeb9a644cf33cb4b1987174f40ef0fc7daccfa9 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59672 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/mainboard/prodrive/hermes/eeprom.h')
-rw-r--r--src/mainboard/prodrive/hermes/eeprom.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainboard/prodrive/hermes/eeprom.h b/src/mainboard/prodrive/hermes/eeprom.h
index 0d4e9d8e31..26f2faa0bd 100644
--- a/src/mainboard/prodrive/hermes/eeprom.h
+++ b/src/mainboard/prodrive/hermes/eeprom.h
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
+#include <assert.h>
#include <soc/ramstage.h>
+#include <types.h>
union eeprom_dimm_layout {
struct __packed {
@@ -71,7 +73,7 @@ struct __packed eeprom_layout {
FSPM_UPD mupd;
};
union {
- uint8_t RawFSPSUPD[0xC00];
+ uint8_t RawFSPSUPD[0xc00];
FSPS_UPD supd;
};
union {
@@ -82,7 +84,7 @@ struct __packed eeprom_layout {
char board_serial_number[HERMES_SERIAL_NUMBER_LENGTH];
uint8_t BootOrder[0x8c0];
union {
- uint8_t RawBoardSetting[0xF8];
+ uint8_t RawBoardSetting[0xf8];
struct eeprom_board_settings BoardSettings;
};
union {
@@ -92,7 +94,7 @@ struct __packed eeprom_layout {
};
_Static_assert(sizeof(FSPM_UPD) <= 0x600, "FSPM_UPD too big");
-_Static_assert(sizeof(FSPS_UPD) <= 0xC00, "FSPS_UPD too big");
+_Static_assert(sizeof(FSPS_UPD) <= 0xc00, "FSPS_UPD too big");
_Static_assert(sizeof(struct eeprom_layout) == 0x2000, "EEPROM layout size mismatch");
bool eeprom_read_buffer(void *blob, size_t read_offset, size_t size);