aboutsummaryrefslogtreecommitdiff
path: root/drivers/timer
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-02-22 01:39:18 +0100
committerSimon Glass <sjg@chromium.org>2023-03-01 11:22:40 -0700
commitd22c69524966b6d65d98476acb7fda827207e10d (patch)
treead98deb00aa980ed1bf39eb1c98835f077dc90d6 /drivers/timer
parenteab09fbe6401e63bf53274042f367303541382c1 (diff)
downloadu-boot-d22c69524966b6d65d98476acb7fda827207e10d.zip
u-boot-d22c69524966b6d65d98476acb7fda827207e10d.tar.gz
u-boot-d22c69524966b6d65d98476acb7fda827207e10d.tar.bz2
sandbox: fix building with CONFIG_SPL_TIMER=y
Building sandbox_defconfig with CONFIG_SPL_TIMER=y results in an error include/dm/platdata.h:63:33: error: static assertion failed: "Cannot use U_BOOT_DRVINFO with of-platdata. Please use devicetree instead" Add a missing condition in the sandbox driver. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/timer')
-rw-r--r--drivers/timer/sandbox_timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c
index c846bfb..1da7e0c 100644
--- a/drivers/timer/sandbox_timer.c
+++ b/drivers/timer/sandbox_timer.c
@@ -66,6 +66,8 @@ U_BOOT_DRIVER(sandbox_timer) = {
};
/* This is here in case we don't have a device tree */
+#if !CONFIG_IS_ENABLED(OF_PLATDATA)
U_BOOT_DRVINFO(sandbox_timer_non_fdt) = {
.name = "sandbox_timer",
};
+#endif