diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-23 18:11:30 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 22:24:41 +0300 |
commit | 8b842be10c2d40437b1f24a8dce8718c33045376 (patch) | |
tree | d92e428e1be0982f160823d685b9feb218cece85 /board/google | |
parent | 5e89be1efd4fb4633875f99b1dbe095ff4787c98 (diff) | |
download | u-boot-8b842be10c2d40437b1f24a8dce8718c33045376.tar.xz |
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/google')
-rw-r--r-- | board/google/chromebook_coral/coral.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/google/chromebook_coral/coral.c b/board/google/chromebook_coral/coral.c index b8b923c139..34b2c2ac5d 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) }; |