Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Simon Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 2 | /* |
| 3 | * From Coreboot src/southbridge/intel/bd82x6x/me.h |
| 4 | * |
| 5 | * Copyright (C) 2011 The Chromium OS Authors. All rights reserved. |
Simon Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _ASM_INTEL_ME_H |
| 9 | #define _ASM_INTEL_ME_H |
| 10 | |
Simon Glass | b67be7e | 2016-03-11 22:07:00 -0700 | [diff] [blame] | 11 | #include <asm/me_common.h> |
Simon Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 12 | |
| 13 | struct __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 | |
| 20 | struct __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 Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 28 | struct __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 | |
| 38 | struct __packed mbp_fw_caps { |
| 39 | struct mefwcaps_sku fw_capabilities; |
| 40 | u8 available; |
| 41 | }; |
| 42 | |
Simon Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 43 | struct __packed mbp_plat_type { |
| 44 | struct platform_type_rule_data rule_data; |
| 45 | u8 available; |
| 46 | }; |
| 47 | |
| 48 | struct __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 Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 59 | #endif |