firmware.c 506 B

1234567891011121314151617181920212223
  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/test.h>
  11. #include <test/ut.h>
  12. /* Base test of firmware probe */
  13. static int dm_test_firmware_probe(struct unit_test_state *uts)
  14. {
  15. struct udevice *dev;
  16. ut_assertok(uclass_get_device_by_name(UCLASS_FIRMWARE,
  17. "sandbox-firmware", &dev));
  18. return 0;
  19. }
  20. DM_TEST(dm_test_firmware_probe, UT_TESTF_SCAN_FDT);