hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/** @file
Some configuration of QNC Package
 
Copyright (c) 2013-2015 Intel Corporation.
 
SPDX-License-Identifier: BSD-2-Clause-Patent
 
**/
 
#ifndef __INTEL_QNC_CONFIG_H__
#define __INTEL_QNC_CONFIG_H__
 
//
// QNC Fixed configurations.
//
 
//
// Memory arbiter fixed config values.
//
#define QNC_FIXED_CONFIG_ASTATUS  ((UINT32) (\
          (ASTATUS_PRI_NORMAL << ASTATUS0_DEFAULT_BP) | \
          (ASTATUS_PRI_NORMAL << ASTATUS1_DEFAULT_BP) | \
          (ASTATUS_PRI_URGENT << ASTATUS0_RASISED_BP) | \
          (ASTATUS_PRI_URGENT << ASTATUS1_RASISED_BP) \
          ))
 
//
// Memory Manager fixed config values.
//
#define V_DRAM_NON_HOST_RQ_LIMIT                    2
 
//
// RMU Thermal config fixed config values for TS in Vref Mode.
//
#define V_TSCGF1_CONFIG_ISNSCURRENTSEL_VREF_MODE    0x04
#define V_TSCGF2_CONFIG2_ISPARECTRL_VREF_MODE       0x01
#define V_TSCGF1_CONFIG_IBGEN_VREF_MODE             1
#define V_TSCGF2_CONFIG_IDSCONTROL_VREF_MODE        0x011b
#define V_TSCGF2_CONFIG2_ICALCOARSETUNE_VREF_MODE   0x34
 
//
// RMU Thermal config fixed config values for TS in Ratiometric mode.
//
#define V_TSCGF1_CONFIG_ISNSCURRENTSEL_RATIO_MODE   0x04
#define V_TSCGF1_CONFIG_ISNSCHOPSEL_RATIO_MODE      0x02
#define V_TSCGF1_CONFIG_ISNSINTERNALVREFEN_RATIO_MODE 1
#define V_TSCGF2_CONFIG_IDSCONTROL_RATIO_MODE       0x011f
#define V_TSCGF2_CONFIG_IDSTIMING_RATIO_MODE        0x0001
#define V_TSCGF2_CONFIG2_ICALCONFIGSEL_RATIO_MODE   0x01
#define V_TSCGF2_CONFIG2_ISPARECTRL_RATIO_MODE      0x00
#define V_TSCGF1_CONFIG_IBGEN_RATIO_MODE            0
#define V_TSCGF1_CONFIG_IBGCHOPEN_RATIO_MODE        0
#define V_TSCGF3_CONFIG_ITSGAMMACOEFF_RATIO_MODE    0xC8
#define V_TSCGF2_CONFIG2_ICALCOARSETUNE_RATIO_MODE  0x17
 
//
// iCLK fixed config values.
//
#define V_MUXTOP_FLEX2                              3
#define V_MUXTOP_FLEX1                              1
 
//
// PCIe Root Port fixed config values.
//
#define V_PCIE_ROOT_PORT_SBIC_VALUE                 (B_QNC_PCIE_IOSFSBCTL_SBIC_IDLE_NEVER)
 
//
// QNC structures for configuration.
//
 
typedef union {
  struct {
    UINT32  PortErrorMask               :8;
    UINT32  SlotImplemented             :1;
    UINT32  Reserved1                   :1;
    UINT32  AspmEnable                  :1;
    UINT32  AspmAutoEnable              :1;
    UINT32  AspmL0sEnable               :2;
    UINT32  AspmL1Enable                :1;
    UINT32  PmeInterruptEnable          :1;
    UINT32  PhysicalSlotNumber          :13;
    UINT32  Reserved2                   :1;
    UINT32  PmSciEnable                 :1;
    UINT32  HotplugSciEnable            :1;
  } Bits;
  UINT32 Uint32;
} PCIEXP_ROOT_PORT_CONFIGURATION;
 
typedef union {
  UINT32 Uint32;
  struct {
    UINT32 Pcie_0     :1;   // 0: Disabled; 1: Enabled*
    UINT32 Pcie_1     :1;   // 0: Disabled; 1: Enabled*
    UINT32 Smbus      :1;   // 0: Disabled; 1: Enabled*
    UINT32 Rsvd       :29;  // 0
  } Bits;
} QNC_DEVICE_ENABLES;
 
#endif