aboutsummaryrefslogtreecommitdiff
path: root/drivers/timer
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-23 08:11:30 -0700
committerSimon Glass <sjg@chromium.org>2021-01-05 12:24:41 -0700
commit8b842be10c2d40437b1f24a8dce8718c33045376 (patch)
treed92e428e1be0982f160823d685b9feb218cece85 /drivers/timer
parent5e89be1efd4fb4633875f99b1dbe095ff4787c98 (diff)
downloadu-boot-8b842be10c2d40437b1f24a8dce8718c33045376.zip
u-boot-8b842be10c2d40437b1f24a8dce8718c33045376.tar.gz
u-boot-8b842be10c2d40437b1f24a8dce8718c33045376.tar.bz2
x86: apl: Reduce size for TPL
Update various drivers to use of_match_ptr() and to avoid including debug strings in TPL. Omit the WiFi driver entirely, since it is not used in TPL. This reduces the TPL binary size by about 608 bytes. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/timer')
-rw-r--r--drivers/timer/tsc_timer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c
index e367770..706d52b 100644
--- a/drivers/timer/tsc_timer.c
+++ b/drivers/timer/tsc_timer.c
@@ -477,15 +477,17 @@ static const struct timer_ops tsc_timer_ops = {
.get_count = tsc_timer_get_count,
};
+#if !CONFIG_IS_ENABLED(OF_PLATDATA)
static const struct udevice_id tsc_timer_ids[] = {
{ .compatible = "x86,tsc-timer", },
{ }
};
+#endif
U_BOOT_DRIVER(x86_tsc_timer) = {
.name = "x86_tsc_timer",
.id = UCLASS_TIMER,
- .of_match = tsc_timer_ids,
+ .of_match = of_match_ptr(tsc_timer_ids),
.probe = tsc_timer_probe,
.ops = &tsc_timer_ops,
};