Searched refs:stm32_rng (Results 1 – 2 of 2) sorted by relevance
73 static struct stm32_rng_instance stm32_rng; variable80 mmio_clrbits_32(stm32_rng.base + RNG_SR, RNG_SR_SEIS); in seed_error_recovery()86 (void)mmio_read_32(stm32_rng.base + RNG_DR); in seed_error_recovery()92 if ((mmio_read_32(stm32_rng.base + RNG_SR) & RNG_SR_SEIS) != 0U) { in seed_error_recovery()103 clock_rate = clk_get_rate(stm32_rng.clock); in stm32_rng_clock_freq_restrain()114 VERBOSE("RNG clk rate : %lu\n", clk_get_rate(stm32_rng.clock) >> clock_div); in stm32_rng_clock_freq_restrain()126 mmio_write_32(stm32_rng.base + RNG_CR, RNG_CR_RNGEN | RNG_CR_CED); in stm32_rng_enable()133 mmio_clrsetbits_32(stm32_rng.base + RNG_CR, RNG_NIST_CONFIG_MASK, in stm32_rng_enable()136 mmio_clrsetbits_32(stm32_rng.base + RNG_CR, RNG_CR_CLKDIV, in stm32_rng_enable()139 mmio_write_32(stm32_rng.base + RNG_HTCR, RNG_HTCFG_CONFIG); in stm32_rng_enable()[all …]
209 drivers/st/crypto/stm32_rng.c