mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 01:38:22 +00:00
aae2aef9c8
At present arm defines CONFIG_SYS_GENERIC_GLOBAL_DATA, meaning that the global_data pointer is set up in board_init_f(). However it is actually set up before this, it just isn't zeroed. If we zero the global data before calling board_init_f() then we don't need to define CONFIG_SYS_GENERIC_GLOBAL_DATA. Make this change (on arm32 only) to simplify the init process. I don't have the ability to test aarch64 yet. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Tom Rini <trini@ti.com>
26 lines
425 B
C
26 lines
425 B
C
/*
|
|
* Copyright 2009 Freescale Semiconductor, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _ASM_CONFIG_H_
|
|
#define _ASM_CONFIG_H_
|
|
|
|
#ifdef __aarch64__
|
|
#define CONFIG_SYS_GENERIC_GLOBAL_DATA
|
|
#endif
|
|
|
|
#define CONFIG_LMB
|
|
#define CONFIG_SYS_BOOT_RAMDISK_HIGH
|
|
|
|
#ifdef CONFIG_ARM64
|
|
#define CONFIG_PHYS_64BIT
|
|
#define CONFIG_STATIC_RELA
|
|
#endif
|
|
|
|
#ifdef CONFIG_FSL_LSCH3
|
|
#include <asm/arch-fsl-lsch3/config.h>
|
|
#endif
|
|
|
|
#endif
|