Home
last modified time | relevance | path

Searched refs:reset_id (Results 1 – 15 of 15) sorted by relevance

/trusted-firmware-a-3.7.0/include/drivers/st/
Dstm32mp_reset.h19 int stm32mp_reset_assert(uint32_t reset_id, unsigned int to_us);
26 static inline void stm32mp_reset_set(uint32_t reset_id) in stm32mp_reset_set() argument
28 (void)stm32mp_reset_assert(reset_id, 0U); in stm32mp_reset_set()
38 int stm32mp_reset_deassert(uint32_t reset_id, unsigned int to_us);
45 static inline void stm32mp_reset_release(uint32_t reset_id) in stm32mp_reset_release() argument
47 (void)stm32mp_reset_deassert(reset_id, 0U); in stm32mp_reset_release()
Dstm32_pka.h22 unsigned int reset_id; member
Dstm32_sdmmc2.h25 unsigned int reset_id; member
Dstm32_saes.h19 unsigned int reset_id; member
/trusted-firmware-a-3.7.0/drivers/st/reset/
Dstm32mp1_reset.c19 static uint32_t id2reg_offset(unsigned int reset_id) in id2reg_offset() argument
21 return ((reset_id & GENMASK(31, 5)) >> 5) * sizeof(uint32_t); in id2reg_offset()
24 static uint8_t id2reg_bit_pos(unsigned int reset_id) in id2reg_bit_pos() argument
26 return (uint8_t)(reset_id & GENMASK(4, 0)); in id2reg_bit_pos()
/trusted-firmware-a-3.7.0/plat/st/stm32mp1/
Dstm32mp1_scmi.c42 unsigned long reset_id; member
112 .reset_id = _id, \
397 if (!stm32mp_nsec_can_access_reset(rstd->reset_id)) { in plat_scmi_rstd_autonomous()
406 VERBOSE("SCMI reset %lu cycle\n", rstd->reset_id); in plat_scmi_rstd_autonomous()
408 if (stm32mp_reset_assert(rstd->reset_id, TIMEOUT_US_1MS)) { in plat_scmi_rstd_autonomous()
412 if (stm32mp_reset_deassert(rstd->reset_id, TIMEOUT_US_1MS)) { in plat_scmi_rstd_autonomous()
428 if (!stm32mp_nsec_can_access_reset(rstd->reset_id)) { in plat_scmi_rstd_set_state()
433 VERBOSE("SCMI reset %lu set\n", rstd->reset_id); in plat_scmi_rstd_set_state()
434 stm32mp_reset_set(rstd->reset_id); in plat_scmi_rstd_set_state()
436 VERBOSE("SCMI reset %lu release\n", rstd->reset_id); in plat_scmi_rstd_set_state()
[all …]
Dstm32mp1_shared_resources.c435 bool stm32mp_nsec_can_access_reset(unsigned int reset_id) in stm32mp_nsec_can_access_reset() argument
439 switch (reset_id) { in stm32mp_nsec_can_access_reset()
/trusted-firmware-a-3.7.0/plat/st/common/include/
Dstm32mp_shared_resources.h20 bool stm32mp_nsec_can_access_reset(unsigned int reset_id);
/trusted-firmware-a-3.7.0/plat/nvidia/tegra/drivers/bpmp_ipc/
Dintf.h72 uint32_t reset_id; member
Dintf.c284 .reset_id = rst_id in tegra_bpmp_ipc_reset_module()
/trusted-firmware-a-3.7.0/drivers/st/spi/
Dstm32_qspi.c113 unsigned int reset_id; member
491 stm32_qspi.reset_id = (unsigned int)info.reset; in stm32_qspi_init()
495 ret = stm32mp_reset_assert(stm32_qspi.reset_id, TIMEOUT_US_1_MS); in stm32_qspi_init()
499 ret = stm32mp_reset_deassert(stm32_qspi.reset_id, TIMEOUT_US_1_MS); in stm32_qspi_init()
/trusted-firmware-a-3.7.0/drivers/st/crypto/
Dstm32_pka.c288 pka_pdata.reset_id = (unsigned int)info.reset; in stm32_pka_parse_fdt()
589 if (stm32mp_reset_assert((unsigned long)pka_pdata.reset_id, TIMEOUT_US_1MS) != 0) { in stm32_pka_init()
594 if (stm32mp_reset_deassert((unsigned long)pka_pdata.reset_id, TIMEOUT_US_1MS) != 0) { in stm32_pka_init()
Dstm32_saes.c170 pdata->reset_id = (unsigned int)info.reset; in stm32_saes_parse_fdt()
389 if (stm32mp_reset_assert(saes_pdata.reset_id, TIMEOUT_US_1MS) != 0) { in stm32_saes_driver_init()
394 if (stm32mp_reset_deassert(saes_pdata.reset_id, TIMEOUT_US_1MS) != 0) { in stm32_saes_driver_init()
/trusted-firmware-a-3.7.0/drivers/st/mmc/
Dstm32_sdmmc2.c719 sdmmc2_params.reset_id = dt_info.reset; in stm32_sdmmc2_dt_get_config()
783 if ((int)sdmmc2_params.reset_id >= 0) { in stm32_sdmmc2_mmc_init()
786 rc = stm32mp_reset_assert(sdmmc2_params.reset_id, TIMEOUT_US_1_MS); in stm32_sdmmc2_mmc_init()
791 rc = stm32mp_reset_deassert(sdmmc2_params.reset_id, TIMEOUT_US_1_MS); in stm32_sdmmc2_mmc_init()
/trusted-firmware-a-3.7.0/drivers/st/fmc/
Dstm32_fmc2_nand.c151 unsigned int reset_id; member
822 stm32_fmc2.reset_id = (unsigned int)info.reset; in stm32_fmc2_init()
915 ret = stm32mp_reset_assert(stm32_fmc2.reset_id, TIMEOUT_US_1_MS); in stm32_fmc2_init()
919 ret = stm32mp_reset_deassert(stm32_fmc2.reset_id, TIMEOUT_US_1_MS); in stm32_fmc2_init()