sandbox_test.c 430 B

123456789101112131415161718192021
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Sandbox driver for testing GPIOs with of-platdata
  4. *
  5. * Copyright 2021 Google LLC
  6. */
  7. #include <common.h>
  8. #include <dm.h>
  9. #include <asm-generic/gpio.h>
  10. static const struct udevice_id sandbox_gpio_test_ids[] = {
  11. { .compatible = "sandbox,gpio-test" },
  12. { }
  13. };
  14. U_BOOT_DRIVER(sandbox_gpio_test) = {
  15. .name = "sandbox_gpio_test",
  16. .id = UCLASS_MISC,
  17. .of_match = sandbox_gpio_test_ids,
  18. };