summaryrefslogtreecommitdiff
path: root/board/armltd/total_compute/lowlevel_init.S
diff options
context:
space:
mode:
authorBoyan Karatotev <boyan.karatotev@arm.com>2024-10-25 18:18:14 +0100
committerTom Rini <trini@konsulko.com>2024-11-04 14:50:43 -0600
commited3649472467275e5c9430def028d54263f73a1b (patch)
tree7235a1a6a7962571718eea2c6b238ed510aeb485 /board/armltd/total_compute/lowlevel_init.S
parent625d40ab120dbc6f45dbd975857f8f87e422bd0f (diff)
arm: total_compute: depend on TF-A for hardware description
On Total Compute, TF-A passes the info via DT binding for the hardware description - includes the serial, memory, and arm_ffa nodes. This commit initializes the fdt base address based on the passed the register x1. The similar implementation has already been done for the raspberry pi, so borrow a lot of it. Co-developed-by: Jackson Cooper-Driver <jackson.cooper-driver@arm.com> Signed-off-by: Jackson Cooper-Driver <jackson.cooper-driver@arm.com> Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Signed-off-by: Leo Yan <leo.yan@arm.com>
Diffstat (limited to 'board/armltd/total_compute/lowlevel_init.S')
-rw-r--r--board/armltd/total_compute/lowlevel_init.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/armltd/total_compute/lowlevel_init.S b/board/armltd/total_compute/lowlevel_init.S
new file mode 100644
index 00000000000..3c069379660
--- /dev/null
+++ b/board/armltd/total_compute/lowlevel_init.S
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * (C) Copyright 2024 Arm Limited
+ */
+
+.global save_boot_params
+save_boot_params:
+ /* The firmware provided FDT address via x1 */
+ adr x8, fw_dtb_pointer
+ str x1, [x8]
+
+ b save_boot_params_ret