mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-30 18:06:33 +01:00
platform: generic: Pass FDT to early/final_init overrides
Several of these override functions access the FDT blob. Explicitly indicate which callbacks are allowed to modify the FDT blob by passing the parameter as a possibly-const pointer. This also reduces code size by deduplicating 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>
This commit is contained in:

committed by
Anup Patel

parent
3f964652d9
commit
6e5db7b09c
@@ -19,7 +19,7 @@ struct thead_generic_quirks {
|
||||
u64 errata;
|
||||
};
|
||||
|
||||
static int thead_generic_early_init(bool cold_boot,
|
||||
static int thead_generic_early_init(bool cold_boot, const void *fdt,
|
||||
const struct fdt_match *match)
|
||||
{
|
||||
struct thead_generic_quirks *quirks = (void *)match->data;
|
||||
|
Reference in New Issue
Block a user