Green Wan | 2e5da52 | 2021-05-27 06:52:13 -0700 | [diff] [blame] | 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 <dm.h> | ||||
11 | #include <asm/arch/cache.h> | ||||
12 | |||||
13 | int 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 | } |