Home
last modified time | relevance | path

Searched refs:dev_read_u32_default (Results 1 – 25 of 59) sorted by relevance

123

/external/u-boot/drivers/spi/
Dspi-uclass.c126 spi->max_hz = dev_read_u32_default(bus, "spi-max-frequency", 0); in spi_post_probe()
376 plat->cs = dev_read_u32_default(dev, "reg", -1); in spi_slave_ofdata_to_platdata()
377 plat->max_hz = dev_read_u32_default(dev, "spi-max-frequency", 0); in spi_slave_ofdata_to_platdata()
390 value = dev_read_u32_default(dev, "spi-tx-bus-width", 1); in spi_slave_ofdata_to_platdata()
405 value = dev_read_u32_default(dev, "spi-rx-bus-width", 1); in spi_slave_ofdata_to_platdata()
Drk_spi.c194 dev_read_u32_default(bus, "spi-max-frequency", 50000000); in rockchip_spi_ofdata_to_platdata()
196 dev_read_u32_default(bus, "spi-deactivate-delay", 0); in rockchip_spi_ofdata_to_platdata()
198 dev_read_u32_default(bus, "spi-activate-delay", 0); in rockchip_spi_ofdata_to_platdata()
Dtegra114_spi.c110 plat->frequency = dev_read_u32_default(bus, "spi-max-frequency", in tegra114_spi_ofdata_to_platdata()
112 plat->deactivate_delay_us = dev_read_u32_default(bus, in tegra114_spi_ofdata_to_platdata()
/external/u-boot/drivers/sysreset/
Dsysreset_syscon.c55 priv->offset = dev_read_u32_default(dev, "offset", 0); in syscon_reboot_probe()
56 priv->mask = dev_read_u32_default(dev, "mask", 0); in syscon_reboot_probe()
/external/u-boot/drivers/ram/stm32mp1/
Dstm32mp1_ram.c88 config.info.speed = dev_read_u32_default(dev, "st,mem-speed", 0); in stm32mp1_ddr_setup()
89 config.info.size = dev_read_u32_default(dev, "st,mem-size", 0); in stm32mp1_ddr_setup()
164 priv->info.size = dev_read_u32_default(dev, "st,mem-size", 0); in stm32mp1_ddr_probe()
/external/u-boot/drivers/mmc/
Drockchip_dw_mmc.c59 host->buswidth = dev_read_u32_default(dev, "bus-width", 4); in rockchip_dwmmc_ofdata_to_platdata()
69 priv->fifo_depth = dev_read_u32_default(dev, "fifo-depth", 0); in rockchip_dwmmc_ofdata_to_platdata()
80 int val = dev_read_u32_default(dev, "max-frequency", -EINVAL); in rockchip_dwmmc_ofdata_to_platdata()
Drockchip_sdhci.c50 max_frequency = dev_read_u32_default(dev, "max-frequency", 0); in arasan_sdhci_probe()
90 host->bus_width = dev_read_u32_default(dev, "bus-width", 4); in arasan_sdhci_ofdata_to_platdata()
Dzynq_sdhci.c304 priv->deviceid = dev_read_u32_default(dev, "xlnx,device_id", -1); in arasan_sdhci_ofdata_to_platdata()
305 priv->bank = dev_read_u32_default(dev, "xlnx,mio_bank", -1); in arasan_sdhci_ofdata_to_platdata()
308 plat->f_max = dev_read_u32_default(dev, "max-frequency", in arasan_sdhci_ofdata_to_platdata()
/external/u-boot/drivers/power/regulator/
Dregulator-uclass.c312 uc_pdata->min_uV = dev_read_u32_default(dev, "regulator-min-microvolt", in regulator_pre_probe()
314 uc_pdata->max_uV = dev_read_u32_default(dev, "regulator-max-microvolt", in regulator_pre_probe()
316 uc_pdata->min_uA = dev_read_u32_default(dev, "regulator-min-microamp", in regulator_pre_probe()
318 uc_pdata->max_uA = dev_read_u32_default(dev, "regulator-max-microamp", in regulator_pre_probe()
Dfixed.c51 dev_pdata->startup_delay_us = dev_read_u32_default(dev, in fixed_regulator_ofdata_to_platdata()
/external/u-boot/drivers/net/
Dgmac_rockchip.c58 pdata->tx_delay = dev_read_u32_default(dev, "tx_delay", -ENOENT); in gmac_rockchip_ofdata_to_platdata()
59 pdata->rx_delay = dev_read_u32_default(dev, "rx_delay", -ENOENT); in gmac_rockchip_ofdata_to_platdata()
63 pdata->tx_delay = dev_read_u32_default(dev, "tx-delay", 0x30); in gmac_rockchip_ofdata_to_platdata()
65 pdata->rx_delay = dev_read_u32_default(dev, "rx-delay", 0x10); in gmac_rockchip_ofdata_to_platdata()
/external/u-boot/drivers/led/
Dled_bcm6358.c128 clk_div = dev_read_u32_default(dev, "brcm,clk-div", in bcm6358_led_probe()
157 pin = dev_read_u32_default(dev, "reg", LEDS_MAX); in bcm6358_led_probe()
/external/u-boot/drivers/input/
Dcros_ec_keyb.c167 config->key_rows = dev_read_u32_default(dev, "keypad,num-rows", 0); in cros_ec_keyb_decode_fdt()
168 config->key_cols = dev_read_u32_default(dev, "keypad,num-columns", 0); in cros_ec_keyb_decode_fdt()
/external/u-boot/drivers/clk/
Dclk_fixed_rate.c32 dev_read_u32_default(dev, "clock-frequency", 0); in clk_fixed_rate_ofdata_to_platdata()
/external/u-boot/drivers/serial/
Dns16550.c436 plat->reg_offset = dev_read_u32_default(dev, "reg-offset", 0); in ns16550_serial_ofdata_to_platdata()
437 plat->reg_shift = dev_read_u32_default(dev, "reg-shift", 0); in ns16550_serial_ofdata_to_platdata()
450 plat->clock = dev_read_u32_default(dev, "clock-frequency", in ns16550_serial_ofdata_to_platdata()
/external/u-boot/include/dm/
Dread.h65 int dev_read_u32_default(struct udevice *dev, const char *propname, int def);
464 static inline int dev_read_u32_default(struct udevice *dev, in dev_read_u32_default() function
/external/u-boot/drivers/i2c/
Dfsl_i2c.c583 dev->index = dev_read_u32_default(bus, "cell-index", -1);
584 dev->slaveadd = dev_read_u32_default(bus, "u-boot,i2c-slave-addr",
586 dev->speed = dev_read_u32_default(bus, "clock-frequency", 400000);
Di2c-uclass.c570 chip->offset_len = dev_read_u32_default(dev, "u-boot,i2c-offset-len", in i2c_chip_ofdata_to_platdata()
573 addr = dev_read_u32_default(dev, "reg", -1); in i2c_chip_ofdata_to_platdata()
590 i2c->speed_hz = dev_read_u32_default(dev, "clock-frequency", 100000); in i2c_post_probe()
/external/u-boot/drivers/adc/
Dadc-uclass.c357 uc_pdata->vdd_microvolts = dev_read_u32_default(dev, prop, -ENODATA); in adc_vdd_platdata_set()
377 uc_pdata->vss_microvolts = dev_read_u32_default(dev, prop, -ENODATA); in adc_vss_platdata_set()
/external/u-boot/drivers/gpio/
Dhsdk-creg-gpio.c82 uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 1); in hsdk_creg_gpio_probe()
Dbcm6345_gpio.c100 uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios", 32); in bcm6345_gpio_probe()
Dstm32f7_gpio.c92 uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios", in gpio_stm32_probe()
/external/u-boot/drivers/timer/
Dtimer-uclass.c59 dev_read_u32_default(dev, "clock-frequency", 0); in timer_pre_probe()
/external/u-boot/drivers/ram/
Dstm32_sdram.c274 mem_remap = dev_read_u32_default(dev, "st,mem_remap", NOT_FOUND); in stm32_fmc_ofdata_to_platdata()
282 swp_fmc = dev_read_u32_default(dev, "st,swp_fmc", NOT_FOUND); in stm32_fmc_ofdata_to_platdata()
/external/u-boot/drivers/pinctrl/broadcom/
Dpinctrl-bcm283x.c78 function = dev_read_u32_default(config, "brcm,function", -1); in bcm283x_pinctrl_set_state()

123