Home
last modified time | relevance | path

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

/optee_os/core/arch/arm/plat-rockchip/
H A Dplatform_rk3588.c107 vaddr_t trng_s_base = (vaddr_t)phys_to_virt_io(TRNG_S_BASE, in hw_get_random_bytes() local
116 if (!trng_s_base) in hw_get_random_bytes()
120 val = io_read32(trng_s_base + TRNG_S_STAT); in hw_get_random_bytes()
123 io_write32(trng_s_base + TRNG_S_CTRL, CMD_SEED); in hw_get_random_bytes()
126 if (IO_READ32_POLL_TIMEOUT(trng_s_base + TRNG_S_ISTAT, val, in hw_get_random_bytes()
135 io_write32(trng_s_base + TRNG_S_ISTAT, TRNG_S_SEED_DONE_BIT); in hw_get_random_bytes()
139 io_write32(trng_s_base + TRNG_S_MODE, LEN_256BIT); in hw_get_random_bytes()
143 io_write32(trng_s_base + TRNG_S_CTRL, CMD_RAND); in hw_get_random_bytes()
146 if (IO_READ32_POLL_TIMEOUT(trng_s_base + TRNG_S_ISTAT, val, in hw_get_random_bytes()
155 rnd = io_read32(trng_s_base + TRNG_S_RAND); in hw_get_random_bytes()
[all …]