mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
This patch adds the bulk reset API tests for the sandbox test suite. Unlike the main test, it also check the "other" reset signal using the bulk API and checks if the resets are correctly asserted/deasserted. To allow the bulk API to work, and avoid changing the DT, the number of resets of the sandbox reset controller has been bumped to 101 for the "other" reset line to be valid. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Simon Glass <sjg@chromium.org>
25 lines
687 B
C
25 lines
687 B
C
/*
|
|
* 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_get_bulk(struct udevice *dev);
|
|
int sandbox_reset_test_assert(struct udevice *dev);
|
|
int sandbox_reset_test_assert_bulk(struct udevice *dev);
|
|
int sandbox_reset_test_deassert(struct udevice *dev);
|
|
int sandbox_reset_test_deassert_bulk(struct udevice *dev);
|
|
int sandbox_reset_test_free(struct udevice *dev);
|
|
int sandbox_reset_test_release_bulk(struct udevice *dev);
|
|
|
|
#endif
|