meta-aspeed: udev rules for vuart
Added 61-aspeed-vuart.rules with the AST2400/AST2500 VUART
udev rules. Chose '61' because the basic serial support from
upstream is in '60'.
Fixes openbmc/openbmc#528.
Change-Id: Id7832bd3b421d6ffa6918e12654f9b74833384d6
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meta-openbmc-bsp/meta-aspeed/common/recipes-core/udev-aspeed-vuart/udev-aspeed-vuart.bb b/meta-openbmc-bsp/meta-aspeed/common/recipes-core/udev-aspeed-vuart/udev-aspeed-vuart.bb
new file mode 100644
index 0000000..c0ee677
--- /dev/null
+++ b/meta-openbmc-bsp/meta-aspeed/common/recipes-core/udev-aspeed-vuart/udev-aspeed-vuart.bb
@@ -0,0 +1,15 @@
+SUMMARY = "udev rules for Aspeed VUART"
+DESCRIPTION = "udev rules for Aspeed VUART"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+S = "${WORKDIR}"
+SRC_URI += "file://61-aspeed-vuart.rules"
+
+RDEPENDS_${PN} += "udev"
+
+do_install() {
+ install -d ${D}/lib/udev/rules.d
+ install -m 0644 ${WORKDIR}/61-aspeed-vuart.rules ${D}/lib/udev/rules.d
+}
diff --git a/meta-openbmc-bsp/meta-aspeed/common/recipes-core/udev-aspeed-vuart/udev-aspeed-vuart/61-aspeed-vuart.rules b/meta-openbmc-bsp/meta-aspeed/common/recipes-core/udev-aspeed-vuart/udev-aspeed-vuart/61-aspeed-vuart.rules
new file mode 100644
index 0000000..98ac36d
--- /dev/null
+++ b/meta-openbmc-bsp/meta-aspeed/common/recipes-core/udev-aspeed-vuart/udev-aspeed-vuart/61-aspeed-vuart.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="tty", DRIVERS=="aspeed-vuart",ATTRS{lpc_address}=="0x3f8", SYMLINK+="ttyVUART0", TAG+="systemd"