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>
This commit is contained in:
@@ -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)
|
||||
};
|
||||
|
Reference in New Issue
Block a user