Lines Matching refs:imx7src
48 static int imx7_reset_update(struct imx7_src *imx7src, in imx7_reset_update() argument
51 const struct imx7_src_signal *signal = &imx7src->signals[id]; in imx7_reset_update()
53 return regmap_update_bits(imx7src->regmap, in imx7_reset_update()
94 struct imx7_src *imx7src = to_imx7_src(rcdev); in imx7_reset_set() local
95 const unsigned int bit = imx7src->signals[id].bit; in imx7_reset_set()
113 return imx7_reset_update(imx7src, id, value); in imx7_reset_set()
222 struct imx7_src *imx7src = to_imx7_src(rcdev); in imx8mq_reset_set() local
223 const unsigned int bit = imx7src->signals[id].bit; in imx8mq_reset_set()
249 return imx7_reset_update(imx7src, id, value); in imx8mq_reset_set()
317 struct imx7_src *imx7src = to_imx7_src(rcdev); in imx8mp_reset_set() local
318 const unsigned int bit = imx7src->signals[id].bit; in imx8mp_reset_set()
337 return imx7_reset_update(imx7src, id, value); in imx8mp_reset_set()
363 struct imx7_src *imx7src; in imx7_reset_probe() local
368 imx7src = devm_kzalloc(dev, sizeof(*imx7src), GFP_KERNEL); in imx7_reset_probe()
369 if (!imx7src) in imx7_reset_probe()
372 imx7src->signals = variant->signals; in imx7_reset_probe()
373 imx7src->regmap = syscon_node_to_regmap(dev->of_node); in imx7_reset_probe()
374 if (IS_ERR(imx7src->regmap)) { in imx7_reset_probe()
376 return PTR_ERR(imx7src->regmap); in imx7_reset_probe()
378 regmap_attach_dev(dev, imx7src->regmap, &config); in imx7_reset_probe()
380 imx7src->rcdev.owner = THIS_MODULE; in imx7_reset_probe()
381 imx7src->rcdev.nr_resets = variant->signals_num; in imx7_reset_probe()
382 imx7src->rcdev.ops = &variant->ops; in imx7_reset_probe()
383 imx7src->rcdev.of_node = dev->of_node; in imx7_reset_probe()
385 return devm_reset_controller_register(dev, &imx7src->rcdev); in imx7_reset_probe()