mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-24 08:22:14 +00:00
sunxi: binman: Use a macro for the BL31 load address
This consolidates the SoC-specific part at the top of the file to avoid cluttering it up with preprocessor conditions. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:
parent
6b7c7ed80a
commit
827c420c40
1 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,11 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_MACH_SUN50I_H6
|
||||||
|
#define BL31_ADDR 0x104000
|
||||||
|
#else
|
||||||
|
#define BL31_ADDR 0x44000
|
||||||
|
#endif
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
aliases {
|
aliases {
|
||||||
mmc1 = &mmc2;
|
mmc1 = &mmc2;
|
||||||
|
@ -42,14 +48,8 @@
|
||||||
type = "firmware";
|
type = "firmware";
|
||||||
arch = "arm64";
|
arch = "arm64";
|
||||||
compression = "none";
|
compression = "none";
|
||||||
/* TODO: Do this with an overwrite in this board's dtb? */
|
load = <BL31_ADDR>;
|
||||||
#ifdef CONFIG_MACH_SUN50I_H6
|
entry = <BL31_ADDR>;
|
||||||
load = <0x104000>;
|
|
||||||
entry = <0x104000>;
|
|
||||||
#else
|
|
||||||
load = <0x44000>;
|
|
||||||
entry = <0x44000>;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
atf-bl31 {
|
atf-bl31 {
|
||||||
filename = "bl31.bin";
|
filename = "bl31.bin";
|
||||||
|
|
Loading…
Reference in a new issue