Searched refs:xiphera_trng_base (Results 1 – 1 of 1) sorted by relevance
38 static vaddr_t xiphera_trng_base; variable44 status = io_read32(xiphera_trng_base + STATUS_REG); in xiphera_trng_random_available()53 value = io_read32(xiphera_trng_base + RAND_REG); in xiphera_trng_read32()59 io_write32(xiphera_trng_base + CONTROL_REG, HOST_TO_TRNG_READ); in xiphera_trng_read32()60 io_write32(xiphera_trng_base + CONTROL_REG, HOST_TO_TRNG_ENABLE); in xiphera_trng_read32()77 assert(xiphera_trng_base); in hw_get_random_bytes()108 if (xiphera_trng_base) { in xiphera_trng_probe()113 if (dt_map_dev(fdt, node, &xiphera_trng_base, &size, DT_MAP_AUTO) < 0) in xiphera_trng_probe()124 io_write32(xiphera_trng_base + CONTROL_REG, HOST_TO_TRNG_RESET); in xiphera_trng_probe()127 status = io_read32(xiphera_trng_base + STATUS_REG); in xiphera_trng_probe()[all …]