All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit
@ 2021-05-12 19:56 Marek Vasut
  2021-05-12 20:06 ` Adam Ford
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2021-05-12 19:56 UTC (permalink / raw)
  To: u-boot

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       |  2 +-
 board/beacon/beacon-rzg2m/beacon-rzg2m.c | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/board/beacon/beacon-rzg2m/Makefile b/board/beacon/beacon-rzg2m/Makefile
index 439f3199aa..9131a92efa 100644
--- a/board/beacon/beacon-rzg2m/Makefile
+++ b/board/beacon/beacon-rzg2m/Makefile
@@ -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
diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
index 0c7f8e54e9..c12ff77fb2 100644
--- a/board/beacon/beacon-rzg2m/beacon-rzg2m.c
+++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit
  2021-05-12 19:56 [PATCH] ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit Marek Vasut
@ 2021-05-12 20:06 ` Adam Ford
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Ford @ 2021-05-12 20:06 UTC (permalink / raw)
  To: u-boot

On Wed, May 12, 2021 at 2:58 PM Marek Vasut <marek.vasut@gmail.com> wrote:
>
> 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>

Reviewed-by: Adam Ford <aford173@gmail.com>

> Cc: Adam Ford <aford173@gmail.com>
> ---
>  board/beacon/beacon-rzg2m/Makefile       |  2 +-
>  board/beacon/beacon-rzg2m/beacon-rzg2m.c | 15 ---------------
>  2 files changed, 1 insertion(+), 16 deletions(-)
>
> diff --git a/board/beacon/beacon-rzg2m/Makefile b/board/beacon/beacon-rzg2m/Makefile
> index 439f3199aa..9131a92efa 100644
> --- a/board/beacon/beacon-rzg2m/Makefile
> +++ b/board/beacon/beacon-rzg2m/Makefile
> @@ -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
> diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
> index 0c7f8e54e9..c12ff77fb2 100644
> --- a/board/beacon/beacon-rzg2m/beacon-rzg2m.c
> +++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
> @@ -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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-12 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 19:56 [PATCH] ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit Marek Vasut
2021-05-12 20:06 ` Adam Ford

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.