riscv: ae350: use the v5l2 driver to configure the cache

Find the UCLASS_CACHE driver to configure the cache controller's
settings.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: KC Lin <kclin@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Rick Chen 2019-08-28 18:46:07 +08:00 committed by Andes
parent 4fa4267d82
commit edf0acb3b4

View File

@ -11,6 +11,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <faraday/ftsmc020.h> #include <faraday/ftsmc020.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <dm.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
@ -93,10 +94,18 @@ int smc_init(void)
return 0; return 0;
} }
static void v5l2_init(void)
{
struct udevice *dev;
uclass_get_device(UCLASS_CACHE, 0, &dev);
}
#ifdef CONFIG_BOARD_EARLY_INIT_F #ifdef CONFIG_BOARD_EARLY_INIT_F
int board_early_init_f(void) int board_early_init_f(void)
{ {
smc_init(); smc_init();
v5l2_init();
return 0; return 0;
} }