/external/u-boot/common/ |
D | image-fdt.c | 99 void boot_fdt_add_mem_rsv_regions(struct lmb *lmb, void *fdt_blob) in boot_fdt_add_mem_rsv_regions() argument 106 if (fdt_check_header(fdt_blob) != 0) in boot_fdt_add_mem_rsv_regions() 110 total = fdt_num_mem_rsv(fdt_blob); in boot_fdt_add_mem_rsv_regions() 112 if (fdt_get_mem_rsv(fdt_blob, i, &addr, &size) != 0) in boot_fdt_add_mem_rsv_regions() 118 nodeoffset = fdt_subnode_offset(fdt_blob, 0, "reserved-memory"); in boot_fdt_add_mem_rsv_regions() 120 subnode = fdt_first_subnode(fdt_blob, nodeoffset); in boot_fdt_add_mem_rsv_regions() 123 ret = fdt_get_resource(fdt_blob, subnode, "reg", 0, in boot_fdt_add_mem_rsv_regions() 131 subnode = fdt_next_subnode(fdt_blob, subnode); in boot_fdt_add_mem_rsv_regions() 155 void *fdt_blob = *of_flat_tree; in boot_relocate_fdt() local 166 if (fdt_check_header(fdt_blob) != 0) { in boot_relocate_fdt() [all …]
|
/external/u-boot/drivers/thermal/ |
D | imx_scu_thermal.c | 95 prop = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "compatible", in imx_sc_thermal_bind() 102 reg = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), "tsens-num", 0); in imx_sc_thermal_bind() 108 offset = fdt_subnode_offset(gd->fdt_blob, 0, "thermal-zones"); in imx_sc_thermal_bind() 109 fdt_for_each_subnode(offset, gd->fdt_blob, offset) { in imx_sc_thermal_bind() 111 name = fdt_get_name(gd->fdt_blob, offset, NULL); in imx_sc_thermal_bind() 137 ret = fdtdec_parse_phandle_with_args(gd->fdt_blob, dev_of_offset(dev), in imx_sc_thermal_ofdata_to_platdata() 154 pdata->polling_delay = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in imx_sc_thermal_ofdata_to_platdata() 157 trips_np = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(dev), in imx_sc_thermal_ofdata_to_platdata() 159 fdt_for_each_subnode(trips_np, gd->fdt_blob, trips_np) { in imx_sc_thermal_ofdata_to_platdata() 160 type = fdt_getprop(gd->fdt_blob, trips_np, "type", NULL); in imx_sc_thermal_ofdata_to_platdata() [all …]
|
/external/u-boot/arch/x86/lib/ |
D | pinctrl_ich6.c | 73 ret = fdtdec_get_int_array(gd->fdt_blob, pin_node, "gpio-offset", in ich6_pinctrl_cfg_pin() 77 is_gpio = fdtdec_get_bool(gd->fdt_blob, pin_node, "mode-gpio"); in ich6_pinctrl_cfg_pin() 83 dir = fdtdec_get_int(gd->fdt_blob, pin_node, "direction", -1); in ich6_pinctrl_cfg_pin() 89 val = fdtdec_get_int(gd->fdt_blob, pin_node, "output-value", in ich6_pinctrl_cfg_pin() 96 invert = fdtdec_get_bool(gd->fdt_blob, pin_node, "invert"); in ich6_pinctrl_cfg_pin() 114 pad_offset = fdtdec_get_int(gd->fdt_blob, pin_node, in ich6_pinctrl_cfg_pin() 127 val = fdtdec_get_int(gd->fdt_blob, pin_node, "mode-func", -1); in ich6_pinctrl_cfg_pin() 132 val = fdtdec_get_int(gd->fdt_blob, pin_node, "pull-assign", -1); in ich6_pinctrl_cfg_pin() 138 val = fdtdec_get_int(gd->fdt_blob, pin_node, "pull-strength", in ich6_pinctrl_cfg_pin() 189 for (pin_node = fdt_first_subnode(gd->fdt_blob, dev_of_offset(dev)); in ich6_pinctrl_probe() [all …]
|
D | zimage.c | 99 static int setup_device_tree(struct setup_header *hdr, const void *fdt_blob) in setup_device_tree() argument 108 if (!fdt_blob) in setup_device_tree() 111 size = fdt_totalsize(fdt_blob); in setup_device_tree() 124 sd->len = fdt_totalsize(fdt_blob); in setup_device_tree() 125 memcpy(sd->data, fdt_blob, sd->len); in setup_device_tree()
|
/external/u-boot/drivers/core/ |
D | ofnode.c | 29 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), in ofnode_read_u32() 69 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), propname, in ofnode_read_u64() 121 str = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), in ofnode_read_string() 153 int ooffset = fdt_subnode_offset(gd->fdt_blob, in ofnode_find_subnode() 173 return fdtdec_get_int_array(gd->fdt_blob, in ofnode_read_u32_array() 186 fdt_first_subnode(gd->fdt_blob, ofnode_to_offset(node))); in ofnode_first_subnode() 196 fdt_next_subnode(gd->fdt_blob, ofnode_to_offset(node))); in ofnode_next_subnode() 207 parent.of_offset = fdt_parent_offset(gd->fdt_blob, in ofnode_get_parent() 223 return fdt_get_name(gd->fdt_blob, ofnode_to_offset(node), NULL); in ofnode_get_name() 233 node.of_offset = fdt_node_offset_by_phandle(gd->fdt_blob, in ofnode_get_by_phandle() [all …]
|
D | fdtaddr.c | 29 na = fdt_address_cells(gd->fdt_blob, in devfdt_get_addr_index() 36 ns = fdt_size_cells(gd->fdt_blob, dev_of_offset(dev->parent)); in devfdt_get_addr_index() 42 reg = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "reg", in devfdt_get_addr_index() 56 addr = fdt_translate_address((void *)gd->fdt_blob, in devfdt_get_addr_index() 67 addr = fdtdec_get_addr_size_auto_parent(gd->fdt_blob, in devfdt_get_addr_index() 103 fdtdec_get_addr_size_auto_noparent(gd->fdt_blob, dev_of_offset(dev), in devfdt_get_addr_size_index() 121 index = fdt_stringlist_search(gd->fdt_blob, dev_of_offset(dev), in devfdt_get_addr_name() 138 index = fdt_stringlist_search(gd->fdt_blob, dev_of_offset(dev), in devfdt_get_addr_size_name()
|
/external/u-boot/arch/riscv/lib/ |
D | spl.c | 29 void *fdt_blob; in jump_to_image_no_args() local 33 fdt_blob = spl_image->fdt_addr; in jump_to_image_no_args() 35 fdt_blob = (void *)gd->fdt_blob; in jump_to_image_no_args() 44 ret = smp_call_function(spl_image->entry_point, (ulong)fdt_blob, 0, 0); in jump_to_image_no_args() 48 image_entry(gd->arch.boot_hart, fdt_blob); in jump_to_image_no_args()
|
/external/u-boot/lib/optee/ |
D | optee.c | 70 static int optee_copy_firmware_node(const void *old_blob, void *fdt_blob) in optee_copy_firmware_node() argument 81 offs = fdt_path_offset(fdt_blob, "/firmware"); in optee_copy_firmware_node() 83 offs = fdt_path_offset(fdt_blob, "/"); in optee_copy_firmware_node() 87 offs = fdt_add_subnode(fdt_blob, offs, "firmware"); in optee_copy_firmware_node() 92 offs = fdt_add_subnode(fdt_blob, offs, "optee"); in optee_copy_firmware_node() 103 ret = fdt_setprop(fdt_blob, offs, "compatible", prop, len); in optee_copy_firmware_node() 114 ret = fdt_setprop(fdt_blob, offs, "method", prop, len); in optee_copy_firmware_node()
|
/external/u-boot/lib/ |
D | fdtdec.c | 565 if (!gd->fdt_blob || ((uintptr_t)gd->fdt_blob & 3) || in fdtdec_prepare_fdt() 566 fdt_check_header(gd->fdt_blob)) { in fdtdec_prepare_fdt() 572 if (gd->fdt_blob) { in fdtdec_prepare_fdt() 573 printf("fdt_blob=%p\n", gd->fdt_blob); in fdtdec_prepare_fdt() 574 print_buffer((ulong)gd->fdt_blob, gd->fdt_blob, 4, in fdtdec_prepare_fdt() 1066 return fdtdec_setup_mem_size_base_fdt(gd->fdt_blob); in fdtdec_setup_mem_size_base() 1123 return fdtdec_setup_memory_banksize_fdt(gd->fdt_blob); in fdtdec_setup_memory_banksize() 1197 void *fdt_blob = NULL; in board_fdt_blob_setup() local 1201 fdt_blob = (ulong *)&_image_binary_end; in board_fdt_blob_setup() 1203 fdt_blob = (ulong *)&__bss_end; in board_fdt_blob_setup() [all …]
|
/external/u-boot/arch/x86/cpu/ |
D | cpu_x86.c | 19 plat->cpu_id = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in cpu_x86_bind() 60 node = fdt_path_offset(gd->fdt_blob, "/cpus"); in cpu_x86_get_count() 64 for (cpu = fdt_first_subnode(gd->fdt_blob, node); in cpu_x86_get_count() 66 cpu = fdt_next_subnode(gd->fdt_blob, cpu)) { in cpu_x86_get_count() 69 device_type = fdt_getprop(gd->fdt_blob, cpu, in cpu_x86_get_count()
|
/external/u-boot/arch/arm/mach-socfpga/ |
D | spl_a10.c | 87 int ret = config_pins(gd->fdt_blob, "shared"); in spl_board_init() 92 ret = config_pins(gd->fdt_blob, "fpga"); in spl_board_init() 123 cm_basic_init(gd->fdt_blob); in board_init_f() 134 config_dedicated_pins(gd->fdt_blob); in board_init_f()
|
/external/u-boot/drivers/net/phy/ |
D | fixed.c | 23 val = fdt_getprop_u32_default_node(gd->fdt_blob, in fixedphy_probe() 38 priv->duplex = fdtdec_get_bool(gd->fdt_blob, ofnode, "full-duplex"); in fixedphy_probe() 39 priv->pause = fdtdec_get_bool(gd->fdt_blob, ofnode, "pause"); in fixedphy_probe() 40 priv->asym_pause = fdtdec_get_bool(gd->fdt_blob, ofnode, "asym-pause"); in fixedphy_probe()
|
/external/u-boot/drivers/mmc/ |
D | msm_sdhci.c | 53 uint clk_rate = fdtdec_get_uint(gd->fdt_blob, node, "clock-frequency", in msm_sdc_clk_init() 61 ret = fdtdec_get_int_array(gd->fdt_blob, node, "clock", clkd, 2); in msm_sdc_clk_init() 65 clk_offset = fdt_node_offset_by_phandle(gd->fdt_blob, clkd[0]); in msm_sdc_clk_init() 174 host->bus_width = fdtdec_get_int(gd->fdt_blob, node, "bus-width", 4); in msm_ofdata_to_platdata() 175 host->index = fdtdec_get_uint(gd->fdt_blob, node, "index", 0); in msm_ofdata_to_platdata() 176 priv->base = (void *)fdtdec_get_addr_size_auto_parent(gd->fdt_blob, in msm_ofdata_to_platdata()
|
D | pic32_sdhci.c | 34 const void *fdt = gd->fdt_blob; in pic32_sdhci_probe() 47 host->bus_width = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in pic32_sdhci_probe() 51 ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), in pic32_sdhci_probe()
|
/external/u-boot/drivers/net/ |
D | sun8i_emac.c | 494 offset = fdtdec_lookup_phandle(gd->fdt_blob, dev_of_offset(dev), in parse_phy_pins() 501 drive = fdt_getprop_u32_default_node(gd->fdt_blob, offset, 0, in parse_phy_pins() 514 if (fdt_get_property(gd->fdt_blob, offset, "bias-pull-up", NULL)) in parse_phy_pins() 516 else if (fdt_get_property(gd->fdt_blob, offset, "bias-pull-down", NULL)) in parse_phy_pins() 522 pin_name = fdt_stringlist_get(gd->fdt_blob, offset, in parse_phy_pins() 852 emac_node = fdt_path_offset(gd->fdt_blob, in sun8i_get_ephy_nodes() 858 ephy_handle = fdtdec_lookup_phandle(gd->fdt_blob, in sun8i_get_ephy_nodes() 862 ephy_node = fdt_path_offset(gd->fdt_blob, in sun8i_get_ephy_nodes() 873 ret = fdt_node_check_compatible(gd->fdt_blob, ephy_node, in sun8i_get_ephy_nodes() 938 offset = fdtdec_lookup_phandle(gd->fdt_blob, node, "syscon"); in sun8i_emac_eth_ofdata_to_platdata() [all …]
|
/external/u-boot/board/st/stm32f746-disco/ |
D | stm32f746-disco.c | 94 node = fdt_node_offset_by_compatible(gd->fdt_blob, 0, "st,led1"); in board_late_init() 108 node = fdt_node_offset_by_compatible(gd->fdt_blob, 0, "st,button1"); in board_late_init() 133 node = fdt_node_offset_by_compatible(gd->fdt_blob, 0, "st,stm32-dwmac"); in board_init() 137 phy_mode = fdt_getprop(gd->fdt_blob, node, "phy-mode", NULL); in board_init()
|
/external/u-boot/board/samsung/common/ |
D | board.c | 83 if (tmu_init(gd->fdt_blob) != TMU_STATUS_NORMAL) { in board_init() 160 board_i2c_init(gd->fdt_blob); in board_early_init_f() 210 node = decode_sromc(gd->fdt_blob, &config); in board_eth_init() 215 node = fdtdec_next_compatible(gd->fdt_blob, node, COMPAT_SMSC_LAN9215); in board_eth_init() 222 base_addr = fdtdec_get_addr(gd->fdt_blob, node, "reg"); in board_eth_init() 332 node = fdt_node_offset_by_compatible(gd->fdt_blob, 0, in reset_misc()
|
/external/u-boot/test/dm/ |
D | test-main.c | 94 ut_assertok(dm_extended_scan_fdt(gd->fdt_blob, false)); in dm_do_test() 142 if (!gd->fdt_blob || fdt_next_node(gd->fdt_blob, 0, NULL) < 0) { in dm_test_main() 145 ut_assert(gd->fdt_blob); in dm_test_main() 198 dm_scan_fdt(gd->fdt_blob, false); in dm_test_main()
|
/external/u-boot/drivers/power/domain/ |
D | imx8m-power-domain.c | 77 for (offset = fdt_first_subnode(gd->fdt_blob, offset); offset > 0; in imx8m_power_domain_bind() 78 offset = fdt_next_subnode(gd->fdt_blob, offset)) { in imx8m_power_domain_bind() 80 name = fdt_get_name(gd->fdt_blob, offset, NULL); in imx8m_power_domain_bind() 108 pdata->resource_id = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in imx8m_power_domain_ofdata_to_platdata()
|
/external/u-boot/drivers/pinctrl/nxp/ |
D | pinctrl-imx.c | 39 prop = fdt_getprop(gd->fdt_blob, node, "fsl,pins", &size); in imx_pinctrl_set_state() 55 if (fdtdec_get_int_array(gd->fdt_blob, node, "fsl,pins", in imx_pinctrl_set_state() 226 info->mux_mask = fdtdec_get_int(gd->fdt_blob, node, "fsl,mux_mask", 0); in imx_pinctrl_probe() 231 if (fdtdec_get_bool(gd->fdt_blob, node, "fsl,input-sel")) { in imx_pinctrl_probe() 232 ret = fdtdec_parse_phandle_with_args(gd->fdt_blob, in imx_pinctrl_probe() 240 addr = fdtdec_get_addr_size(gd->fdt_blob, arg.node, "reg", in imx_pinctrl_probe()
|
/external/u-boot/drivers/pinctrl/ |
D | pinctrl-single.c | 120 const void *fdt = gd->fdt_blob; in single_set_state() 163 pdata->width = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in single_ofdata_to_platdata() 166 res = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), in single_ofdata_to_platdata() 179 pdata->mask = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in single_ofdata_to_platdata() 182 pdata->bits_per_mux = fdtdec_get_bool(gd->fdt_blob, dev_of_offset(dev), in single_ofdata_to_platdata()
|
/external/u-boot/drivers/video/sunxi/ |
D | sunxi_lcd.c | 117 if (fdtdec_decode_display_timing(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe() 122 timing_node = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe() 124 node = fdt_first_subnode(gd->fdt_blob, timing_node); in sunxi_lcd_probe() 125 val = fdtdec_get_int(gd->fdt_blob, node, "bits-per-pixel", -1); in sunxi_lcd_probe()
|
/external/u-boot/drivers/gpio/ |
D | pcf8575_gpio.c | 133 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata() 135 uc_priv->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata() 138 uc_priv->bank_name = fdt_get_name(gd->fdt_blob, in pcf8575_ofdata_platdata() 141 n_latch = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata()
|
/external/u-boot/include/dm/ |
D | read.h | 785 return fdt_address_cells(gd->fdt_blob, dev_of_offset(dev)); in dev_read_addr_cells() 791 return fdt_size_cells(gd->fdt_blob, dev_of_offset(dev)); in dev_read_size_cells() 796 return fdt_address_cells(gd->fdt_blob, dev_of_offset(dev)); in dev_read_simple_addr_cells() 801 return fdt_size_cells(gd->fdt_blob, dev_of_offset(dev)); in dev_read_simple_size_cells() 806 return fdt_get_phandle(gd->fdt_blob, dev_of_offset(dev)); in dev_read_phandle() 817 return fdtdec_get_alias_seq(gd->fdt_blob, dev->uclass->uc_drv->name, in dev_read_alias_seq() 845 return fdtdec_get_is_enabled(gd->fdt_blob, dev_of_offset(dev)); in dev_read_enabled() 873 return fdtdec_get_alias_highest_id(gd->fdt_blob, stem); in dev_read_alias_highest_id()
|
/external/arm-trusted-firmware/plat/renesas/rcar/ |
D | bl2_plat_mem_params_desc.c | 24 extern uint64_t fdt_blob[PAGE_SIZE_4KB / sizeof(uint64_t)]; 56 .ep_info.args.arg3 = (uintptr_t)fdt_blob, 77 .ep_info.args.arg1 = (uintptr_t)fdt_blob,
|