unmatched.c 510 B

123456789101112131415161718192021222324252627282930
  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(void)
  13. {
  14. if (IS_ENABLED(CONFIG_OF_SEPARATE)) {
  15. if (gd->arch.firmware_fdt_addr)
  16. return (ulong *)gd->arch.firmware_fdt_addr;
  17. else
  18. return (ulong *)&_end;
  19. }
  20. }
  21. int board_init(void)
  22. {
  23. /* enable all cache ways */
  24. enable_caches();
  25. return 0;
  26. }