]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: rmobile: Factor out common R-Car V3M/V3H board code
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 31 May 2023 18:24:34 +0000 (20:24 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 8 Jun 2023 20:26:51 +0000 (22:26 +0200)
Pull common board initialization code from V3M Eagle board
into rcar-common/v3-common.c so it can be re-used by other
V3M/V3H boards.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
board/renesas/eagle/Makefile
board/renesas/rcar-common/v3-common.c [moved from board/renesas/eagle/eagle.c with 57% similarity]

index 062c46ba24fa2bcf958359f6c7430f1ed575f144..9fb6a7c0f0ab7f166d4ff54348ac21b4ce12aea8 100644 (file)
@@ -9,5 +9,5 @@
 ifdef CONFIG_SPL_BUILD
 obj-y  := ../rcar-common/gen3-spl.o
 else
-obj-y  := eagle.o ../rcar-common/common.o
+obj-y  := ../rcar-common/v3-common.o ../rcar-common/common.o
 endif
similarity index 57%
rename from board/renesas/eagle/eagle.c
rename to board/renesas/rcar-common/v3-common.c
index e9e8059ef6ddfd007f1f033f18c7d6fb7b2b2ed2..be8be0cb16da1f4b0f0864c4d9193cb6a8563d1b 100644 (file)
@@ -1,35 +1,11 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * board/renesas/eagle/eagle.c
- *     This file is Eagle board support.
- *
- * Copyright (C) 2017 Marek Vasut <marek.vasut+renesas@gmail.com>
+ * Copyright (C) 2017-2023 Marek Vasut <marek.vasut+renesas@mailbox.org>
  */
 
 #include <common.h>
 #include <clock_legacy.h>
-#include <cpu_func.h>
-#include <hang.h>
-#include <init.h>
-#include <malloc.h>
-#include <netdev.h>
-#include <dm.h>
-#include <asm/global_data.h>
-#include <dm/platform_data/serial_sh.h>
-#include <asm/processor.h>
-#include <asm/mach-types.h>
 #include <asm/io.h>
-#include <linux/errno.h>
-#include <asm/arch/sys_proto.h>
-#include <asm/gpio.h>
-#include <asm/arch/gpio.h>
-#include <asm/arch/rmobile.h>
-#include <asm/arch/rcar-mstp.h>
-#include <asm/arch/sh_sdhi.h>
-#include <i2c.h>
-#include <mmc.h>
-
-DECLARE_GLOBAL_DATA_PTR;
 
 #define CPGWPR  0xE6150900
 #define CPGWPCR        0xE6150904