summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorGerard Salvatella <gerard.salvatella@toradex.com>2018-08-31 09:35:16 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-09-13 14:05:19 +0200
commit71c46c0c7531467a8387d3a686aef66397abd94c (patch)
treef2e0ebbe21c2e48557d90f7906812e7f03a90b62 /common
parent1c3b7192761016f686cefc0c817929b93af0224f (diff)
common: add board specific hook for os pre-boot config
Some boards require specific configuration prior to booting the kernel. For instance, our boards require shutting down the display to avoid fading transitions before the drivers are reloaded by the kernel. This can be facilitated by adding an extra hook during the os booting process. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'common')
-rw-r--r--common/bootm_os.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/bootm_os.c b/common/bootm_os.c
index e3f5a464120..582d9686447 100644
--- a/common/bootm_os.c
+++ b/common/bootm_os.c
@@ -473,9 +473,16 @@ __weak void arch_preboot_os(void)
/* please define platform specific arch_preboot_os() */
}
+/* 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)
{
+ board_preboot_os();
arch_preboot_os();
boot_fn(state, argc, argv, images);