]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: add the DM_UC_FLAG_SEQ_ALIAS flag for numbering the devices
authorThomas Abraham <thomas.ab@samsung.com>
Sat, 23 Apr 2016 16:48:07 +0000 (22:18 +0530)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 25 May 2016 01:00:18 +0000 (10:00 +0900)
It is possible to have multiple pin controllers in the system. Use the
DM_UC_FLAG_SEQ_ALIAS flag so that the pinctrl instances are assigned
a sequence number.

Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/pinctrl/pinctrl-uclass.c

index ccc5d309d6de25bbf5173595b0d1b78941b3f681..fd04b2645417f9eb5d5a649cc4ab90155d430525 100644 (file)
@@ -287,5 +287,6 @@ static int pinctrl_post_bind(struct udevice *dev)
 UCLASS_DRIVER(pinctrl) = {
        .id = UCLASS_PINCTRL,
        .post_bind = pinctrl_post_bind,
+       .flags = DM_UC_FLAG_SEQ_ALIAS,
        .name = "pinctrl",
 };