Re: [PATCH v2 1/8] board: schneider: rzn1-snarc: set serial number
Marek Vasut via U-Boot <[email protected]>
| Newsgroups | org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
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;
[...]