dm: timer: uclass: Add flag to control sequence numbering
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 24 Dec 2015 10:38:06 +0000 (16:08 +0530)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:21 +0000 (19:06 -0700)
Like SPI and I2C, timer devices also have multiple chip
instances. This patch adds the flag 'DM_UC_FLAG_SEQ_ALIAS' in
timer_uclass driver to control device sequence numbering.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/timer/timer-uclass.c

index 0480178..b1f4868 100644 (file)
@@ -104,5 +104,6 @@ UCLASS_DRIVER(timer) = {
        .id             = UCLASS_TIMER,
        .name           = "timer",
        .pre_probe      = timer_pre_probe,
+       .flags          = DM_UC_FLAG_SEQ_ALIAS,
        .per_device_auto_alloc_size = sizeof(struct timer_dev_priv),
 };