diff options
| author | Tom Rini <[email protected]> | 2025-11-04 07:50:35 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-04 07:50:35 -0600 |
| commit | b4c3869292ea88a9753c65691e02a21e2264b181 (patch) | |
| tree | 055f05dba5a479080dd7154a53bcdfc8f75cfc9d /drivers/timer | |
| parent | c9fdb9ac4d5234953ffaaef0cfc9d4ccb03f0ce5 (diff) | |
| parent | 200549b09614e3cb17214e652aeb191902b8b303 (diff) | |
Merge branch 'staging' of https://source.denx.de/u-boot/custodians/u-boot-tegra
Diffstat (limited to 'drivers/timer')
| -rw-r--r-- | drivers/timer/tegra-timer.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/timer/tegra-timer.c b/drivers/timer/tegra-timer.c index 3545424889d..778b65b6062 100644 --- a/drivers/timer/tegra-timer.c +++ b/drivers/timer/tegra-timer.c @@ -4,6 +4,7 @@ */ #include <dm.h> +#include <dm/lists.h> #include <errno.h> #include <timer.h> @@ -106,6 +107,14 @@ static int tegra_timer_probe(struct udevice *dev) return 0; } +static int tegra_timer_bind(struct udevice *dev) +{ + if (CONFIG_IS_ENABLED(WDT_TEGRA)) + return device_bind_driver_to_node(dev, "tegra_wdt", "tegra-wdt", + dev_ofnode(dev), NULL); + return 0; +} + static const struct timer_ops tegra_timer_ops = { .get_count = tegra_timer_get_count, }; @@ -123,6 +132,7 @@ U_BOOT_DRIVER(tegra_timer) = { .name = "tegra_timer", .id = UCLASS_TIMER, .of_match = tegra_timer_ids, + .bind = tegra_timer_bind, .probe = tegra_timer_probe, .ops = &tegra_timer_ops, .flags = DM_FLAG_PRE_RELOC, |
