Home
last modified time | relevance | path

Searched refs:cuint (Results 1 – 14 of 14) sorted by relevance

/trusted-firmware-a-3.4.0/plat/st/common/
Dstm32mp_dt.c137 const fdt32_t *cuint; in dt_fill_device_info() local
141 cuint = fdt_getprop(fdt, node, "reg", NULL); in dt_fill_device_info()
142 if (cuint != NULL) { in dt_fill_device_info()
143 info->base = fdt32_to_cpu(*cuint); in dt_fill_device_info()
148 cuint = fdt_getprop(fdt, node, "clocks", NULL); in dt_fill_device_info()
149 if (cuint != NULL) { in dt_fill_device_info()
150 cuint++; in dt_fill_device_info()
151 info->clock = (int)fdt32_to_cpu(*cuint); in dt_fill_device_info()
156 cuint = fdt_getprop(fdt, node, "resets", NULL); in dt_fill_device_info()
157 if (cuint != NULL) { in dt_fill_device_info()
[all …]
/trusted-firmware-a-3.4.0/drivers/mtd/spi-mem/
Dspi_mem.c194 const fdt32_t *cuint = NULL; in spi_mem_init_slave() local
212 cuint = fdt_getprop(fdt, bus_subnode, "reg", NULL); in spi_mem_init_slave()
213 if (cuint == NULL) { in spi_mem_init_slave()
217 spi_slave.cs = fdt32_to_cpu(*cuint); in spi_mem_init_slave()
221 cuint = fdt_getprop(fdt, bus_subnode, in spi_mem_init_slave()
223 if (cuint != NULL) { in spi_mem_init_slave()
224 spi_slave.max_hz = fdt32_to_cpu(*cuint); in spi_mem_init_slave()
248 cuint = fdt_getprop(fdt, bus_subnode, "spi-tx-bus-width", NULL); in spi_mem_init_slave()
249 if (cuint != NULL) { in spi_mem_init_slave()
250 switch (fdt32_to_cpu(*cuint)) { in spi_mem_init_slave()
[all …]
/trusted-firmware-a-3.4.0/plat/st/stm32mp1/
Dstm32mp1_gic.c48 const fdt32_t *cuint; in stm32mp1_gic_init() local
62 cuint = fdt_getprop(fdt, node, "reg", NULL); in stm32mp1_gic_init()
63 if (cuint == NULL) { in stm32mp1_gic_init()
67 platform_gic_data.gicc_base = fdt32_to_cpu(*(cuint + 2)); in stm32mp1_gic_init()
69 cuint = fdt_getprop(fdt, node, "#interrupt-cells", NULL); in stm32mp1_gic_init()
70 if (cuint == NULL) { in stm32mp1_gic_init()
74 stm32_gic.cells = fdt32_to_cpu(*cuint); in stm32mp1_gic_init()
Dstm32mp1_syscfg.c164 const fdt32_t *cuint; in get_regu_max_voltage() local
166 cuint = fdt_getprop(fdt, sdmmc_node, regu_name, NULL); in get_regu_max_voltage()
167 if (cuint == NULL) { in get_regu_max_voltage()
171 node = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(*cuint)); in get_regu_max_voltage()
176 cuint = fdt_getprop(fdt, node, "regulator-max-microvolt", NULL); in get_regu_max_voltage()
177 if (cuint == NULL) { in get_regu_max_voltage()
181 *regu_val = fdt32_to_cpu(*cuint); in get_regu_max_voltage()
/trusted-firmware-a-3.4.0/drivers/st/clk/
Dstm32mp_clkfunc.c52 const fdt32_t *cuint; in fdt_osc_read_freq() local
54 cuint = fdt_getprop(fdt, subnode, "clock-frequency", in fdt_osc_read_freq()
56 if (cuint == NULL) { in fdt_osc_read_freq()
60 *freq = fdt32_to_cpu(*cuint); in fdt_osc_read_freq()
230 const fdt32_t *cuint; in fdt_rcc_read_prop() local
243 cuint = fdt_getprop(fdt, node, prop_name, &len); in fdt_rcc_read_prop()
244 if (cuint == NULL) { in fdt_rcc_read_prop()
249 return cuint; in fdt_rcc_read_prop()
278 const fdt32_t *cuint; in fdt_get_clock_id() local
285 cuint = fdt_getprop(fdt, node, "clocks", NULL); in fdt_get_clock_id()
[all …]
Dclk-stm32mp13.c2089 const fdt32_t *cuint = NULL; in clk_stm32_parse_oscillator_fdt() local
2102 cuint = fdt_getprop(fdt, subnode, "clock-frequency", &ret); in clk_stm32_parse_oscillator_fdt()
2103 if (cuint == NULL) { in clk_stm32_parse_oscillator_fdt()
2107 osci->freq = fdt32_to_cpu(*cuint); in clk_stm32_parse_oscillator_fdt()
2204 const fdt32_t *cuint = NULL; in clk_stm32_parse_pll_fdt() local
2209 cuint = fdt_getprop(fdt, subnode, "st,pll", NULL); in clk_stm32_parse_pll_fdt()
2210 if (!cuint) { in clk_stm32_parse_pll_fdt()
2214 subnode_pll = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(*cuint)); in clk_stm32_parse_pll_fdt()
2219 cuint = fdt_getprop(fdt, subnode_pll, "st,pll_vco", NULL); in clk_stm32_parse_pll_fdt()
2220 if (!cuint) { in clk_stm32_parse_pll_fdt()
[all …]
Dclk-stm32-core.c1025 const fdt32_t *cuint = NULL; in clk_stm32_get_dt_oscillator_frequency() local
1038 cuint = fdt_getprop(fdt, subnode, "clock-frequency", &ret); in clk_stm32_get_dt_oscillator_frequency()
1039 if (cuint == NULL) { in clk_stm32_get_dt_oscillator_frequency()
1043 return fdt32_to_cpu(*cuint); in clk_stm32_get_dt_oscillator_frequency()
/trusted-firmware-a-3.4.0/drivers/st/gpio/
Dstm32_gpio.c42 const fdt32_t *cuint; in ckeck_gpio_bank() local
49 cuint = fdt_getprop(fdt, pinctrl_subnode, "reg", NULL); in ckeck_gpio_bank()
50 if (cuint == NULL) { in ckeck_gpio_bank()
54 if ((fdt32_to_cpu(*cuint) == bank_offset) && in ckeck_gpio_bank()
70 const fdt32_t *cuint, *slewrate; in dt_set_gpio_config() local
77 cuint = fdt_getprop(fdt, node, "pinmux", &len); in dt_set_gpio_config()
78 if (cuint == NULL) { in dt_set_gpio_config()
111 pincfg = fdt32_to_cpu(*cuint); in dt_set_gpio_config()
112 cuint++; in dt_set_gpio_config()
183 const fdt32_t *cuint; in dt_set_pinctrl_config() local
[all …]
/trusted-firmware-a-3.4.0/drivers/st/regulator/
Dregulator_core.c83 const fdt32_t *cuint; in get_supply_phandle() local
91 cuint = fdt_getprop(fdt, node, prop_name, NULL); in get_supply_phandle()
92 if (cuint != NULL) { in get_supply_phandle()
93 supply_phandle = fdt32_to_cpu(*cuint); in get_supply_phandle()
449 const fdt32_t *cuint; in parse_dt() local
462 cuint = fdt_getprop(fdt, node, "regulator-min-microvolt", NULL); in parse_dt()
463 if (cuint != NULL) { in parse_dt()
466 min_mv = (uint16_t)(fdt32_to_cpu(*cuint) / 1000U); in parse_dt()
477 cuint = fdt_getprop(fdt, node, "regulator-max-microvolt", NULL); in parse_dt()
478 if (cuint != NULL) { in parse_dt()
[all …]
/trusted-firmware-a-3.4.0/drivers/st/fmc/
Dstm32_fmc2_nand.c795 const fdt32_t *cuint; in stm32_fmc2_init() local
824 cuint = fdt_getprop(fdt, fmc_ebi_node, "ranges", NULL); in stm32_fmc2_init()
825 if (cuint == NULL) { in stm32_fmc2_init()
830 bank = fdt32_to_cpu(*cuint); in stm32_fmc2_init()
835 bank_address[bank] = fdt32_to_cpu(*(cuint + 2)); in stm32_fmc2_init()
836 cuint += 4; in stm32_fmc2_init()
855 cuint = fdt_getprop(fdt, fmc_nfc_node, "reg", NULL); in stm32_fmc2_init()
856 if (cuint == NULL) { in stm32_fmc2_init()
861 bank = fdt32_to_cpu(*cuint); in stm32_fmc2_init()
865 stm32_fmc2.cs[i].data_base = fdt32_to_cpu(*(cuint + 1)) + in stm32_fmc2_init()
[all …]
/trusted-firmware-a-3.4.0/drivers/st/i2c/
Dstm32_i2c.c100 const fdt32_t *cuint; in stm32_i2c_get_setup_from_fdt() local
102 cuint = fdt_getprop(fdt, node, "i2c-scl-rising-time-ns", NULL); in stm32_i2c_get_setup_from_fdt()
103 if (cuint == NULL) { in stm32_i2c_get_setup_from_fdt()
106 init->rise_time = fdt32_to_cpu(*cuint); in stm32_i2c_get_setup_from_fdt()
109 cuint = fdt_getprop(fdt, node, "i2c-scl-falling-time-ns", NULL); in stm32_i2c_get_setup_from_fdt()
110 if (cuint == NULL) { in stm32_i2c_get_setup_from_fdt()
113 init->fall_time = fdt32_to_cpu(*cuint); in stm32_i2c_get_setup_from_fdt()
116 cuint = fdt_getprop(fdt, node, "clock-frequency", NULL); in stm32_i2c_get_setup_from_fdt()
117 if (cuint == NULL) { in stm32_i2c_get_setup_from_fdt()
120 switch (fdt32_to_cpu(*cuint)) { in stm32_i2c_get_setup_from_fdt()
/trusted-firmware-a-3.4.0/drivers/st/pmic/
Dstm32mp_pmic.c91 const fdt32_t *cuint; in dt_pmic_i2c_config() local
98 cuint = fdt_getprop(fdt, pmic_node, "reg", NULL); in dt_pmic_i2c_config()
99 if (cuint == NULL) { in dt_pmic_i2c_config()
103 pmic_i2c_addr = fdt32_to_cpu(*cuint) << 1; in dt_pmic_i2c_config()
/trusted-firmware-a-3.4.0/drivers/st/mmc/
Dstm32_sdmmc2.c666 const fdt32_t *cuint; in stm32_sdmmc2_dt_get_config() local
707 cuint = fdt_getprop(fdt, sdmmc_node, "bus-width", NULL); in stm32_sdmmc2_dt_get_config()
708 if (cuint != NULL) { in stm32_sdmmc2_dt_get_config()
709 switch (fdt32_to_cpu(*cuint)) { in stm32_sdmmc2_dt_get_config()
723 cuint = fdt_getprop(fdt, sdmmc_node, "max-frequency", NULL); in stm32_sdmmc2_dt_get_config()
724 if (cuint != NULL) { in stm32_sdmmc2_dt_get_config()
725 sdmmc2_params.max_freq = fdt32_to_cpu(*cuint); in stm32_sdmmc2_dt_get_config()
/trusted-firmware-a-3.4.0/drivers/st/bsec/
Dbsec2.c92 const fdt32_t *cuint; in bsec_dt_otp_nsec_access() local
99 cuint = fdt_getprop(fdt, bsec_subnode, "reg", NULL); in bsec_dt_otp_nsec_access()
100 if (cuint == NULL) { in bsec_dt_otp_nsec_access()
104 offset = fdt32_to_cpu(*cuint); in bsec_dt_otp_nsec_access()
105 cuint++; in bsec_dt_otp_nsec_access()
106 length = fdt32_to_cpu(*cuint); in bsec_dt_otp_nsec_access()