[PATCH v3 8/9] ARM: renesas: Add RZ/A2 GR-Mango board support
Marek Vasut
marek.vasut at mailbox.org
Mon Jul 7 17:49:15 CEST 2025
On 7/6/25 1:29 PM, Magnus Damm wrote:
[...]
> +++ work/board/renesas/grmango/grmango.c 2025-07-05 19:42:53.297553497 +0900
> @@ -0,0 +1,40 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Copyright (C) 2017 Renesas Electronics
> + * Copyright (C) Chris Brandt
> + */
> +
> +#include <init.h>
> +#include <linux/io.h>
> +#include <asm/global_data.h>
> +
> +DECLARE_GLOBAL_DATA_PTR;
> +
> +int board_init(void)
> +{
> + gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
> +
> + /* configure PFENET register to use MII for Ethernet */
> + writeb(0x00, 0xfcffe2ff);
> + writeb(0x40, 0xfcffe2ff);
> + writeb(0x02, 0xfcffe820);
Please add symbolic names (introduce macros) for those registers here.
> + return 0;
> +}
[...]
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list