firmware.c 483 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2018 Xilinx, Inc.
  4. */
  5. #include <common.h>
  6. #include <dm.h>
  7. #include <syscon.h>
  8. #include <asm/test.h>
  9. #include <dm/test.h>
  10. #include <test/ut.h>
  11. /* Base test of firmware probe */
  12. static int dm_test_firmware_probe(struct unit_test_state *uts)
  13. {
  14. struct udevice *dev;
  15. ut_assertok(uclass_get_device_by_name(UCLASS_FIRMWARE,
  16. "sandbox-firmware", &dev));
  17. return 0;
  18. }
  19. DM_TEST(dm_test_firmware_probe, DM_TESTF_SCAN_FDT);