summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/apalis-imx6
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2020-04-27 11:17:45 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2020-06-01 11:40:39 +0200
commit9668cae0bdf9a9454c2bd6be1e70d7931edd930e (patch)
treea67b6d73d993ff39884cbcebff8a253d8a094a3c /recipes-core/udev/files/apalis-imx6
parente418b11a5f78569b906d21f563e4e89f0a0f44be (diff)
recipes-core: udev: move emmc rules from torizon to bsp
This adds udev rules for symlinking eMMC devices consitently. Related-to: ELB-2380, ELB-2696 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit ac32e59f1f961070189e1a038644f87ce9e7c152)
Diffstat (limited to 'recipes-core/udev/files/apalis-imx6')
-rw-r--r--recipes-core/udev/files/apalis-imx6/99-toradex.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-core/udev/files/apalis-imx6/99-toradex.rules b/recipes-core/udev/files/apalis-imx6/99-toradex.rules
index fa258ba..ee467a4 100644
--- a/recipes-core/udev/files/apalis-imx6/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-imx6/99-toradex.rules
@@ -9,3 +9,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x21F4000", SYMLINK+="apalis-tty4"
ACTION=="add", KERNELS=="20bc000.wdog", SYMLINK+="apalis-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2008000.ecspi", SYMLINK+="apalis-spi1-cs%n"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="200c000.ecspi", SYMLINK+="apalis-spi2-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc"
+KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc-boot%n"
+KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="2198000.usdhc", SYMLINK+="emmc-part%n"