summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/colibri-imx8x
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/colibri-imx8x
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/colibri-imx8x')
-rw-r--r--recipes-core/udev/files/colibri-imx8x/99-toradex.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules
index e68645f..fea5b81 100644
--- a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules
@@ -5,3 +5,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x5A060010", SYMLINK+="colibri-ttyb"
ACTION=="add", ATTRS{iomem_base}=="0x5A080010", SYMLINK+="colibri-ttyc"
ACTION=="add", KERNELS=="watchdog", SYMLINK+="colibri-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a020000.lpspi", SYMLINK+="colibri-spi-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.usdhc", SYMLINK+="emmc"
+KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.usdhc", SYMLINK+="emmc-boot%n"
+KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="5b010000.usdhc", SYMLINK+="emmc-part%n"