mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 02:02:08 +02:00
arm: spl: For Falcon Mode, set a default machid of ~0
With device trees, boards do not always set CONFIG_MACH_TYPE now, so we must not rely on this define being set. The kernel uses ~0 to see if we have a valid machine number or not, so set that as the default, invalid machine, id and only fix if CONFIG_MACH_TYPE is set. Acked-by: Dan Murphy <dmurphy@ti.com> Tested-by: Heiko Schocher <hs@denx.de> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
@@ -45,12 +45,17 @@ void __weak board_init_f(ulong dummy)
|
|||||||
#ifdef CONFIG_SPL_OS_BOOT
|
#ifdef CONFIG_SPL_OS_BOOT
|
||||||
void __noreturn jump_to_image_linux(void *arg)
|
void __noreturn jump_to_image_linux(void *arg)
|
||||||
{
|
{
|
||||||
|
unsigned long machid = 0xffffffff;
|
||||||
|
#ifdef CONFIG_MACH_TYPE
|
||||||
|
machid = CONFIG_MACH_TYPE;
|
||||||
|
#endif
|
||||||
|
|
||||||
debug("Entering kernel arg pointer: 0x%p\n", arg);
|
debug("Entering kernel arg pointer: 0x%p\n", arg);
|
||||||
typedef void (*image_entry_arg_t)(int, int, void *)
|
typedef void (*image_entry_arg_t)(int, int, void *)
|
||||||
__attribute__ ((noreturn));
|
__attribute__ ((noreturn));
|
||||||
image_entry_arg_t image_entry =
|
image_entry_arg_t image_entry =
|
||||||
(image_entry_arg_t) spl_image.entry_point;
|
(image_entry_arg_t) spl_image.entry_point;
|
||||||
cleanup_before_linux();
|
cleanup_before_linux();
|
||||||
image_entry(0, CONFIG_MACH_TYPE, arg);
|
image_entry(0, machid, arg);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user