diff options
author | Alexandre Ghiti <alexandre.ghiti@canonical.com> | 2021-10-27 09:43:36 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-11-02 11:23:16 +0530 |
commit | c891acca172dfc60719419e19338508a83d97931 (patch) | |
tree | 04658a01d122f0fbaf81b91adce26e738c812659 /platform/andes/ae350 | |
parent | 723aa88ff4cc44230cf871bda319905113003279 (diff) |
include: sbi_utils: Introduce an helper to get fdt base address
This simply adds an helper to get fdt address which is more explicit than
sbi_scratch_thishart_arg1_ptr.
Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/andes/ae350')
-rw-r--r-- | platform/andes/ae350/platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/andes/ae350/platform.c b/platform/andes/ae350/platform.c index ae4ef71..01232d0 100644 --- a/platform/andes/ae350/platform.c +++ b/platform/andes/ae350/platform.c @@ -15,6 +15,7 @@ #include <sbi/sbi_ipi.h> #include <sbi/sbi_platform.h> #include <sbi/sbi_trap.h> +#include <sbi_utils/fdt/fdt_helper.h> #include <sbi_utils/fdt/fdt_fixup.h> #include <sbi_utils/irqchip/plic.h> #include <sbi_utils/serial/uart8250.h> @@ -55,7 +56,7 @@ static int ae350_final_init(bool cold_boot) if (!cold_boot) return 0; - fdt = sbi_scratch_thishart_arg1_ptr(); + fdt = fdt_get_address(); fdt_fixups(fdt); return 0; |