/trusted-firmware-a-3.7.0/lib/libfdt/ |
D | fdt_sw.c | 13 static int fdt_sw_probe_(void *fdt) in fdt_sw_probe_() argument 16 if (fdt_magic(fdt) == FDT_MAGIC) in fdt_sw_probe_() 18 else if (fdt_magic(fdt) != FDT_SW_MAGIC) in fdt_sw_probe_() 25 #define FDT_SW_PROBE(fdt) \ argument 28 if ((err = fdt_sw_probe_(fdt)) != 0) \ 38 static int fdt_sw_probe_memrsv_(void *fdt) in fdt_sw_probe_memrsv_() argument 40 int err = fdt_sw_probe_(fdt); in fdt_sw_probe_memrsv_() 44 if (!can_assume(VALID_INPUT) && fdt_off_dt_strings(fdt) != 0) in fdt_sw_probe_memrsv_() 49 #define FDT_SW_PROBE_MEMRSV(fdt) \ argument 52 if ((err = fdt_sw_probe_memrsv_(fdt)) != 0) \ [all …]
|
D | fdt_rw.c | 13 static int fdt_blocks_misordered_(const void *fdt, in fdt_blocks_misordered_() argument 16 return (fdt_off_mem_rsvmap(fdt) < FDT_ALIGN(sizeof(struct fdt_header), 8)) in fdt_blocks_misordered_() 17 || (fdt_off_dt_struct(fdt) < in fdt_blocks_misordered_() 18 (fdt_off_mem_rsvmap(fdt) + mem_rsv_size)) in fdt_blocks_misordered_() 19 || (fdt_off_dt_strings(fdt) < in fdt_blocks_misordered_() 20 (fdt_off_dt_struct(fdt) + struct_size)) in fdt_blocks_misordered_() 21 || (fdt_totalsize(fdt) < in fdt_blocks_misordered_() 22 (fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt))); in fdt_blocks_misordered_() 25 static int fdt_rw_probe_(void *fdt) in fdt_rw_probe_() argument 29 FDT_RO_PROBE(fdt); in fdt_rw_probe_() [all …]
|
D | fdt_ro.c | 13 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 34 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) in fdt_get_string() argument 43 s = (const char *)fdt + fdt_off_dt_strings(fdt) + stroffset; in fdt_get_string() 49 totalsize = fdt_ro_probe_(fdt); in fdt_get_string() 55 absoffset = stroffset + fdt_off_dt_strings(fdt); in fdt_get_string() 60 if (fdt_magic(fdt) == FDT_MAGIC) { in fdt_get_string() 63 if (can_assume(LATEST) || fdt_version(fdt) >= 17) { in fdt_get_string() 64 if ((unsigned)stroffset >= fdt_size_dt_strings(fdt)) in fdt_get_string() 66 if ((fdt_size_dt_strings(fdt) - stroffset) < len) in fdt_get_string() [all …]
|
D | fdt.c | 18 int32_t fdt_ro_probe_(const void *fdt) in fdt_ro_probe_() argument 20 uint32_t totalsize = fdt_totalsize(fdt); in fdt_ro_probe_() 26 if ((uintptr_t)fdt & 7) in fdt_ro_probe_() 29 if (fdt_magic(fdt) == FDT_MAGIC) { in fdt_ro_probe_() 32 if (fdt_version(fdt) < FDT_FIRST_SUPPORTED_VERSION) in fdt_ro_probe_() 34 if (fdt_last_comp_version(fdt) > in fdt_ro_probe_() 38 } else if (fdt_magic(fdt) == FDT_SW_MAGIC) { in fdt_ro_probe_() 40 if (!can_assume(VALID_INPUT) && fdt_size_dt_struct(fdt) == 0) in fdt_ro_probe_() 83 size_t fdt_header_size(const void *fdt) in fdt_header_size() argument 86 fdt_header_size_(fdt_version(fdt)); in fdt_header_size() [all …]
|
D | libfdt_internal.h | 13 int32_t fdt_ro_probe_(const void *fdt); 14 #define FDT_RO_PROBE(fdt) \ argument 17 if ((totalsize_ = fdt_ro_probe_(fdt)) < 0) \ 21 int fdt_check_node_offset_(const void *fdt, int offset); 22 int fdt_check_prop_offset_(const void *fdt, int offset); 24 int fdt_node_end_offset_(void *fdt, int nodeoffset); 26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) in fdt_offset_ptr_() argument 28 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in fdt_offset_ptr_() 31 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() argument 33 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr_w_() [all …]
|
D | fdt_wip.c | 13 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, in fdt_setprop_inplace_namelen_partial() argument 21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial() 33 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument 39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace() 46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace() 59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument 64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property() 73 int fdt_node_end_offset_(void *fdt, int offset) in fdt_node_end_offset_() argument 78 offset = fdt_next_node(fdt, offset, &depth); in fdt_node_end_offset_() 83 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument [all …]
|
D | fdt_addresses.c | 14 static int fdt_cells(const void *fdt, int nodeoffset, const char *name) in fdt_cells() argument 20 c = fdt_getprop(fdt, nodeoffset, name, &len); in fdt_cells() 34 int fdt_address_cells(const void *fdt, int nodeoffset) in fdt_address_cells() argument 38 val = fdt_cells(fdt, nodeoffset, "#address-cells"); in fdt_address_cells() 46 int fdt_size_cells(const void *fdt, int nodeoffset) in fdt_size_cells() argument 50 val = fdt_cells(fdt, nodeoffset, "#size-cells"); in fdt_size_cells() 57 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, in fdt_appendprop_addrrange() argument 63 ret = fdt_address_cells(fdt, parent); in fdt_appendprop_addrrange() 68 ret = fdt_size_cells(fdt, parent); in fdt_appendprop_addrrange() 99 return fdt_appendprop(fdt, nodeoffset, name, data, in fdt_appendprop_addrrange()
|
D | fdt_overlay.c | 43 int fdt_overlay_target_offset(const void *fdt, const void *fdto, in fdt_overlay_target_offset() argument 60 ret = fdt_path_offset(fdt, path); in fdt_overlay_target_offset() 64 ret = fdt_node_offset_by_phandle(fdt, phandle); in fdt_overlay_target_offset() 101 static int overlay_phandle_add_offset(void *fdt, int node, in overlay_phandle_add_offset() argument 108 val = fdt_getprop(fdt, node, name, &len); in overlay_phandle_add_offset() 123 return fdt_setprop_inplace_u32(fdt, node, name, adj_val); in overlay_phandle_add_offset() 353 static int overlay_fixup_one_phandle(void *fdt, void *fdto, in overlay_fixup_one_phandle() argument 368 symbol_path = fdt_getprop(fdt, symbols_off, label, in overlay_fixup_one_phandle() 373 symbol_off = fdt_path_offset(fdt, symbol_path); in overlay_fixup_one_phandle() 377 phandle = fdt_get_phandle(fdt, symbol_off); in overlay_fixup_one_phandle() [all …]
|
/trusted-firmware-a-3.7.0/include/lib/libfdt/ |
D | libfdt.h | 120 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen); 122 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) in fdt_offset_ptr_w() argument 124 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen); in fdt_offset_ptr_w() 127 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset); 193 int fdt_next_node(const void *fdt, int offset, int *depth); 202 int fdt_first_subnode(const void *fdt, int offset); 215 int fdt_next_subnode(const void *fdt, int offset); 239 #define fdt_for_each_subnode(node, fdt, parent) \ argument 240 for (node = fdt_first_subnode(fdt, parent); \ 242 node = fdt_next_subnode(fdt, node)) [all …]
|
/trusted-firmware-a-3.7.0/plat/arm/board/fvp/ |
D | jmptbl.i | 15 # fdt fdt_getprop_namelen patch 18 fdt fdt_getprop 19 fdt fdt_get_property 20 fdt fdt_getprop_namelen 21 fdt fdt_setprop_inplace 22 fdt fdt_check_header 23 fdt fdt_node_offset_by_compatible 24 fdt fdt_node_offset_by_prop_value 25 fdt fdt_setprop_inplace_namelen_partial 26 fdt fdt_first_subnode [all …]
|
/trusted-firmware-a-3.7.0/drivers/st/clk/ |
D | stm32mp_clkfunc.c | 29 void *fdt; in fdt_osc_read_freq() local 31 if (fdt_get_address(&fdt) == 0) { in fdt_osc_read_freq() 35 node = fdt_path_offset(fdt, "/clocks"); in fdt_osc_read_freq() 40 fdt_for_each_subnode(subnode, fdt, node) { in fdt_osc_read_freq() 44 cchar = fdt_get_name(fdt, subnode, &ret); in fdt_osc_read_freq() 53 cuint = fdt_getprop(fdt, subnode, "clock-frequency", in fdt_osc_read_freq() 79 void *fdt; in fdt_clk_read_bool() local 81 if (fdt_get_address(&fdt) == 0) { in fdt_clk_read_bool() 85 node = fdt_path_offset(fdt, "/clocks"); in fdt_clk_read_bool() 90 fdt_for_each_subnode(subnode, fdt, node) { in fdt_clk_read_bool() [all …]
|
/trusted-firmware-a-3.7.0/plat/allwinner/common/ |
D | sunxi_prepare_dtb.c | 15 void sunxi_prepare_dtb(void *fdt) in sunxi_prepare_dtb() argument 19 if (fdt == NULL || fdt_check_header(fdt) != 0) { in sunxi_prepare_dtb() 23 ret = fdt_open_into(fdt, fdt, 0x10000); in sunxi_prepare_dtb() 25 ERROR("Preparing devicetree at %p: error %d\n", fdt, ret); in sunxi_prepare_dtb() 31 if (fdt_add_reserved_memory(fdt, "tf-a@40000000", BL31_BASE, in sunxi_prepare_dtb() 38 ret = fdt_add_cpu_idle_states(fdt, sunxi_idle_states); in sunxi_prepare_dtb() 44 ret = fdt_pack(fdt); in sunxi_prepare_dtb() 47 fdt, ret); in sunxi_prepare_dtb() 50 clean_dcache_range((uintptr_t)fdt, fdt_blob_size(fdt)); in sunxi_prepare_dtb()
|
/trusted-firmware-a-3.7.0/plat/arm/board/juno/ |
D | jmptbl.i | 15 # fdt fdt_getprop_namelen patch 18 fdt fdt_getprop 19 fdt fdt_get_property 20 fdt fdt_getprop_namelen 21 fdt fdt_setprop_inplace 22 fdt fdt_check_header 23 fdt fdt_node_offset_by_compatible 24 fdt fdt_setprop_inplace_namelen_partial 25 fdt fdt_first_subnode 26 fdt fdt_next_subnode [all …]
|
/trusted-firmware-a-3.7.0/plat/arm/board/arm_fpga/ |
D | fpga_bl31_setup.c | 163 const void *fdt = (void *)(uintptr_t)FPGA_PRELOADED_DTB_BASE; in fpga_get_system_frequency() local 170 node = fdt_node_offset_by_compatible(fdt, 0, "arm,armv8-timer"); in fpga_get_system_frequency() 174 err = fdt_read_uint32(fdt, node, "clock-frequency", &freq); in fpga_get_system_frequency() 180 node = fdt_node_offset_by_compatible(fdt, 0, "arm,pl011"); in fpga_get_system_frequency() 185 err = fdt_get_reg_props_by_index(fdt, node, 0, in fpga_get_system_frequency() 218 static void fpga_dtb_update_clock(void *fdt, unsigned int freq) in fpga_dtb_update_clock() argument 224 node = fdt_node_offset_by_compatible(fdt, 0, "arm,pl011"); in fpga_dtb_update_clock() 231 err = fdt_read_uint32(fdt, node, "clocks", &phandle); in fpga_dtb_update_clock() 238 node = fdt_node_offset_by_phandle(fdt, phandle); in fpga_dtb_update_clock() 245 err = fdt_setprop_inplace(fdt, node, in fpga_dtb_update_clock() [all …]
|
/trusted-firmware-a-3.7.0/drivers/allwinner/axp/ |
D | common.c | 58 static int fdt_get_regulator_millivolt(const void *fdt, int node) in fdt_get_regulator_millivolt() argument 63 prop = fdt_getprop(fdt, node, "regulator-min-microvolt", NULL); in fdt_get_regulator_millivolt() 68 prop = fdt_getprop(fdt, node, "regulator-max-microvolt", NULL); in fdt_get_regulator_millivolt() 78 static int setup_regulator(const void *fdt, int node, in setup_regulator() argument 84 mvolt = fdt_get_regulator_millivolt(fdt, node); in setup_regulator() 101 static bool should_enable_regulator(const void *fdt, int node) in should_enable_regulator() argument 103 if (!fdt_node_is_enabled(fdt, node)) { in should_enable_regulator() 106 if (fdt_getprop(fdt, node, "phandle", NULL) != NULL) { in should_enable_regulator() 109 if (fdt_getprop(fdt, node, "regulator-always-on", NULL) != NULL) { in should_enable_regulator() 115 static bool board_uses_usb0_host_mode(const void *fdt) in board_uses_usb0_host_mode() argument [all …]
|
/trusted-firmware-a-3.7.0/plat/st/common/ |
D | stm32mp_dt.c | 19 static void *fdt; variable 31 fdt = (void *)dt_addr; in dt_open_and_check() 44 if (fdt == NULL) { in fdt_get_address() 48 *fdt_addr = fdt; in fdt_get_address() 62 cchar = fdt_get_name(fdt, node, &len); in fdt_check_node() 75 cchar = fdt_getprop(fdt, node, "status", NULL); in fdt_get_status() 81 cchar = fdt_getprop(fdt, node, "secure-status", NULL); in fdt_get_status() 103 parent = fdt_parent_offset(fdt, node); in fdt_get_node_parent_address_cells() 108 return fdt_address_cells(fdt, parent); in fdt_get_node_parent_address_cells() 121 node = fdt_get_stdout_node_offset(fdt); in dt_set_stdout_pinctrl() [all …]
|
/trusted-firmware-a-3.7.0/plat/arm/board/morello/ |
D | morello_image_load.c | 51 void *fdt; in plat_morello_append_config_node() local 63 fdt = (void *)(mem_params->image_info.image_base); in plat_morello_append_config_node() 66 if (fdt_check_header(fdt) != 0) { in plat_morello_append_config_node() 71 nodeoffset_plat = fdt_subnode_offset(fdt, 0, "platform-info"); in plat_morello_append_config_node() 77 nodeoffset_fw = fdt_subnode_offset(fdt, 0, "firmware-version"); in plat_morello_append_config_node() 84 err = fdt_setprop_u64(fdt, nodeoffset_plat, "remote-ddr-size", in plat_morello_append_config_node() 91 err = fdt_setprop_u32(fdt, nodeoffset_plat, "remote-chip-count", in plat_morello_append_config_node() 98 err = fdt_setprop_u32(fdt, nodeoffset_plat, "multichip-mode", in plat_morello_append_config_node() 105 err = fdt_setprop_u32(fdt, nodeoffset_plat, "scc-config", in plat_morello_append_config_node() 116 err = fdt_setprop_u32(fdt, nodeoffset_fw, "mcc-fw-version", in plat_morello_append_config_node() [all …]
|
/trusted-firmware-a-3.7.0/plat/arm/common/fconf/ |
D | fconf_ethosn_getter.c | 23 static int fdt_node_read_reserved_memory_addr(const void *fdt, in fdt_node_read_reserved_memory_addr() argument 32 err = fdt_read_uint32(fdt, dev_node, "memory-region", &phandle); in fdt_node_read_reserved_memory_addr() 38 mem_node = fdt_node_offset_by_phandle(fdt, phandle); in fdt_node_read_reserved_memory_addr() 44 err = fdt_get_reg_props_by_index(fdt, mem_node, 0U, &addr, NULL); in fdt_node_read_reserved_memory_addr() 55 static bool fdt_node_has_reserved_memory(const void *fdt, int dev_node) in fdt_node_has_reserved_memory() argument 57 return fdt_get_property(fdt, dev_node, "memory-region", NULL) != NULL; in fdt_node_has_reserved_memory() 60 static int fdt_node_get_iommus_stream_id(const void *fdt, int node, uint32_t *stream_id) in fdt_node_get_iommus_stream_id() argument 65 err = fdt_read_uint32_array(fdt, node, "iommus", 2U, iommus_array); in fdt_node_get_iommus_stream_id() 74 static int fdt_node_populate_sub_allocators(const void *fdt, in fdt_node_populate_sub_allocators() argument 84 fdt_for_each_subnode(sub_node, fdt, alloc_node) { in fdt_node_populate_sub_allocators() [all …]
|
/trusted-firmware-a-3.7.0/plat/arm/board/n1sdp/ |
D | n1sdp_image_load.c | 47 void *fdt; in plat_n1sdp_append_config_node() local 56 fdt = (void *)(mem_params->image_info.image_base); in plat_n1sdp_append_config_node() 59 if (fdt_check_header(fdt) != 0) { in plat_n1sdp_append_config_node() 64 nodeoffset = fdt_subnode_offset(fdt, 0, "platform-info"); in plat_n1sdp_append_config_node() 70 err = fdt_setprop_u32(fdt, nodeoffset, "multichip-mode", in plat_n1sdp_append_config_node() 77 err = fdt_setprop_u32(fdt, nodeoffset, "secondary-chip-count", in plat_n1sdp_append_config_node() 84 err = fdt_setprop_u32(fdt, nodeoffset, "local-ddr-size", in plat_n1sdp_append_config_node() 91 err = fdt_setprop_u32(fdt, nodeoffset, "remote-ddr-size", in plat_n1sdp_append_config_node() 98 flush_dcache_range((uintptr_t)fdt, mem_params->image_info.image_size); in plat_n1sdp_append_config_node()
|
/trusted-firmware-a-3.7.0/lib/fconf/ |
D | fconf_amu_getter.c | 27 static int fconf_populate_amu_cpu_amu(const void *fdt, int parent, in fconf_populate_amu_cpu_amu() argument 33 fdt_for_each_subnode(node, fdt, parent) { in fconf_populate_amu_cpu_amu() 40 name = fdt_get_name(fdt, node, &len); in fconf_populate_amu_cpu_amu() 45 ret = fdt_get_reg_props_by_index(fdt, node, 0, &idx, NULL); in fconf_populate_amu_cpu_amu() 50 value = fdt_getprop(fdt, node, "enable-at-el3", &len); in fconf_populate_amu_cpu_amu() 73 static int fconf_populate_amu_cpu(const void *fdt, int node, uintptr_t mpidr) in fconf_populate_amu_cpu() argument 81 ret = fdt_read_uint32(fdt, node, "amu", &amu_phandle); in fconf_populate_amu_cpu() 90 node = fdt_node_offset_by_phandle(fdt, amu_phandle); in fconf_populate_amu_cpu() 102 return fconf_populate_amu_cpu_amu(fdt, node, amu); in fconf_populate_amu_cpu()
|
/trusted-firmware-a-3.7.0/plat/common/ |
D | plat_spmd_manifest.c | 27 const void *fdt, in manifest_parse_attribute() argument 33 assert((attr != NULL) && (fdt != NULL)); in manifest_parse_attribute() 35 rc = fdt_read_uint32(fdt, node, "maj_ver", &attr->major_version); in manifest_parse_attribute() 42 rc = fdt_read_uint32(fdt, node, "min_ver", &attr->minor_version); in manifest_parse_attribute() 49 rc = fdt_read_uint32(fdt, node, "spmc_id", &val32); in manifest_parse_attribute() 57 rc = fdt_read_uint32(fdt, node, "exec_state", &attr->exec_state); in manifest_parse_attribute() 63 rc = fdt_read_uint32(fdt, node, "binary_size", &attr->binary_size); in manifest_parse_attribute() 69 rc = fdt_read_uint64(fdt, node, "load_address", &attr->load_address); in manifest_parse_attribute() 75 rc = fdt_read_uint64(fdt, node, "entrypoint", &attr->entrypoint); in manifest_parse_attribute() 95 const void *fdt, in manifest_parse_root() argument [all …]
|
/trusted-firmware-a-3.7.0/plat/arm/css/sgi/ |
D | sgi_image_load.c | 79 void *fdt; in plat_sgi_append_config_node() local 90 fdt = (void *)(mem_params->image_info.image_base); in plat_sgi_append_config_node() 93 if (fdt_check_header(fdt) != 0) { in plat_sgi_append_config_node() 98 nodeoffset = fdt_subnode_offset(fdt, 0, "system-id"); in plat_sgi_append_config_node() 105 err = fdt_setprop_u32(fdt, nodeoffset, "platform-id", platid); in plat_sgi_append_config_node() 112 err = fdt_setprop_u32(fdt, nodeoffset, "config-id", platcfg); in plat_sgi_append_config_node() 119 err = fdt_setprop_u32(fdt, nodeoffset, "multi-chip-mode", platcfg); in plat_sgi_append_config_node() 127 err = fdt_setprop(fdt, nodeoffset, "isolated-cpu-list", in plat_sgi_append_config_node() 137 flush_dcache_range((uintptr_t)fdt, mem_params->image_info.image_size); in plat_sgi_append_config_node()
|
/trusted-firmware-a-3.7.0/drivers/st/gpio/ |
D | stm32_gpio.c | 36 static int ckeck_gpio_bank(void *fdt, uint32_t bank, int pinctrl_node) in ckeck_gpio_bank() argument 41 fdt_for_each_subnode(pinctrl_subnode, fdt, pinctrl_node) { in ckeck_gpio_bank() 44 if (fdt_getprop(fdt, pinctrl_subnode, in ckeck_gpio_bank() 49 cuint = fdt_getprop(fdt, pinctrl_subnode, "reg", NULL); in ckeck_gpio_bank() 68 static int dt_set_gpio_config(void *fdt, int node, uint8_t status) in dt_set_gpio_config() argument 77 cuint = fdt_getprop(fdt, node, "pinmux", &len); in dt_set_gpio_config() 82 pinctrl_node = fdt_parent_offset(fdt, fdt_parent_offset(fdt, node)); in dt_set_gpio_config() 87 slewrate = fdt_getprop(fdt, node, "slew-rate", NULL); in dt_set_gpio_config() 92 if (fdt_getprop(fdt, node, "bias-pull-up", NULL) != NULL) { in dt_set_gpio_config() 94 } else if (fdt_getprop(fdt, node, "bias-pull-down", NULL) != NULL) { in dt_set_gpio_config() [all …]
|
/trusted-firmware-a-3.7.0/common/ |
D | fdt_fixup.c | 32 static int append_psci_compatible(void *fdt, int offs, const char *str) in append_psci_compatible() argument 34 return fdt_appendprop(fdt, offs, "compatible", str, strlen(str) + 1); in append_psci_compatible() 64 int dt_add_psci_node(void *fdt) in dt_add_psci_node() argument 68 if (fdt_path_offset(fdt, "/psci") >= 0) { in dt_add_psci_node() 73 offs = fdt_path_offset(fdt, "/"); in dt_add_psci_node() 76 offs = fdt_add_subnode(fdt, offs, "psci"); in dt_add_psci_node() 79 if (append_psci_compatible(fdt, offs, "arm,psci-1.0")) in dt_add_psci_node() 81 if (append_psci_compatible(fdt, offs, "arm,psci-0.2")) in dt_add_psci_node() 83 if (append_psci_compatible(fdt, offs, "arm,psci")) in dt_add_psci_node() 85 if (fdt_setprop_string(fdt, offs, "method", "smc")) in dt_add_psci_node() [all …]
|
/trusted-firmware-a-3.7.0/drivers/mtd/spi-mem/ |
D | spi_mem.c | 188 int spi_mem_init_slave(void *fdt, int bus_node, const struct spi_bus_ops *ops) in spi_mem_init_slave() argument 201 fdt_for_each_subnode(bus_subnode, fdt, bus_node) { in spi_mem_init_slave() 210 fdt_for_each_subnode(bus_subnode, fdt, bus_node) { in spi_mem_init_slave() 212 cuint = fdt_getprop(fdt, bus_subnode, "reg", NULL); in spi_mem_init_slave() 221 cuint = fdt_getprop(fdt, bus_subnode, in spi_mem_init_slave() 228 if ((fdt_getprop(fdt, bus_subnode, "spi-cpol", NULL)) != NULL) { in spi_mem_init_slave() 231 if ((fdt_getprop(fdt, bus_subnode, "spi-cpha", NULL)) != NULL) { in spi_mem_init_slave() 234 if ((fdt_getprop(fdt, bus_subnode, "spi-cs-high", NULL)) != in spi_mem_init_slave() 238 if ((fdt_getprop(fdt, bus_subnode, "spi-3wire", NULL)) != in spi_mem_init_slave() 242 if ((fdt_getprop(fdt, bus_subnode, "spi-half-duplex", NULL)) != in spi_mem_init_slave() [all …]
|