summaryrefslogtreecommitdiff
path: root/include/dm/test.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-05 12:25:22 -0700
committerSimon Glass <sjg@chromium.org>2015-04-16 19:27:42 -0600
commit02c07b3741f1b825934b1a6eb8f23530532dc426 (patch)
treedb9511b8172e15dc4f0ad4a44a0cc05474851cc0 /include/dm/test.h
parent02eeb1bbb1749903b157140de5dedebf7e44edcf (diff)
downloadu-boot-02c07b3741f1b825934b1a6eb8f23530532dc426.tar.gz
u-boot-02c07b3741f1b825934b1a6eb8f23530532dc426.tar.bz2
u-boot-02c07b3741f1b825934b1a6eb8f23530532dc426.zip
dm: core: Add a uclass pre_probe() method for devices
Some uclasses want to set up a device before it is probed. Add a method for this. An example is with PCI, where a PCI uclass wants to set up its private data for later use. This allows the device's uclass() method to make calls whcih use that data (for example, read PCI memory regions from device tree, set up bus numbers). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/test.h')
-rw-r--r--include/dm/test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/test.h b/include/dm/test.h
index 707c69e07f..b310e5f3ff 100644
--- a/include/dm/test.h
+++ b/include/dm/test.h
@@ -44,6 +44,7 @@ enum {
/* For uclass */
DM_TEST_OP_POST_BIND,
DM_TEST_OP_PRE_UNBIND,
+ DM_TEST_OP_PRE_PROBE,
DM_TEST_OP_POST_PROBE,
DM_TEST_OP_PRE_REMOVE,
DM_TEST_OP_INIT,