| /rk3399_ARM-atf/plat/st/common/ |
| H A D | stm32mp_dt.c | 134 const fdt32_t *cuint; in dt_fill_device_info() local 138 cuint = fdt_getprop(fdt, node, "reg", NULL); in dt_fill_device_info() 139 if (cuint != NULL) { in dt_fill_device_info() 140 info->base = fdt32_to_cpu(*cuint); in dt_fill_device_info() 145 cuint = fdt_getprop(fdt, node, "clocks", NULL); in dt_fill_device_info() 146 if (cuint != NULL) { in dt_fill_device_info() 147 cuint++; in dt_fill_device_info() 148 info->clock = (int)fdt32_to_cpu(*cuint); in dt_fill_device_info() 153 cuint = fdt_getprop(fdt, node, "resets", NULL); in dt_fill_device_info() 154 if (cuint != NULL) { in dt_fill_device_info() [all …]
|
| H A D | stm32mp_gic.c | 48 const fdt32_t *cuint; in stm32mp_gic_init() local 73 cuint = fdt_getprop(fdt, node, "#interrupt-cells", NULL); in stm32mp_gic_init() 74 if (cuint == NULL) { in stm32mp_gic_init() 78 stm32mp_gic.cells = fdt32_to_cpu(*cuint); in stm32mp_gic_init()
|
| /rk3399_ARM-atf/drivers/mtd/spi-mem/ |
| H A D | spi_mem.c | 194 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 …]
|
| /rk3399_ARM-atf/drivers/st/clk/ |
| H A D | stm32mp_clkfunc.c | 51 const fdt32_t *cuint; in fdt_osc_read_freq() local 53 cuint = fdt_getprop(fdt, subnode, "clock-frequency", in fdt_osc_read_freq() 55 if (cuint == NULL) { in fdt_osc_read_freq() 59 *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 …]
|
| H A D | clk-stm32mp13.c | 2117 const fdt32_t *cuint = NULL; in clk_stm32_parse_oscillator_fdt() local 2130 cuint = fdt_getprop(fdt, subnode, "clock-frequency", &ret); in clk_stm32_parse_oscillator_fdt() 2131 if (cuint == NULL) { in clk_stm32_parse_oscillator_fdt() 2135 osci->freq = fdt32_to_cpu(*cuint); in clk_stm32_parse_oscillator_fdt() 2232 const fdt32_t *cuint = NULL; in clk_stm32_parse_pll_fdt() local 2237 cuint = fdt_getprop(fdt, subnode, "st,pll", NULL); in clk_stm32_parse_pll_fdt() 2238 if (!cuint) { in clk_stm32_parse_pll_fdt() 2242 subnode_pll = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(*cuint)); in clk_stm32_parse_pll_fdt() 2247 cuint = fdt_getprop(fdt, subnode_pll, "st,pll_vco", NULL); in clk_stm32_parse_pll_fdt() 2248 if (!cuint) { in clk_stm32_parse_pll_fdt() [all …]
|
| H A D | clk-stm32-core.c | 1020 const fdt32_t *cuint = NULL; in clk_stm32_get_dt_oscillator_frequency() local 1033 cuint = fdt_getprop(fdt, subnode, "clock-frequency", &ret); in clk_stm32_get_dt_oscillator_frequency() 1034 if (cuint == NULL) { in clk_stm32_get_dt_oscillator_frequency() 1038 return fdt32_to_cpu(*cuint); in clk_stm32_get_dt_oscillator_frequency()
|
| H A D | clk-stm32mp2.c | 2277 const fdt32_t *cuint = NULL; in clk_stm32_parse_oscillator_fdt() local 2290 cuint = fdt_getprop(fdt, subnode, "clock-frequency", &ret); in clk_stm32_parse_oscillator_fdt() 2291 if (cuint == NULL) { in clk_stm32_parse_oscillator_fdt() 2295 osci->freq = fdt32_to_cpu(*cuint); in clk_stm32_parse_oscillator_fdt() 2347 const fdt32_t *cuint = NULL; in clk_stm32_parse_pll_fdt() local 2352 cuint = fdt_getprop(fdt, subnode, "st,pll", NULL); in clk_stm32_parse_pll_fdt() 2353 if (!cuint) { in clk_stm32_parse_pll_fdt() 2357 subnode_pll = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(*cuint)); in clk_stm32_parse_pll_fdt()
|
| H A D | stm32mp1_clk.c | 2715 const fdt32_t *cuint; in clk_stm32_parse_pll_fdt() local 2720 cuint = fdt_getprop(fdt, subnode, "st,pll", NULL); in clk_stm32_parse_pll_fdt() 2721 if (cuint == NULL) { in clk_stm32_parse_pll_fdt() 2726 subnode_pll = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(*cuint)); in clk_stm32_parse_pll_fdt() 2731 cuint = fdt_getprop(fdt, subnode_pll, "st,pll_vco", NULL); in clk_stm32_parse_pll_fdt() 2732 if (cuint == NULL) { in clk_stm32_parse_pll_fdt() 2736 subnode_vco = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(*cuint)); in clk_stm32_parse_pll_fdt()
|
| /rk3399_ARM-atf/drivers/st/gpio/ |
| H A D | stm32_gpio.c | 42 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 …]
|
| /rk3399_ARM-atf/drivers/st/regulator/ |
| H A D | regulator_core.c | 85 const fdt32_t *cuint; in get_supply_phandle() local 93 cuint = fdt_getprop(fdt, node, prop_name, NULL); in get_supply_phandle() 94 if (cuint != NULL) { in get_supply_phandle() 95 supply_phandle = fdt32_to_cpu(*cuint); in get_supply_phandle() 427 const fdt32_t *cuint; in parse_properties() local 438 cuint = fdt_getprop(fdt, node, "regulator-enable-ramp-delay", NULL); in parse_properties() 439 if (cuint != NULL) { in parse_properties() 440 rdev->enable_ramp_delay = fdt32_to_cpu(*cuint); in parse_properties() 463 const fdt32_t *cuint; in parse_dt() local 476 cuint = fdt_getprop(fdt, node, "regulator-min-microvolt", NULL); in parse_dt() [all …]
|
| /rk3399_ARM-atf/plat/st/stm32mp1/ |
| H A D | stm32mp1_syscfg.c | 164 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()
|
| /rk3399_ARM-atf/drivers/st/fmc/ |
| H A D | stm32_fmc2_nand.c | 795 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 …]
|
| /rk3399_ARM-atf/drivers/st/pmic/ |
| H A D | stm32mp_pmic2.c | 90 const fdt32_t *cuint; in dt_pmic2_i2c_config() local 97 cuint = fdt_getprop(fdt, pmic_node, "reg", NULL); in dt_pmic2_i2c_config() 98 if (cuint == NULL) { in dt_pmic2_i2c_config() 102 *i2c_addr = fdt32_to_cpu(*cuint) << 1; in dt_pmic2_i2c_config() 419 const fdt32_t *cuint; in register_pmic2() local 436 cuint = fdt_getprop(fdt, subnode, "st,regulator-bypass-microvolt", NULL); in register_pmic2() 437 if (cuint != NULL) { in register_pmic2() 440 regul->bypass_mv = (uint16_t)(fdt32_to_cpu(*cuint) / 1000U); in register_pmic2()
|
| H A D | stm32mp_pmic.c | 92 const fdt32_t *cuint; in dt_pmic_i2c_config() local 99 cuint = fdt_getprop(fdt, pmic_node, "reg", NULL); in dt_pmic_i2c_config() 100 if (cuint == NULL) { in dt_pmic_i2c_config() 104 pmic_i2c_addr = fdt32_to_cpu(*cuint) << 1; in dt_pmic_i2c_config()
|
| /rk3399_ARM-atf/drivers/st/rif/ |
| H A D | stm32mp2_risaf.c | 254 const fdt32_t *cuint; in risaf_register_region() local 262 cuint = fdt_getprop(fdt, node, "reg", &len); in risaf_register_region() 263 if ((cuint == NULL) || (len != RISAF_REGION_REG_SIZE)) { in risaf_register_region() 268 address = (uintptr_t)fdt32_to_cpu(cuint[0]) << 32; in risaf_register_region() 269 address |= fdt32_to_cpu(cuint[1]); in risaf_register_region() 270 length = (size_t)fdt32_to_cpu(cuint[2]) << 32; in risaf_register_region() 271 length |= fdt32_to_cpu(cuint[3]); in risaf_register_region() 286 cuint = fdt_getprop(fdt, node, "st,protreg", &len); in risaf_register_region() 287 if ((cuint == NULL) || (len != RISAF_REGION_PROTREG_SIZE)) { in risaf_register_region() 292 protreg = fdt32_to_cpu(*cuint); in risaf_register_region()
|
| /rk3399_ARM-atf/drivers/st/bsec/ |
| H A D | bsec2.c | 103 const fdt32_t *cuint; in bsec_dt_otp_nsec_access() local 110 cuint = fdt_getprop(fdt, bsec_subnode, "reg", NULL); in bsec_dt_otp_nsec_access() 111 if (cuint == NULL) { in bsec_dt_otp_nsec_access() 115 offset = fdt32_to_cpu(*cuint); in bsec_dt_otp_nsec_access() 116 cuint++; in bsec_dt_otp_nsec_access() 117 length = fdt32_to_cpu(*cuint); in bsec_dt_otp_nsec_access()
|
| /rk3399_ARM-atf/drivers/st/mmc/ |
| H A D | stm32_sdmmc2.c | 696 const fdt32_t *cuint; in stm32_sdmmc2_dt_get_config() local 737 cuint = fdt_getprop(fdt, sdmmc_node, "bus-width", NULL); in stm32_sdmmc2_dt_get_config() 738 if (cuint != NULL) { in stm32_sdmmc2_dt_get_config() 739 switch (fdt32_to_cpu(*cuint)) { in stm32_sdmmc2_dt_get_config() 753 cuint = fdt_getprop(fdt, sdmmc_node, "max-frequency", NULL); in stm32_sdmmc2_dt_get_config() 754 if (cuint != NULL) { in stm32_sdmmc2_dt_get_config() 755 sdmmc2_params.max_freq = fdt32_to_cpu(*cuint); in stm32_sdmmc2_dt_get_config()
|