Patrick Delaunay | 0d44752 | 2019-04-10 14:09:28 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ |
| 2 | /* |
| 3 | * Copyright (C) 2019, STMicroelectronics - All Rights Reserved |
| 4 | */ |
| 5 | |
| 6 | #ifndef _RAM_STM32MP1_TESTS_H_ |
| 7 | #define _RAM_STM32MP1_TESTS_H_ |
| 8 | |
| 9 | #include "stm32mp1_ddr_regs.h" |
| 10 | |
| 11 | enum test_result { |
| 12 | TEST_PASSED, |
| 13 | TEST_FAILED, |
| 14 | TEST_ERROR |
| 15 | }; |
| 16 | |
| 17 | struct test_desc { |
| 18 | enum test_result (*fct)(struct stm32mp1_ddrctl *ctl, |
| 19 | struct stm32mp1_ddrphy *phy, |
| 20 | char *string, |
| 21 | int argc, char *argv[]); |
| 22 | const char *name; |
| 23 | const char *usage; |
| 24 | const char *help; |
| 25 | u8 max_args; |
| 26 | }; |
| 27 | |
| 28 | extern const struct test_desc test[]; |
| 29 | extern const int test_nb; |
| 30 | |
Patrick Delaunay | 187c41d | 2019-04-10 14:09:29 +0200 | [diff] [blame^] | 31 | extern const struct test_desc tuning[]; |
| 32 | extern const int tuning_nb; |
| 33 | |
Patrick Delaunay | 0d44752 | 2019-04-10 14:09:28 +0200 | [diff] [blame] | 34 | #endif |