Lines Matching refs:efuse
72 struct jz4780_efuse *efuse = context; in jz4780_efuse_read() local
87 regmap_update_bits(efuse->map, JZ_EFUCTRL, in jz4780_efuse_read()
94 ret = regmap_read_poll_timeout(efuse->map, JZ_EFUSTATE, in jz4780_efuse_read()
99 dev_err(efuse->dev, "Time out while reading efuse data"); in jz4780_efuse_read()
103 ret = regmap_bulk_read(efuse->map, JZ_EFUDATA(0), in jz4780_efuse_read()
142 struct jz4780_efuse *efuse; in jz4780_efuse_probe() local
151 efuse = devm_kzalloc(dev, sizeof(*efuse), GFP_KERNEL); in jz4780_efuse_probe()
152 if (!efuse) in jz4780_efuse_probe()
159 efuse->map = devm_regmap_init_mmio(dev, regs, in jz4780_efuse_probe()
161 if (IS_ERR(efuse->map)) in jz4780_efuse_probe()
162 return PTR_ERR(efuse->map); in jz4780_efuse_probe()
164 efuse->clk = devm_clk_get(&pdev->dev, NULL); in jz4780_efuse_probe()
165 if (IS_ERR(efuse->clk)) in jz4780_efuse_probe()
166 return PTR_ERR(efuse->clk); in jz4780_efuse_probe()
168 ret = clk_prepare_enable(efuse->clk); in jz4780_efuse_probe()
174 efuse->clk); in jz4780_efuse_probe()
178 clk_rate = clk_get_rate(efuse->clk); in jz4780_efuse_probe()
180 efuse->dev = dev; in jz4780_efuse_probe()
203 regmap_update_bits(efuse->map, JZ_EFUCFG, in jz4780_efuse_probe()
211 cfg.priv = efuse; in jz4780_efuse_probe()