aboutsummaryrefslogtreecommitdiff
path: root/board
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 /board
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 'board')
-rw-r--r--board/google/chromebook_coral/coral.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/google/chromebook_coral/coral.c b/board/google/chromebook_coral/coral.c
index b8b923c..34b2c2a 100644
--- a/board/google/chromebook_coral/coral.c
+++ b/board/google/chromebook_coral/coral.c
@@ -143,14 +143,16 @@ struct acpi_ops coral_acpi_ops = {
.inject_dsdt = chromeos_acpi_gpio_generate,
};
+#if !CONFIG_IS_ENABLED(OF_PLATDATA)
static const struct udevice_id coral_ids[] = {
{ .compatible = "google,coral" },
{ }
};
+#endif
U_BOOT_DRIVER(coral_drv) = {
.name = "coral",
.id = UCLASS_SYSINFO,
- .of_match = coral_ids,
+ .of_match = of_match_ptr(coral_ids),
ACPI_OPS_PTR(&coral_acpi_ops)
};