coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _CIMX_SB800_CHIP_H_
4 #define _CIMX_SB800_CHIP_H_
5 #include "fan.h" /* include for #defines used in devicetree.cb */
6 
7 /*
8  * configuration set in mainboard/devicetree.cb
9  * boot_switch_sata_ide:
10  * 0 -set SATA as primary, PATA(IDE) as secondary.
11  * 1 -set PATA(IDE) as primary, SATA as secondary. if you want to boot from IDE,
12  * gpp_configuration - The configuration of General Purpose Port A/B/C/D
13  * 0(GPP_CFGMODE_X4000) -PortA Lanes[3:0]
14  * 2(GPP_CFGMODE_X2200) -PortA Lanes[1:0], PortB Lanes[3:2]
15  * 3(GPP_CFGMODE_X2110) -PortA Lanes[1:0], PortB Lane2, PortC Lane3
16  * 4(GPP_CFGMODE_X1111) -PortA Lanes0, PortB Lane1, PortC Lane2, PortD Lane3
17  */
19 {
23 
24  /*
25  * SB800 IMC and fan control
26  */
27 
29 
43 
44  union {
45  struct {
59  };
61  };
62 
63  union {
64  struct {
78  };
80  };
81 
82  union {
83  struct {
97  };
99  };
100 
101  union {
102  struct {
116  };
118  };
119 
120  union {
121  struct {
135  };
137  };
138 
139  union {
140  struct {
149  };
151  };
154 
155  union {
156  struct {
165  };
167  };
170 
171  union {
172  struct {
181  };
183  };
186 
187  union {
188  struct {
197  };
199  };
202 
206 
210 
214 
218 
219 };
220 #endif /* _CIMX_SB800_CHIP_H_ */
#define IMC_FAN_CONFIG_COUNT
Definition: fan.h:131
#define IMC_FAN_SPEED_COUNT
Definition: fan.h:130
#define FAN_REGISTER_COUNT
Definition: fan.h:132
#define IMC_FAN_THRESHOLD_COUNT
Definition: fan.h:129
uint32_t u32
Definition: stdint.h:51
uint16_t u16
Definition: stdint.h:48
uint8_t u8
Definition: stdint.h:45
u8 imc_zone2_config_vals[IMC_FAN_CONFIG_COUNT]
Definition: chip.h:182
u8 fan0_config_vals[FAN_REGISTER_COUNT]
Definition: chip.h:60
u8 imc_zone1_fanspeeds[IMC_FAN_SPEED_COUNT]
Definition: chip.h:169
u8 fan4_config_vals[FAN_REGISTER_COUNT]
Definition: chip.h:136
u8 imc_zone0_thresholds[IMC_FAN_THRESHOLD_COUNT]
Definition: chip.h:152
u8 fan2_config_vals[FAN_REGISTER_COUNT]
Definition: chip.h:98
u8 imc_zone1_config_vals[IMC_FAN_CONFIG_COUNT]
Definition: chip.h:166
u8 imc_zone0_config_vals[IMC_FAN_CONFIG_COUNT]
Definition: chip.h:150
u8 imc_zone0_fanspeeds[IMC_FAN_SPEED_COUNT]
Definition: chip.h:153
u8 imc_zone3_config_vals[IMC_FAN_CONFIG_COUNT]
Definition: chip.h:198
u8 imc_zone2_thresholds[IMC_FAN_THRESHOLD_COUNT]
Definition: chip.h:184
u8 imc_zone3_thresholds[IMC_FAN_THRESHOLD_COUNT]
Definition: chip.h:200
u8 fan1_config_vals[FAN_REGISTER_COUNT]
Definition: chip.h:79
u8 imc_zone2_fanspeeds[IMC_FAN_SPEED_COUNT]
Definition: chip.h:185
u8 imc_zone1_thresholds[IMC_FAN_THRESHOLD_COUNT]
Definition: chip.h:168
u8 imc_zone3_fanspeeds[IMC_FAN_SPEED_COUNT]
Definition: chip.h:201
u8 fan3_config_vals[FAN_REGISTER_COUNT]
Definition: chip.h:117