sb/intel/bd82x6x: Align some ME functions
This eliminates the differences in the first part of the file. Change-Id: Ifb7d57da08e02664a28819e65bc8e9697ed38c4c Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42009 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
93375f270c
commit
7f32df379c
|
@ -10,10 +10,10 @@
|
||||||
|
|
||||||
#include <acpi/acpi.h>
|
#include <acpi/acpi.h>
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
#include <device/pci_ops.h>
|
|
||||||
#include <console/console.h>
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
|
#include <device/pci_ops.h>
|
||||||
|
#include <console/console.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
|
||||||
#if CONFIG(CHROMEOS)
|
#if CONFIG(CHROMEOS)
|
||||||
#include <vendorcode/google/chromeos/chromeos.h>
|
|
||||||
#include <vendorcode/google/chromeos/gnvs.h>
|
#include <vendorcode/google/chromeos/gnvs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -38,12 +37,10 @@ static const char *me_bios_path_values[] __unused = {
|
||||||
[ME_DISABLE_BIOS_PATH] = "Disable",
|
[ME_DISABLE_BIOS_PATH] = "Disable",
|
||||||
[ME_FIRMWARE_UPDATE_BIOS_PATH] = "Firmware Update",
|
[ME_FIRMWARE_UPDATE_BIOS_PATH] = "Firmware Update",
|
||||||
};
|
};
|
||||||
static int intel_me_read_mbp(me_bios_payload *mbp_data);
|
|
||||||
|
|
||||||
/* MMIO base address for MEI interface */
|
/* MMIO base address for MEI interface */
|
||||||
static u32 *mei_base_address;
|
static u32 *mei_base_address;
|
||||||
|
|
||||||
|
|
||||||
static void mei_dump(void *ptr, int dword, int offset, const char *type)
|
static void mei_dump(void *ptr, int dword, int offset, const char *type)
|
||||||
{
|
{
|
||||||
struct mei_csr *csr;
|
struct mei_csr *csr;
|
||||||
|
@ -568,6 +565,10 @@ static int intel_mei_setup(struct device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG(CHROMEOS)
|
||||||
|
#include <vendorcode/google/chromeos/chromeos.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Read the Extend register hash of ME firmware */
|
/* Read the Extend register hash of ME firmware */
|
||||||
static int intel_me_extend_valid(struct device *dev)
|
static int intel_me_extend_valid(struct device *dev)
|
||||||
{
|
{
|
||||||
|
@ -622,6 +623,8 @@ static void intel_me_hide(struct device *dev)
|
||||||
pch_enable(dev);
|
pch_enable(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int intel_me_read_mbp(me_bios_payload *mbp_data);
|
||||||
|
|
||||||
/* Check whether ME is present and do basic init */
|
/* Check whether ME is present and do basic init */
|
||||||
static void intel_me_init(struct device *dev)
|
static void intel_me_init(struct device *dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue