smbios.c 538 B

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