From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] ARM: sama5d2: Implement boot device autodetection
Date: Tue, 03 May 2016 13:47:26 +0200 [thread overview]
Message-ID: <57288FCE.3090900@denx.de> (raw)
In-Reply-To: <12ca86779d6d1262c2c6a5a250ab1fcb@biessmann.de>
On 05/03/2016 01:43 PM, Andreas Bie?mann wrote:
> Hi Marek,
>
> On 2016-05-03 13:04, Marek Vasut wrote:
>> On 05/03/2016 10:52 AM, Andreas Bie?mann wrote:
>>> On Fri, Apr 22, 2016 at 09:56:21PM +0200, Marek Vasut wrote:
>>>> Implement support for saving ARM register R4 early during boot using
>>>> save_boot_params . Implement support for decoding the stored register
>>>> R4 value in spl_boot_device() to obtain boot device from which the
>>>> SoC booted. This way, the SPL will always load U-Boot from the same
>>>> device from which the SPL itself booted instead of using hard-coded
>>>> boot device.
>>>>
>>>> This functionality is useful for example when booting sama5d2-xplained
>>>> from SD card, where by default the SPL would try loading the U-Boot
>>>> from eMMC and fail. This is because eMMC is on SDHCI0
>>>> (BOOT_DEVICE_MMC1),
>>>> while SD slot is on SDHCI1 (BOOT_DEVICE_MMC2) and the SPL was
>>>> hard-wired
>>>> to always boot from BOOT_DEVICE_MMC1.
>>>>
>>>> Signed-off-by: Marek Vasut <marex@denx.de>
>>>> Cc: Andreas Bie?mann <andreas.devel@googlemail.com>
>>>> Cc: Wenyou Yang <wenyou.yang@atmel.com>
>>>>
>>>
>>> Reviewed-by: Andreas Bie?mann <andreas@biessmann.org>
>>
>> I will eventually extend this to SAMA5Dx as this is quite helpful on
>> upcoming board.
>
> Let's do it for the next release. Hopefully this gets in with 2016.05
> ... as always I'm really late for my pull request.
This one is for next release (2016.07) too :) But it's not like it
breaks anything, so this release is fine as well.
> Andreas
>
>>
>>>> ---
>>>> arch/arm/mach-at91/Makefile | 2 +-
>>>> arch/arm/mach-at91/bootparams_atmel.S | 18 ++++++++++++++++
>>>> arch/arm/mach-at91/include/mach/sama5d2.h | 12 +++++++++++
>>>> arch/arm/mach-at91/spl.c | 36
>>>> +++++++++++++++++++++++++++++++
>>>> 4 files changed, 67 insertions(+), 1 deletion(-)
>>>> create mode 100644 arch/arm/mach-at91/bootparams_atmel.S
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-05-03 11:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-22 19:56 [U-Boot] [PATCH] ARM: sama5d2: Implement boot device autodetection Marek Vasut
2016-05-03 8:52 ` [U-Boot] " Andreas Bießmann
2016-05-03 11:04 ` Marek Vasut
2016-05-03 11:43 ` Andreas Bießmann
2016-05-03 11:47 ` Marek Vasut [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-05-03 11:38 [U-Boot] [U-Boot, 1/2] ARM: at91: sama5d2: add macro & field definitions Andreas Bießmann
2016-05-03 11:38 ` [U-Boot] ARM: sama5d2: Implement boot device autodetection Andreas Bießmann
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=57288FCE.3090900@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.