aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorAdrian Alonso <b38018@freescale.com>2011-08-24 17:08:44 -0500
committerAdrian Alonso <b38018@freescale.com>2011-08-24 17:08:44 -0500
commit08a8e27f7e934fded4badbb451cbefbe891ac409 (patch)
treecdecc5f7624b8fe0e8ce3bf3eb9e543d7bc9198a /recipes-core
parent83f6a6827e17a17ec06337017e5ebb94fa83ce80 (diff)
downloadmeta-fsl-arm-08a8e27f7e934fded4badbb451cbefbe891ac409.tar.gz
meta-fsl-arm-08a8e27f7e934fded4badbb451cbefbe891ac409.tar.bz2
meta-fsl-arm-08a8e27f7e934fded4badbb451cbefbe891ac409.zip
udev-extraconf: add custom target udev rules to rootfs
* Add udev custom target rules 10-imx.rules * Input devices udev rules are disabled since they are already covered in default yocto udev rules, keep custom settings. Signed-off-by: Adrian Alonso <b38018@freescale.com>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/udev/udev-extraconf/10-imx.rules24
-rw-r--r--recipes-core/udev/udev-extraconf_0.0.bbappend9
2 files changed, 33 insertions, 0 deletions
diff --git a/recipes-core/udev/udev-extraconf/10-imx.rules b/recipes-core/udev/udev-extraconf/10-imx.rules
new file mode 100644
index 0000000..1fc32dc
--- /dev/null
+++ b/recipes-core/udev/udev-extraconf/10-imx.rules
@@ -0,0 +1,24 @@
+# Create symlinks for i.mx keypads and touchscreens
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mxckpd", SYMLINK+="input/keyboard0"
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mxc_ts", SYMLINK+="input/ts0"
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="imx_adc_ts", SYMLINK+="input/ts0"
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mpr084", SYMLINK+="input/keyboard0"
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="tsc2007", SYMLINK+="input/ts0"
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="STMP3XXX touchscreen", SYMLINK+="input/ts0"
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="MXS touchscreen", SYMLINK+="input/ts0"
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="HannStar P1003 Touchscreen", SYMLINK+="input/ts0"
+#SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="eGalax Touch Screen", SYMLINK+="input/ts0"
+
+# The long class name gets cut off to be mc13783_connectiv in
+# /sys/class/mc13783_connectivity/mc13783_connectivit
+KERNEL=="mc13783_connectiv*", NAME="mc13783_connectivity"
+# Anyone has readonly permission to IIM device file
+KERNEL=="mxc_iim", MODE="0444", SYMLINK+="mxc_mem"
+KERNEL=="mxs_viim", MODE="0444", SYMLINK+="mxc_mem"
+KERNEL=="mxc_ipu", MODE="0666"
+KERNEL=="fb0", MODE="0666"
+KERNEL=="fb1", MODE="0666"
+KERNEL=="fb2", MODE="0666"
+KERNEL=="mxc_vpu", MODE="0666"
+SUBSYSTEM=="video", MODE="0666"
+KERNEL=="gsl_kmod", MODE="0666"
diff --git a/recipes-core/udev/udev-extraconf_0.0.bbappend b/recipes-core/udev/udev-extraconf_0.0.bbappend
new file mode 100644
index 0000000..7e496a4
--- /dev/null
+++ b/recipes-core/udev/udev-extraconf_0.0.bbappend
@@ -0,0 +1,9 @@
+# Freescale imx extra configuration udev rules
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append += "file://10-imx.rules"
+
+do_install_prepend () {
+ install -d ${D}${sysconfdir}/udev/rules.d
+ install -m 0644 ${WORKDIR}/10-imx.rules ${D}${sysconfdir}/udev/rules.d
+}