stm32mp1_tests.h 587 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
  2. /*
  3. * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
  4. */
  5. #ifndef _RAM_STM32MP1_TESTS_H_
  6. #define _RAM_STM32MP1_TESTS_H_
  7. #include "stm32mp1_ddr_regs.h"
  8. enum test_result {
  9. TEST_PASSED,
  10. TEST_FAILED,
  11. TEST_ERROR
  12. };
  13. struct test_desc {
  14. enum test_result (*fct)(struct stm32mp1_ddrctl *ctl,
  15. struct stm32mp1_ddrphy *phy,
  16. char *string,
  17. int argc, char *argv[]);
  18. const char *name;
  19. const char *usage;
  20. const char *help;
  21. u8 max_args;
  22. };
  23. extern const struct test_desc test[];
  24. extern const int test_nb;
  25. #endif