board: sifive: use ccache driver instead of helper function
Invokes the common cache_init function to initialize ccache. Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Rick Chen <rick@andestech.com>
This commit is contained in:
committed by
Leo Yu-Chi Liang
parent
213ed175b0
commit
835210a125
@@ -6,6 +6,7 @@
|
||||
* Anup Patel <anup.patel@wdc.com>
|
||||
*/
|
||||
|
||||
#include <cpu_func.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
@@ -15,7 +16,6 @@
|
||||
#include <linux/delay.h>
|
||||
#include <misc.h>
|
||||
#include <spl.h>
|
||||
#include <asm/arch/cache.h>
|
||||
#include <asm/sections.h>
|
||||
|
||||
/*
|
||||
@@ -126,14 +126,8 @@ void *board_fdt_blob_setup(void)
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
/* enable all cache ways */
|
||||
ret = cache_enable_ways();
|
||||
if (ret) {
|
||||
debug("%s: could not enable cache ways\n", __func__);
|
||||
return ret;
|
||||
}
|
||||
enable_caches();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <dm.h>
|
||||
#include <asm/arch/cache.h>
|
||||
#include <asm/sections.h>
|
||||
|
||||
void *board_fdt_blob_setup(void)
|
||||
@@ -23,13 +23,8 @@ void *board_fdt_blob_setup(void)
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
/* enable all cache ways */
|
||||
ret = cache_enable_ways();
|
||||
if (ret) {
|
||||
debug("%s: could not enable cache ways\n", __func__);
|
||||
return ret;
|
||||
}
|
||||
enable_caches();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user