1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2020 Western Digital Corporation or its affiliates.
5 #include <linux/init.h>
6 #include <linux/libfdt.h>
7 #include <linux/pgtable.h>
11 * This is called extremly early, before parse_dtb(), to allow initializing
12 * SoC hardware before memory or any device driver initialization.
14 void __init
soc_early_init(void)
16 void (*early_fn
)(const void *fdt
);
17 const struct of_device_id
*s
;
18 const void *fdt
= dtb_early_va
;
20 for (s
= (void *)&__soc_early_init_table_start
;
21 (void *)s
< (void *)&__soc_early_init_table_end
; s
++) {
22 if (!fdt_node_check_compatible(fdt
, 0, s
->compatible
)) {