Skip to content

Commit 8aebfff

Browse files
committed
configure power control
1 parent a74ed0d commit 8aebfff

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"gpio_configs": [
3+
{
4+
"Name": "IdButton",
5+
"LineName": "",
6+
"Type": "GPIO",
7+
"Polarity": "ActiveLow"
8+
},
9+
{
10+
"Name": "NMIButton",
11+
"LineName": "",
12+
"Type": "GPIO",
13+
"Polarity": "ActiveLow"
14+
},
15+
{
16+
"Name": "NMIOut",
17+
"LineName": "",
18+
"Type": "GPIO",
19+
"Polarity": "ActiveHigh"
20+
},
21+
{
22+
"Name": "PostComplete",
23+
"LineName": "FM_BIOS_POST_CMPLT_N",
24+
"Type": "GPIO",
25+
"Polarity": "ActiveLow"
26+
},
27+
{
28+
"Name": "PowerButton",
29+
"LineName": "BMC_PSIN",
30+
"Type": "GPIO",
31+
"Polarity": "ActiveLow"
32+
},
33+
{
34+
"Name": "PowerOk",
35+
"LineName": "PS_PWROK",
36+
"Type": "GPIO",
37+
"Polarity": "ActiveHigh"
38+
},
39+
{
40+
"Name": "PowerOut",
41+
"LineName": "BMC_PSOUT",
42+
"Type": "GPIO",
43+
"Polarity": "ActiveLow"
44+
},
45+
{
46+
"Name": "ResetButton",
47+
"LineName": "BMC_RESETCON",
48+
"Type": "GPIO",
49+
"Polarity": "ActiveLow"
50+
},
51+
{
52+
"Name": "ResetOut",
53+
"LineName": "RESETCON",
54+
"Type": "GPIO",
55+
"Polarity": "ActiveLow"
56+
},
57+
{
58+
"Name": "SioOnControl",
59+
"LineName": "",
60+
"Type": "GPIO",
61+
"Polarity": "ActiveLow"
62+
},
63+
{
64+
"Name": "SioPowerGood",
65+
"LineName": "",
66+
"Type": "GPIO",
67+
"Polarity": "ActiveHigh"
68+
},
69+
{
70+
"Name": "SIOS5",
71+
"LineName": "",
72+
"Type": "GPIO",
73+
"Polarity": "ActiveLow"
74+
}
75+
],
76+
"timing_configs": {
77+
"PowerPulseMs": 200,
78+
"ForceOffPulseMs": 15000,
79+
"ResetPulseMs": 500,
80+
"PowerCycleMs": 5000,
81+
"SioPowerGoodWatchdogMs": 1000,
82+
"PsPowerOKWatchdogMs": 8000,
83+
"GracefulPowerOffS": 300,
84+
"WarmResetCheckMs": 500,
85+
"PowerOffSaveMs": 7000
86+
}
87+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2+
3+
SRC_URI += " \
4+
file://power-config-host0.json \
5+
"
6+
7+
do_install:append() {
8+
install -d ${D}/${datadir}/${PN}
9+
install -m 0644 ${WORKDIR}/power-config-host0.json ${D}/${datadir}/${PN}
10+
}

0 commit comments

Comments
 (0)