diff options
author | Stephen Warren <swarren@nvidia.com> | 2016-06-17 15:43:59 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-06-19 23:05:55 (GMT) |
commit | 4581b717b1bf0fb04e7d9fcaf3d4c23d357154ac (patch) | |
tree | d59cea67293deab951e1322d4ab8add35ed555de /arch/sandbox/include/asm | |
parent | 89c1e2da78f82a09685006291ce8bb44f635fa25 (diff) | |
download | u-boot-fsl-qoriq-4581b717b1bf0fb04e7d9fcaf3d4c23d357154ac.tar.xz |
reset: implement a reset test
This adds a sandbox reset implementation (provider), a test client
device, instantiates them both from Sandbox's DT, and adds a DM test
that excercises everything.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm')
-rw-r--r-- | arch/sandbox/include/asm/reset.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/reset.h b/arch/sandbox/include/asm/reset.h new file mode 100644 index 0000000..7146aa5 --- /dev/null +++ b/arch/sandbox/include/asm/reset.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2016, NVIDIA CORPORATION. + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#ifndef __SANDBOX_RESET_H +#define __SANDBOX_RESET_H + +#include <common.h> + +struct udevice; + +int sandbox_reset_query(struct udevice *dev, unsigned long id); + +int sandbox_reset_test_get(struct udevice *dev); +int sandbox_reset_test_assert(struct udevice *dev); +int sandbox_reset_test_deassert(struct udevice *dev); +int sandbox_reset_test_free(struct udevice *dev); + +#endif |