beacon-rzg2m.c 741 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright 2020 Compass Electronics Group, LLC
  4. */
  5. #include <common.h>
  6. #include <asm/global_data.h>
  7. #include <asm/io.h>
  8. DECLARE_GLOBAL_DATA_PTR;
  9. int board_init(void)
  10. {
  11. /* address of boot parameters */
  12. gd->bd->bi_boot_params = CONFIG_TEXT_BASE + 0x50000;
  13. return 0;
  14. }
  15. #if IS_ENABLED(CONFIG_MULTI_DTB_FIT)
  16. int board_fit_config_name_match(const char *name)
  17. {
  18. if (!strcmp(rzg_get_cpu_name(), "R8A774A1") && !strcmp(name, "r8a774a1-beacon-rzg2m-kit"))
  19. return 0;
  20. if (!strcmp(rzg_get_cpu_name(), "R8A774B1") && !strcmp(name, "r8a774b1-beacon-rzg2n-kit"))
  21. return 0;
  22. if (!strcmp(rzg_get_cpu_name(), "R8A774E1") && !strcmp(name, "r8a774e1-beacon-rzg2h-kit"))
  23. return 0;
  24. return -1;
  25. }
  26. #endif