syscon_sandbox.c 538 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2015 Google, Inc
  4. * Written by Simon Glass <sjg@chromium.org>
  5. */
  6. #include <common.h>
  7. #include <dm.h>
  8. #include <errno.h>
  9. #include <syscon.h>
  10. #include <asm/test.h>
  11. #include <dm/lists.h>
  12. static const struct udevice_id sandbox_syscon_ids[] = {
  13. { .compatible = "sandbox,syscon0", .data = SYSCON0 },
  14. { .compatible = "sandbox,syscon1", .data = SYSCON1 },
  15. { }
  16. };
  17. U_BOOT_DRIVER(sandbox_syscon) = {
  18. .name = "sandbox_syscon",
  19. .id = UCLASS_SYSCON,
  20. .of_match = sandbox_syscon_ids,
  21. };