mboxd: Also depend on /dev/aspeed-lpc-ctrl

mboxd opens both /dev/aspeed-mbox and /dev/aspeed-lpc-ctrl devices, so
make sure we depend on both being available prior to service launch.

Change-Id: I388a41b6209b9156e7d7780565d1ed6af483b0a7
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/meta-phosphor/common/recipes-phosphor/mboxd/files/99-aspeed-lpc-ctrl.rules b/meta-phosphor/common/recipes-phosphor/mboxd/files/99-aspeed-lpc-ctrl.rules
new file mode 100644
index 0000000..9cf2fba
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/mboxd/files/99-aspeed-lpc-ctrl.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="misc", KERNEL=="aspeed-lpc-ctrl", TAG+="systemd"
diff --git a/meta-phosphor/common/recipes-phosphor/mboxd/mboxd.bb b/meta-phosphor/common/recipes-phosphor/mboxd/mboxd.bb
index 8349bb6..59596eb 100644
--- a/meta-phosphor/common/recipes-phosphor/mboxd/mboxd.bb
+++ b/meta-phosphor/common/recipes-phosphor/mboxd/mboxd.bb
@@ -14,6 +14,7 @@
 SRC_URI += "git://github.com/openbmc/mboxbridge.git;protocol=https"
 
 SRC_URI += "file://99-aspeed-mbox.rules"
+SRC_URI += "file://99-aspeed-lpc-ctrl.rules"
 SRC_URI += "file://aspeed-lpc-ctrl-h.patch"
 
 SRCREV="8cb799c2d6c2675959e80f2a7b88610aa4f4817a"
@@ -28,6 +29,7 @@
 do_install_append() {
     install -d ${D}/lib/udev/rules.d
     install -m 0644 ${WORKDIR}/99-aspeed-mbox.rules ${D}/lib/udev/rules.d
+    install -m 0644 ${WORKDIR}/99-aspeed-lpc-ctrl.rules ${D}/lib/udev/rules.d
 }
 
 TMPL = "mboxd-reload@.service"
diff --git a/meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd.service b/meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd.service
index 7dc5c50..ad3d145 100644
--- a/meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd.service
+++ b/meta-phosphor/common/recipes-phosphor/mboxd/mboxd/mboxd.service
@@ -2,6 +2,8 @@
 Description=Phosphor MBOX Daemon
 Wants=dev-aspeed-mbox.device
 After=dev-aspeed-mbox.device
+Wants=dev-aspeed-lpc-ctrl.device
+After=dev-aspeed-lpc-ctrl.device
 
 [Service]
 Restart=always