meta-facebook: minerva: turn on the led
The LED can't be on by chassis on when the BMC reboots.
Add a script to turn it on.
Change-Id: Ie7b09f2e07e19c8881b234e802b334ee5ac1c124
Signed-off-by: Yang Chen <yang.chen@quantatw.com>
diff --git a/meta-facebook/meta-minerva/recipes-minerva/plat-svc/files/minerva-early-sys-init b/meta-facebook/meta-minerva/recipes-minerva/plat-svc/files/minerva-early-sys-init
index 411cff1..de609ee 100644
--- a/meta-facebook/meta-minerva/recipes-minerva/plat-svc/files/minerva-early-sys-init
+++ b/meta-facebook/meta-minerva/recipes-minerva/plat-svc/files/minerva-early-sys-init
@@ -2,6 +2,10 @@
# shellcheck source=meta-facebook/meta-minerva/recipes-minerva/plat-tool/files/minerva-common-functions
source /usr/libexec/minerva-common-functions
+power_on_led_init() {
+ systemctl start obmc-led-group-start@power_on.service
+}
+
# set initial value for GPIO output pins
set_gpio PWREN_MTIA_BLADE0_EN_N 0
set_gpio PWREN_MTIA_BLADE1_EN_N 0
@@ -91,4 +95,7 @@
set_gpio wFM_88E6393X_BIN_UPDATE_EN_N 1
set_gpio WATER_VALVE_CLOSED_N 0
set_gpio BMC_READY 1
+
+power_on_led_init
+
exit 0