blob: 518c308d59b6b2e71c200721d191f6a18d4be58c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Simon Glass268eefd2014-11-12 22:42:28 -07002/*
3 * From Coreboot src/southbridge/intel/bd82x6x/me.h
4 *
5 * Copyright (C) 2011 The Chromium OS Authors. All rights reserved.
Simon Glass268eefd2014-11-12 22:42:28 -07006 */
7
8#ifndef _ASM_INTEL_ME_H
9#define _ASM_INTEL_ME_H
10
Simon Glassb67be7e2016-03-11 22:07:00 -070011#include <asm/me_common.h>
Simon Glass268eefd2014-11-12 22:42:28 -070012
13struct __packed mbp_fw_version_name {
14 u32 major_version:16;
15 u32 minor_version:16;
16 u32 hotfix_version:16;
17 u32 build_version:16;
18};
19
20struct __packed mbp_icc_profile {
21 u8 num_icc_profiles;
22 u8 icc_profile_soft_strap;
23 u8 icc_profile_index;
24 u8 reserved;
25 u32 register_lock_mask[3];
26};
27
Simon Glass268eefd2014-11-12 22:42:28 -070028struct __packed platform_type_rule_data {
29 u32 platform_target_usage_type:4;
30 u32 platform_target_market_type:2;
31 u32 super_sku:1;
32 u32 reserved:1;
33 u32 intel_me_fw_image_type:4;
34 u32 platform_brand:4;
35 u32 reserved_1:16;
36};
37
38struct __packed mbp_fw_caps {
39 struct mefwcaps_sku fw_capabilities;
40 u8 available;
41};
42
Simon Glass268eefd2014-11-12 22:42:28 -070043struct __packed mbp_plat_type {
44 struct platform_type_rule_data rule_data;
45 u8 available;
46};
47
48struct __packed me_bios_payload {
49 struct mbp_fw_version_name fw_version_name;
50 struct mbp_fw_caps fw_caps_sku;
51 struct mbp_rom_bist_data rom_bist_data;
52 struct mbp_platform_key platform_key;
53 struct mbp_plat_type fw_plat_type;
54 struct mbp_icc_profile icc_profile;
55 struct tdt_state_info at_state;
56 u32 mfsintegrity;
57};
58
Simon Glass268eefd2014-11-12 22:42:28 -070059#endif