Home
last modified time | relevance | path

Searched refs:dtb (Results 1 – 25 of 89) sorted by relevance

1234

/trusted-firmware-a-3.7.0/plat/xilinx/common/
Dplat_fdt.c19 void *dtb; in prepare_dtb() local
23 dtb = (void *)XILINX_OF_BOARD_DTB_ADDR; in prepare_dtb()
28 map_ret = mmap_add_dynamic_region((unsigned long long)dtb, in prepare_dtb()
29 (uintptr_t)dtb, in prepare_dtb()
40 if (fdt_check_header(dtb) != 0) { in prepare_dtb()
41 NOTICE("Can't read DT at %p\n", dtb); in prepare_dtb()
43 ret = fdt_open_into(dtb, dtb, XILINX_OF_BOARD_DTB_MAX_SIZE); in prepare_dtb()
47 dtb, ret); in prepare_dtb()
50 if (dt_add_psci_node(dtb)) { in prepare_dtb()
54 if (dt_add_psci_cpu_enable_methods(dtb)) { in prepare_dtb()
[all …]
Dplat_console.c34 static int32_t get_baudrate(void *dtb) in get_baudrate() argument
42 node = fdt_path_offset(dtb, "/secure-chosen"); in get_baudrate()
44 node = fdt_path_offset(dtb, "/chosen"); in get_baudrate()
51 prop = fdt_getprop(dtb, node, "stdout-path", NULL); in get_baudrate()
84 static uint32_t get_node_status(void *dtb, int node) in get_node_status() argument
89 status_cell = fdt_getprop(dtb, node, "status", NULL); in get_node_status()
107 static uint32_t fdt_add_uart_info(dt_uart_info_t *info, int node, void *dtb) in fdt_add_uart_info() argument
113 com = fdt_getprop(dtb, node, "compatible", NULL); in fdt_add_uart_info()
122 ret = fdt_get_reg_props_by_index(dtb, node, 0, &base_addr, NULL); in fdt_add_uart_info()
131 info->status = get_node_status(dtb, node); in fdt_add_uart_info()
[all …]
/trusted-firmware-a-3.7.0/include/common/
Dfdt_wrappers.h18 int fdt_read_uint32(const void *dtb, int node, const char *prop_name,
20 uint32_t fdt_read_uint32_default(const void *dtb, int node,
22 int fdt_read_uint64(const void *dtb, int node, const char *prop_name,
24 int fdt_read_uint32_array(const void *dtb, int node, const char *prop_name,
26 int fdtw_read_string(const void *dtb, int node, const char *prop,
28 int fdtw_read_uuid(const void *dtb, int node, const char *prop,
30 int fdtw_write_inplace_cells(void *dtb, int node, const char *prop,
32 int fdtw_read_bytes(const void *dtb, int node, const char *prop,
34 int fdtw_write_inplace_bytes(void *dtb, int node, const char *prop,
36 int fdt_get_reg_props_by_index(const void *dtb, int node, int index,
[all …]
Dfdt_fixup.h28 int fdt_add_reserved_memory(void *dtb, const char *node_name,
30 int fdt_add_cpus_node(void *dtb, unsigned int afflv0,
32 int fdt_add_cpu_idle_states(void *dtb, const struct psci_cpu_idle_state *state);
33 int fdt_adjust_gic_redist(void *dtb, unsigned int nr_cores, uintptr_t gicr_base,
35 int fdt_set_mac_address(void *dtb, unsigned int ethernet_idx,
/trusted-firmware-a-3.7.0/common/
Dfdt_fixup.c196 int fdt_add_reserved_memory(void *dtb, const char *node_name, in fdt_add_reserved_memory() argument
199 int offs = fdt_path_offset(dtb, "/reserved-memory"); in fdt_add_reserved_memory()
204 ac = fdt_address_cells(dtb, 0); in fdt_add_reserved_memory()
205 sc = fdt_size_cells(dtb, 0); in fdt_add_reserved_memory()
207 offs = fdt_add_subnode(dtb, 0, "reserved-memory"); in fdt_add_reserved_memory()
211 fdt_setprop_u32(dtb, offs, "#address-cells", ac); in fdt_add_reserved_memory()
212 fdt_setprop_u32(dtb, offs, "#size-cells", sc); in fdt_add_reserved_memory()
213 fdt_setprop(dtb, offs, "ranges", NULL, 0); in fdt_add_reserved_memory()
228 offs = fdt_add_subnode(dtb, offs, node_name); in fdt_add_reserved_memory()
229 fdt_setprop(dtb, offs, "no-map", NULL, 0); in fdt_add_reserved_memory()
[all …]
Dfdt_wrappers.c26 int fdt_read_uint32_array(const void *dtb, int node, const char *prop_name, in fdt_read_uint32_array() argument
32 assert(dtb != NULL); in fdt_read_uint32_array()
38 prop = fdt_getprop(dtb, node, prop_name, &value_len); in fdt_read_uint32_array()
57 int fdt_read_uint32(const void *dtb, int node, const char *prop_name, in fdt_read_uint32() argument
60 return fdt_read_uint32_array(dtb, node, prop_name, 1, value); in fdt_read_uint32()
63 uint32_t fdt_read_uint32_default(const void *dtb, int node, in fdt_read_uint32_default() argument
67 int err = fdt_read_uint32(dtb, node, prop_name, &ret); in fdt_read_uint32_default()
76 int fdt_read_uint64(const void *dtb, int node, const char *prop_name, in fdt_read_uint64() argument
82 ret = fdt_read_uint32_array(dtb, node, prop_name, 2, array); in fdt_read_uint64()
96 int fdtw_read_bytes(const void *dtb, int node, const char *prop, in fdtw_read_bytes() argument
[all …]
/trusted-firmware-a-3.7.0/plat/imx/imx8m/
Dimx8m_dyn_cfg_helpers.c27 void *dtb = (void *)dt_base; in imx8m_event_log_fdt_init_overlay() local
29 ret = fdt_create_empty_tree(dtb, dt_size); in imx8m_event_log_fdt_init_overlay()
36 offset = fdt_path_offset(dtb, "/"); in imx8m_event_log_fdt_init_overlay()
43 offset = fdt_add_subnode(dtb, offset, "fragment@0"); in imx8m_event_log_fdt_init_overlay()
50 ret = fdt_setprop_string(dtb, offset, "target-path", "/"); in imx8m_event_log_fdt_init_overlay()
57 offset = fdt_add_subnode(dtb, offset, "__overlay__"); in imx8m_event_log_fdt_init_overlay()
64 offset = fdt_add_subnode(dtb, offset, "tpm_event_log"); in imx8m_event_log_fdt_init_overlay()
71 ret = fdt_setprop_string(dtb, offset, "compatible", in imx8m_event_log_fdt_init_overlay()
79 ret = fdt_setprop_u64(dtb, offset, "tpm_event_log_addr", 0); in imx8m_event_log_fdt_init_overlay()
86 ret = fdt_setprop_u32(dtb, offset, "tpm_event_log_size", 0); in imx8m_event_log_fdt_init_overlay()
[all …]
/trusted-firmware-a-3.7.0/plat/qemu/qemu_sbsa/
Dsbsa_sip_svc.c38 void read_platform_config_from_dt(void *dtb) in read_platform_config_from_dt() argument
57 node = fdt_path_offset(dtb, "/intc"); in read_platform_config_from_dt()
62 data = fdt_getprop(dtb, node, "reg", NULL); in read_platform_config_from_dt()
67 err = fdt_get_reg_props_by_index(dtb, node, 0, &gicd_base, NULL); in read_platform_config_from_dt()
74 err = fdt_get_reg_props_by_index(dtb, node, 1, &gicr_base, NULL); in read_platform_config_from_dt()
83 node = fdt_path_offset(dtb, "/intc/its"); in read_platform_config_from_dt()
88 err = fdt_get_reg_props_by_index(dtb, node, 0, &gic_its_addr, NULL); in read_platform_config_from_dt()
96 void read_platform_version(void *dtb) in read_platform_version() argument
100 node = fdt_path_offset(dtb, "/"); in read_platform_version()
102 platform_version_major = fdt32_ld(fdt_getprop(dtb, node, in read_platform_version()
[all …]
/trusted-firmware-a-3.7.0/plat/rpi/rpi4/
Drpi4_bl31_setup.c213 static void remove_spintable_memreserve(void *dtb) in remove_spintable_memreserve() argument
216 int regions = fdt_num_mem_rsv(dtb); in remove_spintable_memreserve()
220 if (fdt_get_mem_rsv(dtb, i, &addr, &size) != 0) { in remove_spintable_memreserve()
236 fdt_del_mem_rsv(dtb, i); in remove_spintable_memreserve()
246 void *dtb = (void *)rpi4_get_dtb_address(); in rpi4_prepare_dtb() local
251 if (fdt_check_header(dtb) != 0) in rpi4_prepare_dtb()
254 ret = fdt_open_into(dtb, dtb, 0x100000); in rpi4_prepare_dtb()
256 ERROR("Invalid Device Tree at %p: error %d\n", dtb, ret); in rpi4_prepare_dtb()
260 if (dt_add_psci_node(dtb)) { in rpi4_prepare_dtb()
265 if (dt_add_psci_cpu_enable_methods(dtb)) { in rpi4_prepare_dtb()
[all …]
/trusted-firmware-a-3.7.0/plat/qemu/qemu/
Dqemu_helpers.c36 void *dtb = (void *)config_base; in qemu_set_tee_fw_info() local
41 offs = fdtw_find_or_add_subnode(dtb, 0, "tpm-event-log"); in qemu_set_tee_fw_info()
47 if (fdt_appendprop(dtb, offs, "compatible", compatible, in qemu_set_tee_fw_info()
52 err = fdt_setprop(dtb, offs, DTB_PROP_HW_SM_LOG_ADDR, &sec_base, 8); in qemu_set_tee_fw_info()
58 err = fdt_setprop(dtb, offs, DTB_PROP_HW_LOG_SIZE, &sz, 4); in qemu_set_tee_fw_info()
84 void *dtb = (void *)config_base; in qemu_set_event_log_info() local
90 err = fdt_open_into(dtb, dtb, PLAT_QEMU_DT_MAX_SIZE); in qemu_set_event_log_info()
92 ERROR("Invalid Device Tree at %p: error %d\n", dtb, err); in qemu_set_event_log_info()
102 err = fdt_check_header(dtb); in qemu_set_event_log_info()
112 node = fdt_node_offset_by_compatible(dtb, -1, compatible_tpm); in qemu_set_event_log_info()
[all …]
/trusted-firmware-a-3.7.0/plat/arm/common/
Darm_dyn_cfg_helpers.c49 int arm_dyn_tb_fw_cfg_init(void *dtb, int *node) in arm_dyn_tb_fw_cfg_init() argument
51 assert(dtb != NULL); in arm_dyn_tb_fw_cfg_init()
55 if (fdt_check_header(dtb) != 0) { in arm_dyn_tb_fw_cfg_init()
61 *node = fdt_node_offset_by_compatible(dtb, -1, "arm,tb_fw"); in arm_dyn_tb_fw_cfg_init()
85 int arm_set_dtb_mbedtls_heap_info(void *dtb, void *heap_addr, size_t heap_size) in arm_set_dtb_mbedtls_heap_info() argument
93 int err = arm_dyn_tb_fw_cfg_init(dtb, &dtb_root); in arm_set_dtb_mbedtls_heap_info()
107 err = fdtw_write_inplace_cells(dtb, dtb_root, in arm_set_dtb_mbedtls_heap_info()
115 err = fdtw_write_inplace_cells(dtb, dtb_root, in arm_set_dtb_mbedtls_heap_info()
141 void *dtb = (void *)config_base; in arm_set_event_log_info() local
151 err = fdt_check_header(dtb); in arm_set_event_log_info()
[all …]
Darm_dyn_cfg.c92 tb_fw_config_info = FCONF_GET_PROPERTY(dyn_cfg, dtb, TB_FW_CONFIG_ID); in arm_bl1_set_mbedtls_heap()
99 void *dtb = (void *)tb_fw_cfg_dtb; in arm_bl1_set_mbedtls_heap() local
101 err = arm_set_dtb_mbedtls_heap_info(dtb, in arm_bl1_set_mbedtls_heap()
117 flush_dcache_range(tb_fw_cfg_dtb, fdt_totalsize(dtb)); in arm_bl1_set_mbedtls_heap()
154 dtb_info = FCONF_GET_PROPERTY(dyn_cfg, dtb, config_ids[i]); in arm_bl2_dyn_cfg_init()
/trusted-firmware-a-3.7.0/lib/fconf/
Dfconf_cot_getter.c191 static int get_oid(const void *dtb, int node, const char *prop, char **oid) in get_oid() argument
196 rc = fdt_read_uint32(dtb, node, prop, &phandle); in get_oid()
201 node = fdt_node_offset_by_phandle(dtb, phandle); in get_oid()
207 rc = fdtw_read_string(dtb, node, "oid", *oid, MAX_OID_NAME_LEN); in get_oid()
224 static int populate_and_set_auth_methods(const void *dtb, int node, in populate_and_set_auth_methods() argument
243 rc = get_oid(dtb, node, "signing-key", &oid); in populate_and_set_auth_methods()
252 rc = get_oid(dtb, node, "hash", &oid); in populate_and_set_auth_methods()
267 rc = get_oid(dtb, node, "antirollback-counter", &oid); in populate_and_set_auth_methods()
287 static int get_parent_img_id(const void *dtb, int node, in get_parent_img_id() argument
293 err = fdt_read_uint32(dtb, node, "parent", &phandle); in get_parent_img_id()
[all …]
Dfconf_dyn_cfg_getter.c82 const void *dtb = (void *)config; in fconf_populate_dtb_registry() local
94 uint32_t config_max_size = fdt_totalsize(dtb); in fconf_populate_dtb_registry()
100 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_dtb_registry()
106 fdt_for_each_subnode(child, dtb, node) { in fconf_populate_dtb_registry()
113 rc = fdt_read_uint64(dtb, child, "load-address", &val64); in fconf_populate_dtb_registry()
120 rc = fdt_read_uint32(dtb, child, "max-size", &config_max_size); in fconf_populate_dtb_registry()
126 rc = fdt_read_uint32(dtb, child, "id", &config_id); in fconf_populate_dtb_registry()
137 rc = fdt_read_uint64(dtb, child, "secondary-load-address", in fconf_populate_dtb_registry()
Dfconf_tbbr_getter.c24 const void *dtb = (void *)config; in fconf_populate_tbbr_dyn_config() local
28 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_tbbr_dyn_config()
36 err = fdt_read_uint32(dtb, node, "disable_auth", in fconf_populate_tbbr_dyn_config()
58 err = fdt_read_uint64(dtb, node, "mbedtls_heap_addr", &val64); in fconf_populate_tbbr_dyn_config()
66 err = fdt_read_uint32(dtb, node, "mbedtls_heap_size", &val32); in fconf_populate_tbbr_dyn_config()
/trusted-firmware-a-3.7.0/plat/arm/board/fvp/fconf/
Dfconf_nt_config_getter.c23 const void *dtb = (const void *)config; in fconf_populate_event_log_config() local
31 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_event_log_config()
40 err = fdtw_read_cells(dtb, node, "tpm_event_log_sm_addr", 2, in fconf_populate_event_log_config()
47 err = fdtw_read_cells(dtb, node, in fconf_populate_event_log_config()
54 err = fdtw_read_cells(dtb, node, in fconf_populate_event_log_config()
/trusted-firmware-a-3.7.0/plat/arm/common/fconf/
Dfconf_nv_cntr_getter.c30 const void *dtb = (void *)config; in fconf_populate_nv_cntrs() local
33 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_nv_cntrs()
40 fdt_for_each_subnode(child, dtb, node) { in fconf_populate_nv_cntrs()
42 rc = fdt_read_uint32(dtb, child, "id", &id); in fconf_populate_nv_cntrs()
50 rc = fdt_get_reg_props_by_index(dtb, child, 0, &reg, NULL); in fconf_populate_nv_cntrs()
Dfconf_sdei_getter.c30 const void *dtb = (void *)config; in fconf_populate_sdei_dyn_config() local
33 node = fdt_node_offset_by_compatible(dtb, -1, "arm,sdei-1.0"); in fconf_populate_sdei_dyn_config()
40 err = fdt_read_uint32(dtb, node, "private_event_count", in fconf_populate_sdei_dyn_config()
56 err = fdt_read_uint32_array(dtb, node, "private_events", in fconf_populate_sdei_dyn_config()
71 err = fdt_read_uint32(dtb, node, "shared_event_count", in fconf_populate_sdei_dyn_config()
86 err = fdt_read_uint32_array(dtb, node, "shared_events", in fconf_populate_sdei_dyn_config()
Darm_fconf_sp.c45 const void *dtb = (void *)config; in fconf_populate_arm_sp() local
50 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_arm_sp()
56 fdt_for_each_subnode(sp_node, dtb, node) { in fconf_populate_arm_sp()
70 err = fdtw_read_uuid(dtb, sp_node, "uuid", 16, in fconf_populate_arm_sp()
80 err = fdt_read_uint32(dtb, sp_node, "load-address", &val32); in fconf_populate_arm_sp()
106 fdtw_read_string(dtb, sp_node, "owner", in fconf_populate_arm_sp()
/trusted-firmware-a-3.7.0/docs/resources/diagrams/plantuml/
Dfconf_bl2_populate.puml31 fconf -> fconf_dyn_cfg_getter: populate_dtb_registry(uintptr_t dtb)
32 note over fconf_dyn_cfg_getter: read dtb_registry properties from dtb
34 arm_bl2_setup -> fconf: FCONF_GET_PROPERTY(dyn_cfg, dtb, TB_FW_CONFIG_ID)
38 fconf -> fconf_tbbr_getter: fconf_populate_tbbr_dyn_config(uintptr_t dtb)
39 note over fconf_tbbr_getter: read tbbr properties from dtb
40 fconf -> arm_fconf_io: fconf_populate_arm_io_policies(uintptr_t dtb)
41 note over arm_fconf_io: read arm io propeties from dtb
Dfip-secure-partitions.puml74 artifact tb_fw_config.dtb
96 artifact signed_tb_fw_config.dtb [
97 tb_fw_config.dtb (signed)
130 tb_fw_config.dtb (signed)
158 dtc --> tb_fw_config.dtb
159 tb_fw_config.dtb --> cert_create
160 cert_create --> signed_tb_fw_config.dtb
162 signed_tb_fw_config.dtb --> fiptool
/trusted-firmware-a-3.7.0/plat/rpi/rpi3/
Drpi3_bl31_setup.c163 void *dtb = (void *)RPI3_PRELOADED_DTB_BASE; in rpi3_dtb_add_mem_rsv() local
168 if (fdt_check_header(dtb) != 0) in rpi3_dtb_add_mem_rsv()
171 regions = fdt_num_mem_rsv(dtb); in rpi3_dtb_add_mem_rsv()
185 if (fdt_get_mem_rsv(dtb, i, &addr, &size) != 0) in rpi3_dtb_add_mem_rsv()
193 rc = fdt_del_mem_rsv(dtb, i); in rpi3_dtb_add_mem_rsv()
210 rc = fdt_add_mem_rsv(dtb, SEC_SRAM_BASE, SEC_SRAM_SIZE); in rpi3_dtb_add_mem_rsv()
/trusted-firmware-a-3.7.0/plat/arm/board/arm_fpga/
Dbuild_axf.ld.S23 INPUT(./fdts/arm_fpga.dtb)
39 .dtb (FPGA_PRELOADED_DTB_BASE): {
41 *arm_fpga.dtb
/trusted-firmware-a-3.7.0/include/plat/arm/common/
Darm_dyn_cfg_helpers.h13 int arm_dyn_tb_fw_cfg_init(void *dtb, int *node);
14 int arm_set_dtb_mbedtls_heap_info(void *dtb, void *heap_addr,
/trusted-firmware-a-3.7.0/plat/st/stm32mp2/
Dplatform.mk14 DTB_FILE_NAME ?= stm32mp257f-ev1.dtb
31 FDT_SOURCES := $(addprefix ${BUILD_PLAT}/fdts/, $(patsubst %.dtb,%-bl2.dts,$(DTB_FILE_NAME)))
34 STM32_TF_STM32 := $(addprefix ${BUILD_PLAT}/tf-a-, $(patsubst %.dtb,%.stm32,$(DTB_FILE_NAME)))

1234