| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#ifndef __FSPMUPD_H__ |
| 10 |
#define __FSPMUPD_H__ |
| 11 |
|
| 12 |
#include <FspUpd.h> |
| 13 |
#include <FspUsb.h> |
| 14 |
|
| 15 |
#define FSPM_UPD_DXIO_DESCRIPTOR_COUNT 14 |
| 16 |
#define FSPM_UPD_DDI_DESCRIPTOR_COUNT 5 |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
typedef struct __packed { |
| 21 |
uint32_t bert_size; |
| 22 |
uint32_t tseg_size; |
| 23 |
uint32_t pci_express_base_addr; |
| 24 |
uint8_t misc_reserved[32]; |
| 25 |
uint32_t serial_port_base; |
| 26 |
uint32_t serial_port_use_mmio; |
| 27 |
uint32_t serial_port_baudrate; |
| 28 |
uint32_t serial_port_refclk; |
| 29 |
uint32_t serial_reserved; |
| 30 |
uint8_t dxio_descriptor[FSPM_UPD_DXIO_DESCRIPTOR_COUNT][52]; |
| 31 |
uint8_t fsp_owns_pcie_resets; |
| 32 |
uint8_t pcie_reserved[51]; |
| 33 |
uint32_t ddi_descriptor[FSPM_UPD_DDI_DESCRIPTOR_COUNT]; |
| 34 |
uint8_t ddi_reserved[6]; |
| 35 |
uint8_t ccx_down_core_mode; |
| 36 |
uint8_t ccx_disable_smt; |
| 37 |
uint8_t ccx_reserved[32]; |
| 38 |
uint8_t stt_control; |
| 39 |
uint8_t stt_pcb_sensor_count; |
| 40 |
uint16_t stt_min_limit; |
| 41 |
uint16_t stt_m1; |
| 42 |
uint16_t stt_m2; |
| 43 |
uint16_t stt_m3; |
| 44 |
uint16_t stt_m4; |
| 45 |
uint16_t stt_m5; |
| 46 |
uint16_t stt_m6; |
| 47 |
uint16_t stt_c_apu; |
| 48 |
uint16_t stt_c_gpu; |
| 49 |
uint16_t stt_c_hs2; |
| 50 |
uint16_t stt_alpha_apu; |
| 51 |
uint16_t stt_alpha_gpu; |
| 52 |
uint16_t stt_alpha_hs2; |
| 53 |
uint16_t stt_skin_temp_apu; |
| 54 |
uint16_t stt_skin_temp_gpu; |
| 55 |
uint16_t stt_skin_temp_hs2; |
| 56 |
uint16_t stt_error_coeff; |
| 57 |
uint16_t stt_error_rate_coefficient; |
| 58 |
uint8_t smartshift_enable; |
| 59 |
uint32_t apu_only_sppt_limit; |
| 60 |
uint32_t sustained_power_limit; |
| 61 |
uint32_t fast_ppt_limit; |
| 62 |
uint32_t slow_ppt_limit; |
| 63 |
uint8_t system_configuration; |
| 64 |
uint8_t cppc_ctrl; |
| 65 |
uint8_t cppc_perf_limit_max_range; |
| 66 |
uint8_t cppc_perf_limit_min_range; |
| 67 |
uint8_t cppc_epp_max_range; |
| 68 |
uint8_t cppc_epp_min_range; |
| 69 |
uint8_t cppc_preferred_cores; |
| 70 |
uint8_t stapm_boost; |
| 71 |
uint32_t stapm_time_constant; |
| 72 |
uint32_t slow_ppt_time_constant; |
| 73 |
uint32_t thermctl_limit; |
| 74 |
uint8_t smu_soc_tuning_reserved[9]; |
| 75 |
uint8_t iommu_support; |
| 76 |
uint8_t pspp_policy; |
| 77 |
uint8_t enable_nb_azalia; |
| 78 |
uint8_t audio_io_ctl; |
| 79 |
uint8_t pdm_mic_selection; |
| 80 |
uint8_t hda_enable; |
| 81 |
uint8_t nbio_reserved[40]; |
| 82 |
uint8_t UnusedUpdSpace0[85]; |
| 83 |
uint32_t gnb_ioapic_base; |
| 84 |
uint8_t gnb_ioapic_id; |
| 85 |
uint8_t fch_ioapic_id; |
| 86 |
uint8_t sata_enable; |
| 87 |
uint8_t fch_reserved[32]; |
| 88 |
uint8_t s0i3_enable; |
| 89 |
uint32_t telemetry_vddcrvddfull_scale_current; |
| 90 |
uint32_t telemetry_vddcrvddoffset; |
| 91 |
uint32_t telemetry_vddcrsocfull_scale_current; |
| 92 |
uint32_t telemetry_vddcrsocOffset; |
| 93 |
uint8_t UnusedUpdSpace1; |
| 94 |
|
| 95 |
uint32_t usb_phy_ptr; |
| 96 |
uint8_t UnusedUpdSpace2[292]; |
| 97 |
uint16_t UpdTerminator; |
| 98 |
} FSP_M_CONFIG; |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
typedef struct __packed { |
| 103 |
FSP_UPD_HEADER FspUpdHeader; |
| 104 |
FSPM_ARCH_UPD FspmArchUpd; |
| 105 |
FSP_M_CONFIG FspmConfig; |
| 106 |
} FSPM_UPD; |
| 107 |
|
| 108 |
#define IMAGE_REVISION_MAJOR_VERSION 0x01 |
| 109 |
#define IMAGE_REVISION_MINOR_VERSION 0x00 |
| 110 |
#define IMAGE_REVISION_REVISION 0x06 |
| 111 |
#define IMAGE_REVISION_BUILD_NUMBER 0x00 |
| 112 |
|
| 113 |
#endif |