summaryrefslogtreecommitdiff
path: root/drivers/ram/stm32mp1/stm32mp1_tests.h
blob: 55f5d6d93bc863e160f986578459b7a46d941730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
/*
 * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
 */

#ifndef _RAM_STM32MP1_TESTS_H_
#define _RAM_STM32MP1_TESTS_H_

#include "stm32mp1_ddr_regs.h"

enum test_result {
	TEST_PASSED,
	TEST_FAILED,
	TEST_ERROR
};

struct test_desc {
	enum test_result (*fct)(struct stm32mp1_ddrctl *ctl,
				struct stm32mp1_ddrphy *phy,
				char *string,
				int argc, char *argv[]);
	const char *name;
	const char *usage;
	const char *help;
	u8 max_args;
};

extern const struct test_desc test[];
extern const int test_nb;

extern const struct test_desc tuning[];
extern const int tuning_nb;

#endif