summaryrefslogtreecommitdiff
path: root/lib/utils/irqchip
diff options
context:
space:
mode:
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>2021-10-27 10:43:36 +0300
committerAnup Patel <anup@brainfault.org>2021-11-02 08:53:16 +0300
commitc891acca172dfc60719419e19338508a83d97931 (patch)
tree04658a01d122f0fbaf81b91adce26e738c812659 /lib/utils/irqchip
parent723aa88ff4cc44230cf871bda319905113003279 (diff)
downloadopensbi-c891acca172dfc60719419e19338508a83d97931.tar.xz
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 'lib/utils/irqchip')
-rw-r--r--lib/utils/irqchip/fdt_irqchip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/irqchip/fdt_irqchip.c b/lib/utils/irqchip/fdt_irqchip.c
index 1306d50..8dda661 100644
--- a/lib/utils/irqchip/fdt_irqchip.c
+++ b/lib/utils/irqchip/fdt_irqchip.c
@@ -38,7 +38,7 @@ static int fdt_irqchip_cold_init(void)
int pos, noff, rc;
struct fdt_irqchip *drv;
const struct fdt_match *match;
- void *fdt = sbi_scratch_thishart_arg1_ptr();
+ void *fdt = fdt_get_address();
for (pos = 0; pos < array_size(irqchip_drivers); pos++) {
drv = irqchip_drivers[pos];