Lines Matching +full:read +full:- +full:strobe +full:- +full:delay
1 // SPDX-License-Identifier: GPL-2.0+
6 * Written by Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15 #include <linux/delay.h>
37 /* 0x14 efuse strobe finish control register */
52 * be read. in dump_efuses()
63 printf("%s: no misc-device found\n", __func__); in dump_efuses()
73 printf("efuse-contents:\n"); in dump_efuses()
91 (struct rockchip_efuse_regs *)plat->base; in rockchip_rk3399_efuse_read()
108 &efuse->ctrl); in rockchip_rk3399_efuse_read()
111 setbits_le32(&efuse->ctrl, in rockchip_rk3399_efuse_read()
114 out_value = readl(&efuse->dout); in rockchip_rk3399_efuse_read()
115 clrbits_le32(&efuse->ctrl, RK3399_STROBE); in rockchip_rk3399_efuse_read()
123 writel(RK3399_PD | RK3399_CSB, &efuse->ctrl); in rockchip_rk3399_efuse_read()
137 .read = rockchip_efuse_read,
144 plat->base = dev_read_addr_ptr(dev); in rockchip_efuse_ofdata_to_platdata()
149 { .compatible = "rockchip,rk3399-efuse" },