public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jeroen Hofstee <jeroen@myspectrum.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 6/8] imx6: SPL support for iMX6 SabreSD
Date: Sat, 08 Nov 2014 22:18:31 +0100	[thread overview]
Message-ID: <545E88A7.1020002@myspectrum.nl> (raw)
In-Reply-To: <1415470977-40937-7-git-send-email-john.tobias.ph@gmail.com>

Hello John,

On 08-11-14 19:22, John Tobias wrote:
> This patch will enable the support for SPL on iMX6 SabreSD.
> It tested on SD2 and SD3 mmc port.
> ---

<snip>
>   board/freescale/mx6sabresd/mx6sabresd.c | 216 ++++++++++++++++++++++++++++++++
>   1 file changed, 216 insertions(+)
>
> diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
> index 3d81fff..d090487 100644
> --- a/board/freescale/mx6sabresd/mx6sabresd.c
> +++ b/board/freescale/mx6sabresd/mx6sabresd.c
> @@ -607,3 +607,219 @@ int checkboard(void)
>   	puts("Board: MX6-SabreSD\n");
>   	return 0;
>   }
>
> +
> +void board_init_f(ulong dummy)
> +{
> +	u32 ram_size;
> +
> +	/* Set the stack pointer. */
> +	asm volatile("mov sp, %0\n" : : "r"(CONFIG_SPL_STACK));
> +
> +	ram_size = spl_dram_init();
> +
> +	arch_cpu_init();
> +
> +	/* Clear the BSS. */
> +	memset(__bss_start, 0, __bss_end - __bss_start);
> +
> +	/* Set global data pointer. */
> +	gd = &gdata;
> +	gd->ram_size = ram_size;
> +

sp and gd should already be valid by the time
board_init_f is called. There is no need to set them
again.
> +	board_early_init_f();
> +
> +	timer_init();
> +
> +	preloader_console_init();
> +
> +	board_init_r(NULL, 0);
> +}
> +

Regards,
Jeroen

  reply	other threads:[~2014-11-08 21:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-08 18:22 [U-Boot] [PATCH v2 0/8] *** iMX6 SabreSD SPL Support *** John Tobias
2014-11-08 18:22 ` [U-Boot] [PATCH v2 1/8] mmc: add spl_board_mmc_init John Tobias
2014-11-08 18:22 ` [U-Boot] [PATCH v2 2/8] mmc: imx6: call spl_board_mmc_init John Tobias
2014-11-08 18:22 ` [U-Boot] [PATCH v2 3/8] imx6: add spl on board configuration John Tobias
2014-11-10  0:03   ` Fabio Estevam
2014-11-10  0:27     ` John Tobias
2014-11-10  0:32       ` Fabio Estevam
2014-11-10  0:35         ` John Tobias
2014-11-08 18:22 ` [U-Boot] [PATCH v2 4/8] imx6: add some flexibility for defining macros John Tobias
2014-11-08 18:22 ` [U-Boot] [PATCH v2 5/8] imx6: add spl on board configuration John Tobias
2014-11-08 18:22 ` [U-Boot] [PATCH v2 6/8] imx6: SPL support for iMX6 SabreSD John Tobias
2014-11-08 21:18   ` Jeroen Hofstee [this message]
2014-11-08 22:17     ` John Tobias
2014-11-08 18:22 ` [U-Boot] [PATCH v2 7/8] imx6: add data configuration file for SPL John Tobias
2014-11-08 18:22 ` [U-Boot] [PATCH v2 8/8] kconfig: imx6: add SUPPORT_SPL John Tobias

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=545E88A7.1020002@myspectrum.nl \
    --to=jeroen@myspectrum.nl \
    --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