unmatched.c 528 B

12345678910111213141516171819202122232425262728293031
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2020-2021, SiFive Inc
  4. *
  5. * Authors:
  6. * Pragnesh Patel <pragnesh.patel@sifive.com>
  7. */
  8. #include <common.h>
  9. #include <cpu_func.h>
  10. #include <dm.h>
  11. #include <asm/sections.h>
  12. void *board_fdt_blob_setup(int *err)
  13. {
  14. *err = 0;
  15. if (IS_ENABLED(CONFIG_OF_SEPARATE)) {
  16. if (gd->arch.firmware_fdt_addr)
  17. return (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr;
  18. }
  19. return (ulong *)&_end;
  20. }
  21. int board_init(void)
  22. {
  23. /* enable all cache ways */
  24. enable_caches();
  25. return 0;
  26. }