summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-04 21:17:22 -0700
committerBin Meng <bmeng.cn@gmail.com>2021-02-06 19:20:34 +0800
commit2764cf5e974318b2b17448d04a50aa8b226c9877 (patch)
tree2729fe7884314b75069ba1a963e8b65c930804d5 /board
parent2b8e5c8dfa01e60e616ed75cf333ac4cda8977ef (diff)
downloadu-boot-2764cf5e974318b2b17448d04a50aa8b226c9877.tar.gz
u-boot-2764cf5e974318b2b17448d04a50aa8b226c9877.tar.xz
u-boot-2764cf5e974318b2b17448d04a50aa8b226c9877.zip
x86: coral: Add sysinfo ops
These ops are missing at present which is not permitted. Add an empty operation struct. Note: If the uclass requires operations then the drivers should provide them. Otherwise, checking for missing operations must be done in every uclass operation, so it adds to code size. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'board')
-rw-r--r--board/google/chromebook_coral/coral.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/google/chromebook_coral/coral.c b/board/google/chromebook_coral/coral.c
index 34b2c2ac5d..f9fb3f163f 100644
--- a/board/google/chromebook_coral/coral.c
+++ b/board/google/chromebook_coral/coral.c
@@ -8,6 +8,7 @@
#include <command.h>
#include <dm.h>
#include <log.h>
+#include <sysinfo.h>
#include <acpi/acpigen.h>
#include <asm-generic/gpio.h>
#include <asm/acpi_nhlt.h>
@@ -143,6 +144,9 @@ struct acpi_ops coral_acpi_ops = {
.inject_dsdt = chromeos_acpi_gpio_generate,
};
+struct sysinfo_ops coral_sysinfo_ops = {
+};
+
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
static const struct udevice_id coral_ids[] = {
{ .compatible = "google,coral" },
@@ -154,5 +158,6 @@ U_BOOT_DRIVER(coral_drv) = {
.name = "coral",
.id = UCLASS_SYSINFO,
.of_match = of_match_ptr(coral_ids),
+ .ops = &coral_sysinfo_ops,
ACPI_OPS_PTR(&coral_acpi_ops)
};