]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rv1108: use correct API for board callback
authorKever Yang <kever.yang@rock-chips.com>
Mon, 13 Apr 2020 01:38:30 +0000 (09:38 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 16 Sep 2020 08:31:17 +0000 (16:31 +0800)
Use board_early_init_f() instead of mach_cpu_init() for board, the
board_early_init_f() is used for board init and after dm_initf, while
the mach_cpu_init() is used for CPU/SOC and before dm_initf()(not able
to use syscon API).

Fixes: 9cec336708 ("rockchip: evb-rv1108: Use syscon API to get grf base")
Fixes: 4aa33690fc {"rockchip: elgin-rv1108: Use syscon API to get grf base")
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
board/elgin/elgin_rv1108/elgin_rv1108.c
board/rockchip/evb_rv1108/evb_rv1108.c

index 5d8f62244b0384711ab4f52ff938011aa7f290c3..245e5abcaebd6ba0d5beab801e1d501bd1b8a9f3 100644 (file)
@@ -15,7 +15,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int mach_cpu_init(void)
+int board_early_init_f(void)
 {
        struct rv1108_grf *grf;
        enum {
index c57913828d72cb9405a38d1a0d609ac10e66d98b..fc31c4931169799dda72f43af05eaa4d68aad2d6 100644 (file)
@@ -14,7 +14,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int mach_cpu_init(void)
+int board_early_init_f(void)
 {
        struct rv1108_grf *grf;
        enum {