meta-facebook: greatlakes: Set 12V and host power state
Description:
- Set 12V and host power state.
Design:
- Use i2c bus 12 address 0xf register 0x25 to
detect 12V state
- Register gpio interrupt to set host power state when 12V off
- Set correct state on CurrentHostState property for host status
after doing host power control
- Set correcr state on CurrentPowerState property for 12V status
after doing 12V power control
Test Case:
1. 12V off - pass
2. 12V on - pass
3. 12V cycle - pass
4. sled cycle - pass
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Change-Id: I4ccdec0a98037fd6ff405b2f534bb897d0e2e010
diff --git a/meta-facebook/meta-greatlakes/recipes-phosphor/images/fb-greatlakes-phosphor-image.inc b/meta-facebook/meta-greatlakes/recipes-phosphor/images/fb-greatlakes-phosphor-image.inc
new file mode 100644
index 0000000..afff8ec
--- /dev/null
+++ b/meta-facebook/meta-greatlakes/recipes-phosphor/images/fb-greatlakes-phosphor-image.inc
@@ -0,0 +1,13 @@
+OBMC_IMAGE_EXTRA_INSTALL:append = " \
+ greatlakes-sysinit \
+ greatlakes-gpio-monitor-register \
+"
+
+# Currently, the led related services couldn't complete
+# causing that multi-user.target never complete.
+# If multi-user.target doesn't complete,
+# the obmc-host-startmin@.target couldn't start.
+# In that case, BMC couldn't set current host state to "Running".
+IMAGE_FEATURES:remove = " \
+ obmc-leds \
+"