diff options
| author | Samuel Holland <samuel.holland@sifive.com> | 2024-07-31 07:58:56 +0300 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-08-24 10:33:01 +0300 |
| commit | c36801841e366fa3ddeb7d7888b8691006c0b552 (patch) | |
| tree | 4af77b9a9684dd6d3a3bd6a88dd54c567a54c46d /platform/generic | |
| parent | fa6dfce017eed32cbae2581bc285bafd52929d42 (diff) | |
| download | opensbi-c36801841e366fa3ddeb7d7888b8691006c0b552.tar.xz | |
lib: utils/serial: Pass the FDT to fdt_serial_init()
Indicate that this function does not modify the FDT blob, and
deduplicate the call to fdt_get_address().
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform/generic')
| -rw-r--r-- | platform/generic/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/generic/platform.c b/platform/generic/platform.c index 2850d55..7c809b0 100644 --- a/platform/generic/platform.c +++ b/platform/generic/platform.c @@ -230,7 +230,7 @@ static int generic_early_init(bool cold_boot) if (semihosting_enabled()) rc = semihosting_init(); else - rc = fdt_serial_init(); + rc = fdt_serial_init(fdt); if (rc) return rc; } |
