rockchip: rk3368: Migrate to use common board file
authorKever Yang <kever.yang@rock-chips.com>
Mon, 22 Jul 2019 12:02:17 +0000 (20:02 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 29 Jul 2019 02:27:48 +0000 (10:27 +0800)
Use common board file for board_init() and board_late_init(),
for Rockchip SoCs have very similar process.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/Kconfig
board/geekbuying/geekbox/geekbox.c
board/rockchip/evb_px5/evb-px5.c
board/rockchip/sheep_rk3368/sheep_rk3368.c
board/theobroma-systems/lion_rk3368/lion_rk3368.c

index 2b8bb8aa25122a7bc65cad4cb1fd6aa29171b501..90916a382e6d9d7942743463bd23f81181041f63 100644 (file)
@@ -131,6 +131,7 @@ config ROCKCHIP_RK3368
        select SUPPORT_TPL
        select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
        select TPL_NEEDS_SEPARATE_STACK if TPL
+       imply ROCKCHIP_COMMON_BOARD
        imply SPL_ROCKCHIP_COMMON_BOARD
        imply SPL_SEPARATE_BSS
        imply SPL_SERIAL_SUPPORT
index 10b04a1ce5d876ec0778bee28073700b2a2d391a..b0f9a5f9b70c6297052ee1e07e67b5333e02706b 100644 (file)
@@ -4,8 +4,3 @@
  */
 
 #include <common.h>
-
-int board_init(void)
-{
-       return 0;
-}
index 53e753fc178b2aa8acf8aa5cc7faea2961fc1bb6..b81f9708834d90d40d4bf69a04f449158d880ba6 100644 (file)
@@ -2,9 +2,3 @@
 /*
  * Copyright (c) 2017 Andy Yan
  */
-#include <common.h>
-
-int board_init(void)
-{
-       return 0;
-}
index 9bb93c7d16696f8d67c453ee978963c733c7d273..b81f9708834d90d40d4bf69a04f449158d880ba6 100644 (file)
@@ -2,18 +2,3 @@
 /*
  * Copyright (c) 2017 Andy Yan
  */
-#include <common.h>
-#include <asm/io.h>
-#include <asm/arch-rockchip/clock.h>
-#include <asm/arch-rockchip/grf_rk3368.h>
-#include <syscon.h>
-
-int mach_cpu_init(void)
-{
-       return 0;
-}
-
-int board_init(void)
-{
-       return 0;
-}
index 6cd5a5f18efd78b78ca93a32be41962f780dd250..1b0d504631ec2431bc060e5e73b2bfdcb23c41cf 100644 (file)
@@ -2,21 +2,3 @@
 /*
  * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
  */
-#include <common.h>
-#include <dm.h>
-#include <ram.h>
-#include <asm/io.h>
-#include <asm/arch-rockchip/clock.h>
-#include <asm/arch-rockchip/grf_rk3368.h>
-#include <asm/arch-rockchip/timer.h>
-#include <syscon.h>
-
-int mach_cpu_init(void)
-{
-       return 0;
-}
-
-int board_init(void)
-{
-       return 0;
-}