meta-openpower: Add hostboot-boot-settings unit
This runs the hb_settings script at boot time in order to configure the
SIO registers. It only needs to be done once at boot, as the registers
stick and are not changed in normal operation of the BMC.
Change-Id: I1b24836f2c7e6dfee0a665ea77b6ca7b810553ef
Signed-off-by: Joel Stanley <joel@jms.id.au>
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/hostboot-settings/hostboot-settings.service b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/hostboot-settings/hostboot-settings.service
new file mode 100644
index 0000000..60e3ee9
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/hostboot-settings/hostboot-settings.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Hostboot Boot Settings
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/hb_settings --uart vuart
+
+[Install]
+WantedBy=obmc-standby.target