From 716d26c82a7df1dccf8956f301ab0e103fcedcff Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Fri, 3 Oct 2014 15:34:09 -0700 Subject: [PATCH] broadwell: Fix building with USE=quiet-cb This function needs to be available in different LOGLEVELs. BUG=chrome-os-partner:28234 BRANCH=samus TEST=USE=quiet-cb emerge-samus coreboot Change-Id: Ia8f0d05af24c9070c8c9241a3a7e137f845d1cab Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/221540 Reviewed-by: Aaron Durbin --- src/soc/intel/broadwell/me_status.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/soc/intel/broadwell/me_status.c b/src/soc/intel/broadwell/me_status.c index 57bb243241..1380385053 100644 --- a/src/soc/intel/broadwell/me_status.c +++ b/src/soc/intel/broadwell/me_status.c @@ -27,6 +27,12 @@ #include #include +static inline void me_read_dword_ptr(void *ptr, int offset) +{ + u32 dword = pci_read_config32(PCH_DEV_ME, offset); + memcpy(ptr, &dword, sizeof(dword)); +} + #if (CONFIG_DEFAULT_CONSOLE_LOGLEVEL >= BIOS_DEBUG) /* HFS1[3:0] Current Working State Values */ @@ -201,12 +207,6 @@ static const char *me_progress_policy_values[] = { "Required VSCC values for flash parts do not match", }; -static inline void me_read_dword_ptr(void *ptr, int offset) -{ - u32 dword = pci_read_config32(PCH_DEV_ME, offset); - memcpy(ptr, &dword, sizeof(dword)); -} - void intel_me_status(void) { struct me_hfs _hfs, *hfs = &_hfs;