/external/arm-trusted-firmware/drivers/mtd/spi-mem/ |
D | spi_mem.c | 193 const fdt32_t *cuint = NULL; in spi_mem_init_slave() local 211 cuint = fdt_getprop(fdt, bus_subnode, "reg", NULL); in spi_mem_init_slave() 212 if (cuint == NULL) { in spi_mem_init_slave() 216 spi_slave.cs = fdt32_to_cpu(*cuint); in spi_mem_init_slave() 220 cuint = fdt_getprop(fdt, bus_subnode, in spi_mem_init_slave() 222 if (cuint != NULL) { in spi_mem_init_slave() 223 spi_slave.max_hz = fdt32_to_cpu(*cuint); in spi_mem_init_slave() 247 cuint = fdt_getprop(fdt, bus_subnode, "spi-tx-bus-width", NULL); in spi_mem_init_slave() 248 if (cuint != NULL) { in spi_mem_init_slave() 249 switch (fdt32_to_cpu(*cuint)) { in spi_mem_init_slave() [all …]
|
/external/arm-trusted-firmware/drivers/st/clk/ |
D | stm32mp_clkfunc.c | 47 const fdt32_t *cuint; in fdt_osc_read_freq() local 49 cuint = fdt_getprop(fdt, subnode, "clock-frequency", in fdt_osc_read_freq() 51 if (cuint == NULL) { in fdt_osc_read_freq() 55 *freq = fdt32_to_cpu(*cuint); in fdt_osc_read_freq() 229 const fdt32_t *cuint; in fdt_rcc_read_prop() local 242 cuint = fdt_getprop(fdt, node, prop_name, &len); in fdt_rcc_read_prop() 243 if (cuint == NULL) { in fdt_rcc_read_prop() 248 return cuint; in fdt_rcc_read_prop() 279 const fdt32_t *cuint; in fdt_get_clock_id() local 286 cuint = fdt_getprop(fdt, node, "clocks", NULL); in fdt_get_clock_id() [all …]
|
/external/arm-trusted-firmware/drivers/st/gpio/ |
D | stm32_gpio.c | 38 const fdt32_t *cuint; in ckeck_gpio_bank() local 45 cuint = fdt_getprop(fdt, pinctrl_subnode, "reg", NULL); in ckeck_gpio_bank() 46 if (cuint == NULL) { in ckeck_gpio_bank() 50 if ((fdt32_to_cpu(*cuint) == bank_offset) && in ckeck_gpio_bank() 66 const fdt32_t *cuint, *slewrate; in dt_set_gpio_config() local 73 cuint = fdt_getprop(fdt, node, "pinmux", &len); in dt_set_gpio_config() 74 if (cuint == NULL) { in dt_set_gpio_config() 105 pincfg = fdt32_to_cpu(*cuint); in dt_set_gpio_config() 106 cuint++; in dt_set_gpio_config() 161 const fdt32_t *cuint; in dt_set_pinctrl_config() local [all …]
|
/external/arm-trusted-firmware/drivers/st/mmc/ |
D | stm32_sdmmc2.c | 630 const fdt32_t *cuint; in stm32_sdmmc2_dt_get_config() local 643 cuint = fdt_getprop(fdt, sdmmc_node, "reg", NULL); in stm32_sdmmc2_dt_get_config() 644 if (cuint == NULL) { in stm32_sdmmc2_dt_get_config() 648 if (fdt32_to_cpu(*cuint) == sdmmc2_params.reg_base) { in stm32_sdmmc2_dt_get_config() 668 cuint = fdt_getprop(fdt, sdmmc_node, "clocks", NULL); in stm32_sdmmc2_dt_get_config() 669 if (cuint == NULL) { in stm32_sdmmc2_dt_get_config() 673 cuint++; in stm32_sdmmc2_dt_get_config() 674 sdmmc2_params.clock_id = fdt32_to_cpu(*cuint); in stm32_sdmmc2_dt_get_config() 676 cuint = fdt_getprop(fdt, sdmmc_node, "resets", NULL); in stm32_sdmmc2_dt_get_config() 677 if (cuint == NULL) { in stm32_sdmmc2_dt_get_config() [all …]
|
/external/arm-trusted-firmware/drivers/st/pmic/ |
D | stm32mp_pmic.c | 75 const fdt32_t *cuint; in dt_pmic_i2c_config() local 86 cuint = fdt_getprop(fdt, pmic_node, "reg", NULL); in dt_pmic_i2c_config() 87 if (cuint == NULL) { in dt_pmic_i2c_config() 91 pmic_i2c_addr = fdt32_to_cpu(*cuint) << 1; in dt_pmic_i2c_config() 126 const fdt32_t *cuint; local 161 cuint = fdt_getprop(fdt, regulator_node, 163 if (cuint == NULL) { 168 voltage = (uint16_t)(fdt32_to_cpu(*cuint) / 1000U);
|
/external/arm-trusted-firmware/drivers/st/fmc/ |
D | stm32_fmc2_nand.c | 804 const fdt32_t *cuint; in stm32_fmc2_init() local 833 cuint = fdt_getprop(fdt, fmc_ebi_node, "ranges", NULL); in stm32_fmc2_init() 834 if (cuint == NULL) { in stm32_fmc2_init() 839 bank = fdt32_to_cpu(*cuint); in stm32_fmc2_init() 844 bank_address[bank] = fdt32_to_cpu(*(cuint + 2)); in stm32_fmc2_init() 845 cuint += 4; in stm32_fmc2_init() 864 cuint = fdt_getprop(fdt, fmc_nfc_node, "reg", NULL); in stm32_fmc2_init() 865 if (cuint == NULL) { in stm32_fmc2_init() 870 bank = fdt32_to_cpu(*cuint); in stm32_fmc2_init() 874 stm32_fmc2.cs[i].data_base = fdt32_to_cpu(*(cuint + 1)) + in stm32_fmc2_init() [all …]
|
/external/arm-trusted-firmware/drivers/st/i2c/ |
D | stm32_i2c.c | 99 const fdt32_t *cuint; in stm32_i2c_get_setup_from_fdt() local 101 cuint = fdt_getprop(fdt, node, "i2c-scl-rising-time-ns", NULL); in stm32_i2c_get_setup_from_fdt() 102 if (cuint == NULL) { in stm32_i2c_get_setup_from_fdt() 105 init->rise_time = fdt32_to_cpu(*cuint); in stm32_i2c_get_setup_from_fdt() 108 cuint = fdt_getprop(fdt, node, "i2c-scl-falling-time-ns", NULL); in stm32_i2c_get_setup_from_fdt() 109 if (cuint == NULL) { in stm32_i2c_get_setup_from_fdt() 112 init->fall_time = fdt32_to_cpu(*cuint); in stm32_i2c_get_setup_from_fdt() 115 cuint = fdt_getprop(fdt, node, "clock-frequency", NULL); in stm32_i2c_get_setup_from_fdt() 116 if (cuint == NULL) { in stm32_i2c_get_setup_from_fdt() 119 switch (fdt32_to_cpu(*cuint)) { in stm32_i2c_get_setup_from_fdt()
|
/external/arm-trusted-firmware/drivers/st/bsec/ |
D | bsec.c | 80 const fdt32_t *cuint; in bsec_dt_otp_nsec_access() local 86 cuint = fdt_getprop(fdt, bsec_subnode, "reg", NULL); in bsec_dt_otp_nsec_access() 87 if (cuint == NULL) { in bsec_dt_otp_nsec_access() 91 reg = fdt32_to_cpu(*cuint) / sizeof(uint32_t); in bsec_dt_otp_nsec_access() 101 size = fdt32_to_cpu(*(cuint + 1)) / sizeof(uint32_t); in bsec_dt_otp_nsec_access() 103 if ((fdt32_to_cpu(*(cuint + 1)) % sizeof(uint32_t)) != 0) { in bsec_dt_otp_nsec_access()
|