board.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2015-2023, Renesas Electronics Corporation. All rights
  3. * reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. #ifndef BOARD_H
  8. #define BOARD_H
  9. #define BOARD_SALVATOR_X (0x00)
  10. #define BOARD_KRIEK (0x01)
  11. #define BOARD_STARTER_KIT (0x02)
  12. #define BOARD_EAGLE (0x03)
  13. #define BOARD_SALVATOR_XS (0x04)
  14. #define BOARD_DRAAK (0x07)
  15. #define BOARD_EBISU (0x08)
  16. #define BOARD_STARTER_KIT_PRE (0x0B)
  17. #define BOARD_EBISU_4D (0x0D)
  18. #define BOARD_UNKNOWN (BOARD_EBISU_4D + 1U)
  19. #define BOARD_REV_UNKNOWN (0xFF)
  20. extern const char *g_board_tbl[];
  21. /************************************************************************
  22. * Revisions are expressed in 8 bits.
  23. * The upper 4 bits are major version.
  24. * The lower 4 bits are minor version.
  25. ************************************************************************/
  26. #define GET_BOARD_MAJOR(a) ((uint32_t)(a) >> 0x4)
  27. #define GET_BOARD_MINOR(a) ((uint32_t)(a) & 0xF)
  28. #define GET_BOARD_NAME(a) (g_board_tbl[(a)])
  29. int32_t rcar_get_board_type(uint32_t *type, uint32_t *rev);
  30. #endif /* BOARD_H */