From: Jeroen Hofstee <jeroen@myspectrum.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] common: introduce board_preboot_os hook
Date: Wed, 29 Oct 2014 14:28:40 +0100 [thread overview]
Message-ID: <5450EB88.7030704@myspectrum.nl> (raw)
In-Reply-To: <1414588105-14365-4-git-send-email-nikita@compulab.co.il>
Hello Nikita,
On 29-10-14 14:08, Nikita Kiryanov wrote:
> Introduce board specific function board_preboot_os() to allow for board
> specific config before we boot, and use it on cm_fx6 to power off sata
> so that Linux will be able to setup it correctly.
>
> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
> Cc: Igor Grinberg <grinberg@compulab.co.il>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Tom Rini <trini@ti.com>
..
> +
> +void board_preboot_os(void)
> +{
> + cm_fx6_sata_power(0);
> +}
>
> +/* Allow for board specific config before we boot */
> +__weak void board_preboot_os(void)
> +{
> + /* please define board specific board_preboot_os() */
> +}
> +
> int boot_selected_os(int argc, char * const argv[], int state,
> bootm_headers_t *images, boot_os_fn *boot_fn)
> {
> arch_preboot_os();
> + board_preboot_os();
> boot_fn(state, argc, argv, images);
Can you also add a prototype for the board_preboot_os in say
bootm.h or similiar and make sure those headers are included.
(it will warn otherwise with W=1).
Regards, Jeroen
next prev parent reply other threads:[~2014-10-29 13:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 13:08 [U-Boot] [PATCH 0/3] cm-fx6 updates Nikita Kiryanov
2014-10-29 13:08 ` [U-Boot] [PATCH 1/3] arm: mx6: cm_fx6: change issd gpio order Nikita Kiryanov
2014-10-29 13:08 ` [U-Boot] [PATCH 2/3] arm: mx6: cm_fx6: detect 1GB DRAM correctly on solo Nikita Kiryanov
2014-10-29 13:08 ` [U-Boot] [PATCH 3/3] common: introduce board_preboot_os hook Nikita Kiryanov
2014-10-29 13:28 ` Jeroen Hofstee [this message]
2014-10-29 15:23 ` Otavio Salvador
2014-10-29 15:34 ` Nikita Kiryanov
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=5450EB88.7030704@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