Re: [PATCH v2 1/8] board: schneider: rzn1-snarc: set serial number

Marek Vasut via U-Boot <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <66e8000e-85d4-4820-9360-b1c480fb71d3__43803.3195257717$1786747473$gmane$org@mailbox.org>
On 8/14/26 8:38 PM, Ralph Siemsen wrote:

[...]

> +++ b/board/schneider/rzn1-snarc/rzn1.c
> @@ -1,11 +1,21 @@
>   // SPDX-License-Identifier: GPL-2.0+
>   
> +#include <asm/io.h>
> +#include <configs/rzn1-snarc.h>
>   #include <dm.h>
> +#include <env.h>
> +#include <g_dnl.h>
>   #include <ram.h>
>   #include <asm/global_data.h>
>   
>   DECLARE_GLOBAL_DATA_PTR;
>   
> +static inline uint32_t hosted_readl(uint32_t addr)

"inline" is not necessary, compiler will figure that out, drop it.

> +{
> +	/* No hypervisor yet, just do a direct read */
> +	return readl(addr);
> +}
> +
>   int board_init(void)
>   {
>   	gd->bd->bi_boot_params = gd->ram_base + 0x100;

[...]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.