Introduce board specific function board_preboot_os() to allow for board specific config before we boot.
Signed-off-by: Nikita Kiryanov <nik...@compulab.co.il> Cc: Igor Grinberg <grinb...@compulab.co.il> Cc: Stefano Babic <sba...@denx.de> Cc: Tom Rini <tr...@ti.com> Cc: Jeroen Hofstee <jer...@myspectrum.nl> Cc: Otavio Salvador <ota...@ossystems.com.br> --- Changes in V2: - Added board_preboot_os to bootm.h - Split cm_fx6 stuff into a separate patch common/bootm_os.c | 7 +++++++ include/bootm.h | 1 + 2 files changed, 8 insertions(+) diff --git a/common/bootm_os.c b/common/bootm_os.c index 5be4467..95cd657 100644 --- a/common/bootm_os.c +++ b/common/bootm_os.c @@ -442,10 +442,17 @@ __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) { arch_preboot_os(); + board_preboot_os(); boot_fn(state, argc, argv, images); /* Stand-alone may return when 'autostart' is 'no' */ diff --git a/include/bootm.h b/include/bootm.h index b3d1a62..7a57264 100644 --- a/include/bootm.h +++ b/include/bootm.h @@ -55,5 +55,6 @@ int do_bootm_states(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], int states, bootm_headers_t *images, int boot_progress); void arch_preboot_os(void); +void board_preboot_os(void); #endif -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot