]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: ae350: use the v5l2 driver to configure the cache
authorRick Chen <rick@andestech.com>
Wed, 28 Aug 2019 10:46:07 +0000 (18:46 +0800)
committerAndes <uboot@andestech.com>
Tue, 3 Sep 2019 01:31:03 +0000 (09:31 +0800)
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>
board/AndesTech/ax25-ae350/ax25-ae350.c

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