public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/2] arm: rmobile: Add HopeRun HiHope RZ/G2M board support
Date: Sat, 19 Sep 2020 04:48:00 +0200	[thread overview]
Message-ID: <8f366d33-cc75-5902-2754-c5cabd0138a2@gmail.com> (raw)
In-Reply-To: <20200918160307.14323-2-biju.das.jz@bp.renesas.com>

On 9/18/20 6:03 PM, Biju Das wrote:

[...]

> +++ b/board/hoperun/hihope-rzg2/hihope-rzg2.c
> @@ -0,0 +1,80 @@
[...]
> +#define RST_BASE	0xE6160000
> +#define RST_CA57RESCNT	(RST_BASE + 0x40)
> +#define RST_CODE	0xA5A5000F
> +
> +/* If the firmware passed a device tree use it for U-Boot DRAM setup. */
> +extern u64 rcar_atf_boot_args[];
> +
> +DECLARE_GLOBAL_DATA_PTR;
> +
> +void s_init(void)
> +{
> +}

Is this empty function needed ?

> +#ifdef CONFIG_BOARD_EARLY_INIT_F
> +/* Kconfig forces this on, so just return 0 */

I think BOARD_EARLY_INIT_F should really be disabled in Kconfig rather
than implementing empty function here.

> +int board_early_init_f(void)
> +{
> +	return 0;
> +}
> +#endif


[...]

> +int fdtdec_board_setup(const void *fdt_blob)
> +{
> +	void *atf_fdt_blob = (void *)(rcar_atf_boot_args[1]);
> +
> +	if (fdt_magic(atf_fdt_blob) == FDT_MAGIC)
> +		fdt_overlay_apply_node((void *)fdt_blob, 0, atf_fdt_blob, 0);
> +
> +	return 0;
> +}

Please use board/renesas/rcar-common/common.c , no need to duplicate the
code.

> +int dram_init(void)
> +{
> +	return fdtdec_setup_mem_size_base();
> +}
> +
> +int dram_init_banksize(void)
> +{
> +	return fdtdec_setup_memory_banksize();
> +}
> +
> +void reset_cpu(ulong addr)
> +{
> +	writel(RST_CODE, RST_CA57RESCNT);
> +}

Isn't there CA53 core in the RZG2 too ?

[...]

  reply	other threads:[~2020-09-19  2:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18 16:03 [PATCH 1/2] arm: rmobile: Add RZ/G2M SoC Biju Das
2020-09-18 16:03 ` [PATCH 2/2] arm: rmobile: Add HopeRun HiHope RZ/G2M board support Biju Das
2020-09-19  2:48   ` Marek Vasut [this message]
2020-09-19 12:18     ` Biju Das
2020-09-19 13:04       ` Marek Vasut
2020-09-19 18:38         ` Biju Das
2020-09-19 19:18           ` Marek Vasut
2020-09-19  2:47 ` [PATCH 1/2] arm: rmobile: Add RZ/G2M SoC Marek Vasut
2020-09-19 11:37   ` Biju Das
2020-09-19 13:00     ` Marek Vasut
2020-09-19 18:35       ` Biju Das
2020-09-19 19:18         ` Marek Vasut
2020-09-21 10:30           ` Biju Das
2020-09-21 16:23             ` Marek Vasut
2020-09-21 17:29               ` Biju Das
2020-09-22  6:08                 ` Biju Das
2020-09-22 11:11                   ` Biju Das
2020-09-22 13:11                 ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8f366d33-cc75-5902-2754-c5cabd0138a2@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox