sb,soc/intel: Reduce preprocessor use with ME debugging
Change-Id: Iedd54730f140b6a7a40834f00d558ed99a345077 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36639 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
82c0e7e3d5
commit
c86fc8e63d
@@ -59,11 +59,13 @@ static const char *me_bios_path_values[] = {
|
||||
/* MMIO base address for MEI interface */
|
||||
static u32 *mei_base_address;
|
||||
|
||||
#if CONFIG(DEBUG_INTEL_ME)
|
||||
static void mei_dump(void *ptr, int dword, int offset, const char *type)
|
||||
{
|
||||
struct mei_csr *csr;
|
||||
|
||||
if (!CONFIG(DEBUG_INTEL_ME))
|
||||
return;
|
||||
|
||||
printk(BIOS_SPEW, "%-9s[%02x] : ", type, offset);
|
||||
|
||||
switch (offset) {
|
||||
@@ -89,9 +91,6 @@ static void mei_dump(void *ptr, int dword, int offset, const char *type)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#else
|
||||
# define mei_dump(ptr,dword,offset,type) do {} while (0)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ME/MEI access helpers using memcpy to avoid aliasing.
|
||||
|
Reference in New Issue
Block a user