board: atmel: sama5d2_icp: standby disable on CAN transceivers in SPL
[oweals/u-boot.git] / include / dm / test.h
index a4bc5c8404aef87a6ec04a05f319d76d6f7c1eed..07385cd531fa2c9af660010ad4a439aab0ec75e0 100644 (file)
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright (c) 2013 Google, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __DM_TEST_H
@@ -70,6 +69,7 @@ struct dm_test_priv {
        int op_count[DM_TEST_OP_COUNT];
        int uclass_flag;
        int uclass_total;
+       int uclass_postp;
 };
 
 /**
@@ -150,11 +150,23 @@ enum {
        DM_TESTF_SCAN_PDATA     = 1 << 0,       /* test needs platform data */
        DM_TESTF_PROBE_TEST     = 1 << 1,       /* probe test uclass */
        DM_TESTF_SCAN_FDT       = 1 << 2,       /* scan device tree */
+       DM_TESTF_FLAT_TREE      = 1 << 3,       /* test needs flat DT */
+       DM_TESTF_LIVE_TREE      = 1 << 4,       /* needs live device tree */
 };
 
 /* Declare a new driver model test */
 #define DM_TEST(_name, _flags) UNIT_TEST(_name, _flags, dm_test)
 
+/* This platform data is needed in tests, so declare it here */
+struct sandbox_sdl_plat {
+       int xres;
+       int yres;
+       int bpix;
+       int rot;
+       const char *vidconsole_drv_name;
+       int font_size;
+};
+
 /* Declare ping methods for the drivers */
 int test_ping(struct udevice *dev, int pingval, int *pingret);
 int testfdt_ping(struct udevice *dev, int pingval, int *pingret);