blob: 6d605595889b053af6cf4952c9b420564794f6c0 [file] [log] [blame]
Green Wan70415e12021-05-27 06:52:13 -07001// 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 <dm.h>
11#include <asm/arch/cache.h>
12
13int board_init(void)
14{
15 int ret;
16
17 /* enable all cache ways */
18 ret = cache_enable_ways();
19 if (ret) {
20 debug("%s: could not enable cache ways\n", __func__);
21 return ret;
22 }
23 return 0;
24}