arm bootm: Allow to pass board specified atags
Board can implement function setup_board_tags which is used for adding atags Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
This commit is contained in:
parent
c3f8318f33
commit
89e6f13849
@ -267,3 +267,8 @@ struct meminfo {
|
|||||||
extern struct meminfo meminfo;
|
extern struct meminfo meminfo;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Board specified tags
|
||||||
|
*/
|
||||||
|
void setup_board_tags(struct tag **in_params);
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
#include <libfdt.h>
|
#include <libfdt.h>
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <asm/bootm.h>
|
#include <asm/bootm.h>
|
||||||
|
#include <linux/compiler.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
@ -269,6 +270,8 @@ static int create_fdt(bootm_headers_t *images)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
__weak void setup_board_tags(struct tag **in_params) {}
|
||||||
|
|
||||||
/* Subcommand: PREP */
|
/* Subcommand: PREP */
|
||||||
static void boot_prep_linux(bootm_headers_t *images)
|
static void boot_prep_linux(bootm_headers_t *images)
|
||||||
{
|
{
|
||||||
@ -310,6 +313,7 @@ static void boot_prep_linux(bootm_headers_t *images)
|
|||||||
setup_initrd_tag(gd->bd, images->rd_start,
|
setup_initrd_tag(gd->bd, images->rd_start,
|
||||||
images->rd_end);
|
images->rd_end);
|
||||||
#endif
|
#endif
|
||||||
|
setup_board_tags(¶ms);
|
||||||
setup_end_tag(gd->bd);
|
setup_end_tag(gd->bd);
|
||||||
#else /* all tags */
|
#else /* all tags */
|
||||||
printf("FDT and ATAGS support not compiled in - hanging\n");
|
printf("FDT and ATAGS support not compiled in - hanging\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user