ek874.c 568 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * board/silinux/ek874/ek874.c
  4. * This file is ek874 board support.
  5. *
  6. * Copyright (C) 2021 Renesas Electronics Corporation
  7. */
  8. #include <common.h>
  9. #include <asm/global_data.h>
  10. #include <asm/io.h>
  11. #define RST_BASE 0xE6160000
  12. #define RST_CA53RESCNT (RST_BASE + 0x44)
  13. #define RST_CA53_CODE 0x5A5A000F
  14. DECLARE_GLOBAL_DATA_PTR;
  15. int board_init(void)
  16. {
  17. /* address of boot parameters */
  18. gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
  19. return 0;
  20. }
  21. void reset_cpu(void)
  22. {
  23. writel(RST_CA53_CODE, RST_CA53RESCNT);
  24. }