blob: 6b46f632449cfcee05e3320bb05ed2f2828d58f3 [file] [log] [blame]
Xo Wangc9972ae2016-09-26 14:53:01 -07001## System states
2## state can change to next state in 2 ways:
3## - a process emits a GotoSystemState signal with state name to goto
4## - objects specified in EXIT_STATE_DEPEND have started
5SYSTEM_STATES = [
6 'BASE_APPS',
7 'BMC_STARTING',
8 'BMC_READY',
9 'HOST_POWERING_ON',
10 'HOST_POWERED_ON',
11 'HOST_BOOTING',
12 'HOST_BOOTED',
13 'HOST_POWERED_OFF',
14]
15
16EXIT_STATE_DEPEND = {
17 'BASE_APPS' : {
18 '/org/openbmc/sensors': 0,
19 },
20 'BMC_STARTING' : {
21 '/org/openbmc/control/chassis0': 0,
22 '/org/openbmc/control/power0' : 0,
Xo Wangc9972ae2016-09-26 14:53:01 -070023 '/org/openbmc/control/flash/bios' : 0,
24 },
25}
26
27FRU_INSTANCES = {
28 '<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
29 '<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
30 '<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
31
32 '<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
33
34 '<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
35
36 '<inventory_root>/system/systemevent' : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
37 '<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
38 '<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
39 '<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
40
41 '<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
42 '<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
43 '<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
44
45 '<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
46
47 '<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
48 '<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
49
50 '<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
51 '<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
52 '<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
53 '<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
54 '<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
55 '<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
56 '<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
57 '<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
58 '<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
59 '<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
60 '<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
61 '<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
62
63 '<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
64 '<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
65 '<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
66 '<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
67 '<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
68 '<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
69 '<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
70 '<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
71 '<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
72 '<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
73 '<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
74 '<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
75
76 '<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
77 '<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
78 '<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
79 '<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
80 '<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
81 '<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
82 '<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
83 '<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
84 '<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
85 '<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
86 '<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
87 '<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
88 '<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
89 '<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
90 '<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
91 '<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
92 '<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
93 '<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
94 '<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
95 '<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
96 '<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
97 '<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
98 '<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
99 '<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
100 '<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
101 '<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
102 '<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
103 '<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
104 '<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
105 '<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
106 '<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
107 '<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
108}
109
110ID_LOOKUP = {
111 'FRU' : {
112 0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
113 0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
114 0x03 : '<inventory_root>/system/chassis/motherboard',
115 0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
116 0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
117 0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
118 0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
119 0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
120 0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
121 0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
122 0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
123 0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
124 0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
125 0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
126 0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
127 0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
128 0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
129 0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
130 0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
131 0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
132 0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
133 0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
134 0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
135 0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
136 0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
137 0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
138 0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
139 0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
140 0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
141 0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
142 0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
143 0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
144 0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
145 0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
146 0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
147 0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
148 0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
149 0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
150 0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
151 0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
152 0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
153 },
154 'FRU_STR' : {
155 'PRODUCT_0' : '<inventory_root>/system/bios',
156 'BOARD_1' : '<inventory_root>/system/chassis/motherboard/cpu0',
157 'BOARD_2' : '<inventory_root>/system/chassis/motherboard/cpu1',
158 'CHASSIS_3' : '<inventory_root>/system/chassis/motherboard',
159 'BOARD_3' : '<inventory_root>/system/misc',
160 'PRODUCT_12' : '<inventory_root>/system/chassis/motherboard/dimm0',
161 'PRODUCT_13' : '<inventory_root>/system/chassis/motherboard/dimm1',
162 'PRODUCT_14' : '<inventory_root>/system/chassis/motherboard/dimm2',
163 'PRODUCT_15' : '<inventory_root>/system/chassis/motherboard/dimm3',
164 'PRODUCT_16' : '<inventory_root>/system/chassis/motherboard/dimm4',
165 'PRODUCT_17' : '<inventory_root>/system/chassis/motherboard/dimm5',
166 'PRODUCT_18' : '<inventory_root>/system/chassis/motherboard/dimm6',
167 'PRODUCT_19' : '<inventory_root>/system/chassis/motherboard/dimm7',
168 'PRODUCT_20' : '<inventory_root>/system/chassis/motherboard/dimm8',
169 'PRODUCT_21' : '<inventory_root>/system/chassis/motherboard/dimm9',
170 'PRODUCT_22' : '<inventory_root>/system/chassis/motherboard/dimm10',
171 'PRODUCT_23' : '<inventory_root>/system/chassis/motherboard/dimm11',
172 'PRODUCT_24' : '<inventory_root>/system/chassis/motherboard/dimm12',
173 'PRODUCT_25' : '<inventory_root>/system/chassis/motherboard/dimm13',
174 'PRODUCT_26' : '<inventory_root>/system/chassis/motherboard/dimm14',
175 'PRODUCT_27' : '<inventory_root>/system/chassis/motherboard/dimm15',
176 'PRODUCT_28' : '<inventory_root>/system/chassis/motherboard/dimm16',
177 'PRODUCT_29' : '<inventory_root>/system/chassis/motherboard/dimm17',
178 'PRODUCT_30' : '<inventory_root>/system/chassis/motherboard/dimm18',
179 'PRODUCT_31' : '<inventory_root>/system/chassis/motherboard/dimm19',
180 'PRODUCT_32' : '<inventory_root>/system/chassis/motherboard/dimm20',
181 'PRODUCT_33' : '<inventory_root>/system/chassis/motherboard/dimm21',
182 'PRODUCT_34' : '<inventory_root>/system/chassis/motherboard/dimm22',
183 'PRODUCT_35' : '<inventory_root>/system/chassis/motherboard/dimm23',
184 'PRODUCT_36' : '<inventory_root>/system/chassis/motherboard/dimm24',
185 'PRODUCT_37' : '<inventory_root>/system/chassis/motherboard/dimm25',
186 'PRODUCT_38' : '<inventory_root>/system/chassis/motherboard/dimm26',
187 'PRODUCT_39' : '<inventory_root>/system/chassis/motherboard/dimm27',
188 'PRODUCT_40' : '<inventory_root>/system/chassis/motherboard/dimm28',
189 'PRODUCT_41' : '<inventory_root>/system/chassis/motherboard/dimm29',
190 'PRODUCT_42' : '<inventory_root>/system/chassis/motherboard/dimm30',
191 'PRODUCT_43' : '<inventory_root>/system/chassis/motherboard/dimm31',
192 'PRODUCT_47' : '<inventory_root>/system/misc',
193 },
194 'SENSOR' : {
195 0x04 : '/org/openbmc/sensors/host/HostStatus',
196 0x05 : '/org/openbmc/sensors/host/BootProgress',
197 0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
198 0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
199 0x1e : '<inventory_root>/system/chassis/motherboard/dimm3',
200 0x1f : '<inventory_root>/system/chassis/motherboard/dimm2',
201 0x20 : '<inventory_root>/system/chassis/motherboard/dimm1',
202 0x21 : '<inventory_root>/system/chassis/motherboard/dimm0',
203 0x22 : '<inventory_root>/system/chassis/motherboard/dimm7',
204 0x23 : '<inventory_root>/system/chassis/motherboard/dimm6',
205 0x24 : '<inventory_root>/system/chassis/motherboard/dimm5',
206 0x25 : '<inventory_root>/system/chassis/motherboard/dimm4',
207 0x26 : '<inventory_root>/system/chassis/motherboard/dimm11',
208 0x27 : '<inventory_root>/system/chassis/motherboard/dimm10',
209 0x28 : '<inventory_root>/system/chassis/motherboard/dimm9',
210 0x29 : '<inventory_root>/system/chassis/motherboard/dimm8',
211 0x2a : '<inventory_root>/system/chassis/motherboard/dimm15',
212 0x2b : '<inventory_root>/system/chassis/motherboard/dimm14',
213 0x2c : '<inventory_root>/system/chassis/motherboard/dimm13',
214 0x2d : '<inventory_root>/system/chassis/motherboard/dimm12',
215 0x2e : '<inventory_root>/system/chassis/motherboard/dimm19',
216 0x2f : '<inventory_root>/system/chassis/motherboard/dimm18',
217 0x30 : '<inventory_root>/system/chassis/motherboard/dimm17',
218 0x31 : '<inventory_root>/system/chassis/motherboard/dimm16',
219 0x32 : '<inventory_root>/system/chassis/motherboard/dimm23',
220 0x33 : '<inventory_root>/system/chassis/motherboard/dimm22',
221 0x34 : '<inventory_root>/system/chassis/motherboard/dimm21',
222 0x35 : '<inventory_root>/system/chassis/motherboard/dimm20',
223 0x36 : '<inventory_root>/system/chassis/motherboard/dimm27',
224 0x37 : '<inventory_root>/system/chassis/motherboard/dimm26',
225 0x38 : '<inventory_root>/system/chassis/motherboard/dimm25',
226 0x39 : '<inventory_root>/system/chassis/motherboard/dimm24',
227 0x3a : '<inventory_root>/system/chassis/motherboard/dimm31',
228 0x3b : '<inventory_root>/system/chassis/motherboard/dimm30',
229 0x3c : '<inventory_root>/system/chassis/motherboard/dimm29',
230 0x3d : '<inventory_root>/system/chassis/motherboard/dimm28',
231 0x3e : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
232 0x3f : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
233 0x40 : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
234 0x41 : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
235 0x42 : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
236 0x43 : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
237 0x44 : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
238 0x45 : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
239 0x46 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
240 0x47 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
241 0x48 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
242 0x49 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
243 0x4a : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
244 0x4b : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
245 0x4c : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
246 0x4d : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
247 0x4e : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
248 0x4f : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
249 0x50 : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
250 0x51 : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
251 0x52 : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
252 0x53 : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
253 0x54 : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
254 0x55 : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
255 0x5f : '/org/openbmc/sensors/host/BootCount',
256 0x60 : '<inventory_root>/system/chassis/motherboard',
257 0x61 : '<inventory_root>/system/systemevent',
258 0x63 : '<inventory_root>/system/chassis/motherboard/refclock',
259 0x64 : '<inventory_root>/system/chassis/motherboard/pcieclock',
260 0xb1 : '<inventory_root>/system/chassis/motherboard/todclock',
261 0xb5 : '/org/openbmc/sensors/host/OperatingSystemStatus',
262 0xb6 : '<inventory_root>/system/chassis/motherboard/pcielink',
263 },
264 'GPIO_PRESENT' : {}
265}
266
267GPIO_CONFIG = {}
268GPIO_CONFIG['SOFTWARE_PGOOD'] = \
269 {'gpio_pin': 'R1', 'direction': 'out'}
270GPIO_CONFIG['BMC_POWER_UP'] = \
271 {'gpio_pin': 'D1', 'direction': 'out'}
272GPIO_CONFIG['SYS_PWROK_BUFF'] = \
273 {'gpio_pin': 'D2', 'direction': 'in'}
274GPIO_CONFIG['PHY_RST_N'] = \
275 {'gpio_pin': 'D3', 'direction': 'out'}
276GPIO_CONFIG['HDD_PWR_EN'] = \
277 {'gpio_pin': 'D4', 'direction': 'out'}
278GPIO_CONFIG['CP0_DEVICES_RESET_N'] = \
279 {'gpio_pin': 'A1', 'direction': 'out'}
280GPIO_CONFIG['BMC_CP0_PERST_ENABLE'] = \
281 {'gpio_pin': 'A3', 'direction': 'out'}
282GPIO_CONFIG['BMC_UCD_LATCH_LE'] = \
283 {'gpio_pin': 'B4', 'direction': 'out'}
284GPIO_CONFIG['FSI_DATA'] = \
285 {'gpio_pin': 'E0', 'direction': 'out'}
286GPIO_CONFIG['FSI_CLK'] = \
287 {'gpio_pin': 'AA0', 'direction': 'out'}
288GPIO_CONFIG['FSI_ENABLE'] = \
289 {'gpio_pin': 'D0', 'direction': 'out'}
Xo Wange83635a2016-10-26 13:55:34 -0700290GPIO_CONFIG['CRONUS_SEL'] = \
291 {'gpio_pin': 'P6', 'direction': 'out'}
Xo Wangc9972ae2016-09-26 14:53:01 -0700292# FIXME: net name is FP_PWR_BTN_N in schematic
293GPIO_CONFIG['POWER_BUTTON'] = \
294 {'gpio_pin': 'I3', 'direction': 'both'}
295# FIXME: net name is FP_RST_BTN_N in schematic
296GPIO_CONFIG['RESET_BUTTON'] = \
Xo Wang2c77baa2016-10-10 14:35:54 -0700297 {'gpio_pin': 'G3', 'direction': 'both'}
Xo Wangc9972ae2016-09-26 14:53:01 -0700298GPIO_CONFIG['PE_MEZZB_PRSNT_N'] = \
299 {'gpio_pin': 'P7', 'direction': 'in'}
300
301HWMON_CONFIG = {
Xo Wang14df1972016-12-07 16:31:30 -0800302 '0-0064': {
303 'names': {
Xo Wangc9972ae2016-09-26 14:53:01 -0700304 },
Xo Wang14df1972016-12-07 16:31:30 -0800305 'labels': {
306 },
Xo Wangc9972ae2016-09-26 14:53:01 -0700307 },
308}
309
310POWER_CONFIG = {
Yi Li0475f652016-10-25 13:19:59 +0800311 'latch_out': 'BMC_UCD_LATCH_LE',
312 'power_good_in': 'SYS_PWROK_BUFF',
313 'power_up_outs': [
Xo Wangc9972ae2016-09-26 14:53:01 -0700314 ('SOFTWARE_PGOOD', True),
315 ('BMC_POWER_UP', True),
316 ],
Yi Li0475f652016-10-25 13:19:59 +0800317 'reset_outs': [
Xo Wangc9972ae2016-09-26 14:53:01 -0700318 ],
319}
320
321# Miscellaneous non-poll sensor with system specific properties.
322# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
323MISC_SENSORS = {
324 0x5f : { 'class' : 'BootCountSensor' },
325 0x05 : { 'class' : 'BootProgressSensor' },
326 0xb5 : { 'class' : 'OperatingSystemStatusSensor' },
327}
328
329# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4