summaryrefslogtreecommitdiffstats
path: root/drivers/timer
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2015-12-24 16:08:06 +0530
committerSimon Glass <sjg@chromium.org>2016-01-20 19:06:21 -0700
commita5d801130cc9f4fc1cf2b710ac7560759b2e1c95 (patch)
tree4bdde7b5c896597f38fa79068d582ae4ae0db1b1 /drivers/timer
parentc8336975381d481829e3e6a81c38cd118826ca03 (diff)
downloadblackbird-obmc-uboot-a5d801130cc9f4fc1cf2b710ac7560759b2e1c95.tar.gz
blackbird-obmc-uboot-a5d801130cc9f4fc1cf2b710ac7560759b2e1c95.zip
dm: timer: uclass: Add flag to control sequence numbering
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>
Diffstat (limited to 'drivers/timer')
-rw-r--r--drivers/timer/timer-uclass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c
index 04801784ba..b1f4868416 100644
--- a/drivers/timer/timer-uclass.c
+++ b/drivers/timer/timer-uclass.c
@@ -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),
};
OpenPOWER on IntegriCloud