pmaports/modem/msm-modem/udev-rpmsg.rules

15 lines
482 B
Text
Raw Normal View History

SUBSYSTEM!="rpmsg", GOTO="qcom_rpmsg_end"
# symlink rpmsg endpoints under useful names
ATTR{name}=="DATA5_CNTL", SYMLINK+="modem"
ATTR{name}=="DATA4", SYMLINK+="modem-at"
# open SMD channels when the remoteproc comes up
KERNEL!="rpmsg_ctrl[0-9]*", GOTO="qcom_rpmsg_end"
ATTRS{rpmsg_name}!="modem|hexagon", GOTO="qcom_rpmsg_end"
ACTION=="add", RUN+="/usr/sbin/rpmsgexport /dev/$name DATA5_CNTL"
ACTION=="add", RUN+="/usr/sbin/rpmsgexport /dev/$name DATA4"
LABEL="qcom_rpmsg_end"