Simon Glass | 052a03e | 2020-11-05 06:32:11 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2020 Google LLC |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
| 5 | */ |
| 6 | |
Tom Rini | abb9a04 | 2024-05-18 20:20:43 -0600 | [diff] [blame] | 7 | #include <common.h> |
Simon Glass | 052a03e | 2020-11-05 06:32:11 -0700 | [diff] [blame] | 8 | #include <dm.h> |
| 9 | #include <sysinfo.h> |
| 10 | |
| 11 | static const struct udevice_id sysinfo_smbios_ids[] = { |
| 12 | { .compatible = "u-boot,sysinfo-smbios" }, |
| 13 | { /* sentinel */ } |
| 14 | }; |
| 15 | |
| 16 | static const struct sysinfo_ops sysinfo_smbios_ops = { |
| 17 | }; |
| 18 | |
| 19 | U_BOOT_DRIVER(sysinfo_smbios) = { |
| 20 | .name = "sysinfo_smbios", |
| 21 | .id = UCLASS_SYSINFO, |
| 22 | .of_match = sysinfo_smbios_ids, |
| 23 | .ops = &sysinfo_smbios_ops, |
| 24 | }; |