]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 12 May 2021 19:34:11 +0000 (21:34 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 12 May 2021 19:36:27 +0000 (21:36 +0200)
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.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Adam Ford <aford173@gmail.com>
board/beacon/beacon-rzg2m/Makefile
board/beacon/beacon-rzg2m/beacon-rzg2m.c

index 439f3199aa5550071b0099f2952de656ed43dd72..9131a92efaed51e96b6edf3b532d7bb285c16fdf 100644 (file)
@@ -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
index 0c7f8e54e97d88e2332bf62c77c61597e1f91e19..c12ff77fb24472f7216ec8f58ebe5c00124f0116 100644 (file)
@@ -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