1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#ifndef __FDT_SUPPORT_H
25#define __FDT_SUPPORT_H
26
27#ifdef CONFIG_OF_LIBFDT
28
29#include <fdt.h>
30
31int fdt_chosen(void *fdt, ulong initrd_start, ulong initrd_end, int force);
32void do_fixup_by_path(void *fdt, const char *path, const char *prop,
33 const void *val, int len, int create);
34void do_fixup_by_path_u32(void *fdt, const char *path, const char *prop,
35 u32 val, int create);
36void do_fixup_by_prop(void *fdt,
37 const char *pname, const void *pval, int plen,
38 const char *prop, const void *val, int len,
39 int create);
40void do_fixup_by_prop_u32(void *fdt,
41 const char *pname, const void *pval, int plen,
42 const char *prop, u32 val, int create);
43void do_fixup_by_compat(void *fdt, const char *compat,
44 const char *prop, const void *val, int len, int create);
45void do_fixup_by_compat_u32(void *fdt, const char *compat,
46 const char *prop, u32 val, int create);
47int fdt_fixup_memory(void *blob, u64 start, u64 size);
48void fdt_fixup_ethernet(void *fdt, bd_t *bd);
49int fdt_find_and_setprop(void *fdt, const char *node, const char *prop,
50 const void *val, int len, int create);
51void fdt_fixup_qe_firmware(void *fdt);
52
53#ifdef CONFIG_HAS_FSL_DR_USB
54void fdt_fixup_dr_usb(void *blob, bd_t *bd);
55#else
56static inline void fdt_fixup_dr_usb(void *blob, bd_t *bd) {}
57#endif
58
59#ifdef CONFIG_OF_BOARD_SETUP
60void ft_board_setup(void *blob, bd_t *bd);
61void ft_cpu_setup(void *blob, bd_t *bd);
62void ft_pci_setup(void *blob, bd_t *bd);
63#endif
64
65#endif
66#endif
67