forked from Mirrors/opensbi
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
@@ -21,8 +21,8 @@ struct platform_override {
|
||||
u64 (*tlbr_flush_limit)(const struct fdt_match *match);
|
||||
u32 (*tlb_num_entries)(const struct fdt_match *match);
|
||||
bool (*cold_boot_allowed)(u32 hartid, const struct fdt_match *match);
|
||||
int (*early_init)(bool cold_boot, const struct fdt_match *match);
|
||||
int (*final_init)(bool cold_boot, const struct fdt_match *match);
|
||||
int (*early_init)(bool cold_boot, const void *fdt, const struct fdt_match *match);
|
||||
int (*final_init)(bool cold_boot, void *fdt, const struct fdt_match *match);
|
||||
void (*early_exit)(const struct fdt_match *match);
|
||||
void (*final_exit)(const struct fdt_match *match);
|
||||
int (*fdt_fixup)(void *fdt, const struct fdt_match *match);
|
||||
|
Reference in New Issue
Block a user