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 9#include <common.h> 10#include <cpu_func.h> 11#include <dm.h> 12#include <asm/sections.h> 13 14void *board_fdt_blob_setup(int *err) 15{ 16 *err = 0; 17 if (IS_ENABLED(CONFIG_OF_SEPARATE) || IS_ENABLED(CONFIG_OF_BOARD)) { 18 if (gd->arch.firmware_fdt_addr) 19 return (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr; 20 } 21 22 return (ulong *)&_end; 23} 24 25int board_init(void) 26{ 27 /* enable all cache ways */ 28 enable_caches(); 29 30 return 0; 31} 32