Home
last modified time | relevance | path

Searched +full:x1830 +full:- +full:dtrng (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/Documentation/devicetree/bindings/rng/
Dingenic,trng.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Bindings for DTRNG in Ingenic SoCs
10 - 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
18 - ingenic,x1830-dtrng
27 - compatible
28 - reg
29 - clocks
34 - |
[all …]
/Linux-v5.10/drivers/char/hw_random/
Dingenic-trng.c1 // SPDX-License-Identifier: GPL-2.0
19 /* DTRNG register offsets */
43 ctrl = readl(trng->base + TRNG_REG_CFG_OFFSET); in ingenic_trng_init()
45 writel(ctrl, trng->base + TRNG_REG_CFG_OFFSET); in ingenic_trng_init()
55 ctrl = readl(trng->base + TRNG_REG_CFG_OFFSET); in ingenic_trng_cleanup()
57 writel(ctrl, trng->base + TRNG_REG_CFG_OFFSET); in ingenic_trng_cleanup()
67 ret = readl_poll_timeout(trng->base + TRNG_REG_STATUS_OFFSET, status, in ingenic_trng_read()
69 if (ret == -ETIMEDOUT) { in ingenic_trng_read()
70 pr_err("%s: Wait for DTRNG data ready timeout\n", __func__); in ingenic_trng_read()
74 *data = readl(trng->base + TRNG_REG_RANDOMNUM_OFFSET); in ingenic_trng_read()
[all …]
/Linux-v5.10/drivers/clk/ingenic/
Dx1830-cgu.c1 // SPDX-License-Identifier: GPL-2.0
3 * X1830 SoC CGU driver
7 #include <linux/clk-provider.h>
12 #include <dt-bindings/clock/x1830-cgu.h>
59 void __iomem *reg_opcr = cgu->base + CGU_REG_OPCR; in x1830_usb_phy_enable()
60 void __iomem *reg_usbpcr = cgu->base + CGU_REG_USBPCR; in x1830_usb_phy_enable()
69 void __iomem *reg_opcr = cgu->base + CGU_REG_OPCR; in x1830_usb_phy_disable()
70 void __iomem *reg_usbpcr = cgu->base + CGU_REG_USBPCR; in x1830_usb_phy_disable()
78 void __iomem *reg_opcr = cgu->base + CGU_REG_OPCR; in x1830_usb_phy_is_enabled()
79 void __iomem *reg_usbpcr = cgu->base + CGU_REG_USBPCR; in x1830_usb_phy_is_enabled()
[all …]