public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] nios2: export fdt_blob to the environment variable
Date: Sun, 11 Oct 2015 14:16:26 +0200	[thread overview]
Message-ID: <201510111416.26398.marex@denx.de> (raw)
In-Reply-To: <1444534456-6067-1-git-send-email-thomas@wytron.com.tw>

On Sunday, October 11, 2015 at 05:34:16 AM, Thomas Chou wrote:
> Export fdt_blob to the environment variable. So that we may
> use it to boot Linux.
> 
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> v2
>   move the code to per board, nios2-generic.c.
> 
>  board/altera/nios2-generic/nios2-generic.c | 9 +++++++++
>  include/configs/nios2-generic.h            | 1 +
>  2 files changed, 10 insertions(+)
> 
> diff --git a/board/altera/nios2-generic/nios2-generic.c
> b/board/altera/nios2-generic/nios2-generic.c index e7fecd2..f508c00 100644
> --- a/board/altera/nios2-generic/nios2-generic.c
> +++ b/board/altera/nios2-generic/nios2-generic.c
> @@ -14,6 +14,8 @@
>  #include <asm/io.h>
>  #include <asm/gpio.h>
> 
> +DECLARE_GLOBAL_DATA_PTR;
> +
>  #if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR) && \
>      defined(CONFIG_CFI_FLASH_MTD)
>  static void __early_flash_cmd_reset(void)
> @@ -35,6 +37,13 @@ int board_early_init_f(void)
>  	return 0;
>  }
> 
> +int misc_init_r(void)
> +{
> +	setenv_addr("fdt_blob", gd->fdt_blob);
> +
> +	return 0;
> +}


Shouldn't this go into generic code ?

Best regards,
Marek Vasut

  reply	other threads:[~2015-10-11 12:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-09 11:46 [U-Boot] [PATCH] nios2: export fdt_blob to the environment variable Thomas Chou
2015-10-11  3:34 ` [U-Boot] [PATCH v2] " Thomas Chou
2015-10-11 12:16   ` Marek Vasut [this message]
2015-10-12  6:36 ` [U-Boot] [PATCH v3] env: " Thomas Chou
2015-10-15 13:24   ` Simon Glass
2015-10-16  0:44 ` [U-Boot] [PATCH v4] " Thomas Chou
2015-10-18 12:47   ` Simon Glass
2015-10-18 23:16     ` Simon Glass

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=201510111416.26398.marex@denx.de \
    --to=marex@denx.de \
    --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