Skip to contentSkip to conversation

ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit

PATCH New Marek Vasut 2 participants 2 messages May 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit

The rcar-common/common.c contains various common board functions shared by all R-Car and RZG boards. This board is not compiling the file in, so add it. This way, part of the board code can be de-duplicated too.

---
 board/beacon/beacon-rzg2m/Makefile       |  2 +-
 board/beacon/beacon-rzg2m/beacon-rzg2m.c | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)
board/beacon/beacon-rzg2m/Makefile +1 -1
index 439f3199aa..9131a92efa 100644
@@ -6,4 +6,4 @@
 # SPDX-License-Identifier: GPL-2.0+
 #
 
-obj-y	:= beacon-rzg2m.o
+obj-y	:= beacon-rzg2m.o ../../renesas/rcar-common/common.o
board/beacon/beacon-rzg2m/beacon-rzg2m.c +0 -15
index 0c7f8e54e9..c12ff77fb2 100644
@@ -28,21 +28,6 @@ int board_init(void)
 	return 0;
 }
 
-int dram_init(void)
-{
-	if (fdtdec_setup_mem_size_base() != 0)
-		return -EINVAL;
-
-	return 0;
-}
-
-int dram_init_banksize(void)
-{
-	fdtdec_setup_memory_banksize();
-
-	return 0;
-}
-
 #define RST_BASE	0xE6160000
 #define RST_CA57RESCNT	(RST_BASE + 0x40)
 #define RST_CODE	0xA5A5000F
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit

Quoted 6 lines · Marek Vasut

The rcar-common/common.c contains various common board functions shared by all R-Car and RZG boards. This board is not compiling the file in, so add it. This way, part of the board code can be de-duplicated too.

Quoted 45 lines
Cc Adam Ford <[email protected]>
---
 board/beacon/beacon-rzg2m/Makefile       |  2 +-
 board/beacon/beacon-rzg2m/beacon-rzg2m.c | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)
board/beacon/beacon-rzg2m/Makefile +1 -1
index 439f3199aa..9131a92efa 100644
@@ -6,4 +6,4 @@
 # SPDX-License-Identifier: GPL-2.0+
 #
 
-obj-y  := beacon-rzg2m.o
+obj-y  := beacon-rzg2m.o ../../renesas/rcar-common/common.o
board/beacon/beacon-rzg2m/beacon-rzg2m.c +0 -16
index 0c7f8e54e9..c12ff77fb2 100644
@@ -28,21 +28,6 @@ int board_init(void)
        return 0;
 }
 
-int dram_init(void)
-{
-       if (fdtdec_setup_mem_size_base() != 0)
-               return -EINVAL;
-
-       return 0;
-}
-
-int dram_init_banksize(void)
-{
-       fdtdec_setup_memory_banksize();
-
-       return 0;
-}
-
 #define RST_BASE       0xE6160000
 #define RST_CA57RESCNT (RST_BASE + 0x40)
 #define RST_CODE       0xA5A5000F
--

2.30.2