From b0866db2dcecad88ffe1d0e8195d4c5f3d615cc6 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 31 May 2023 20:24:34 +0200 Subject: [PATCH] ARM: rmobile: Factor out common R-Car V3M/V3H board code 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 --- board/renesas/eagle/Makefile | 2 +- .../eagle.c => rcar-common/v3-common.c} | 26 +------------------ 2 files changed, 2 insertions(+), 26 deletions(-) rename board/renesas/{eagle/eagle.c => rcar-common/v3-common.c} (57%) diff --git a/board/renesas/eagle/Makefile b/board/renesas/eagle/Makefile index 062c46ba24..9fb6a7c0f0 100644 --- a/board/renesas/eagle/Makefile +++ b/board/renesas/eagle/Makefile @@ -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 diff --git a/board/renesas/eagle/eagle.c b/board/renesas/rcar-common/v3-common.c similarity index 57% rename from board/renesas/eagle/eagle.c rename to board/renesas/rcar-common/v3-common.c index e9e8059ef6..be8be0cb16 100644 --- a/board/renesas/eagle/eagle.c +++ b/board/renesas/rcar-common/v3-common.c @@ -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 + * Copyright (C) 2017-2023 Marek Vasut */ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -DECLARE_GLOBAL_DATA_PTR; #define CPGWPR 0xE6150900 #define CPGWPCR 0xE6150904 -- 2.39.5