Home
last modified time | relevance | path

Searched refs:reset_ctl (Results 1 – 25 of 94) sorted by relevance

1234

/u-boot/include/
A Dreset.h196 struct reset_ctl *reset_ctl);
211 struct reset_ctl *reset_ctl);
246 struct reset_ctl *reset_ctl);
255 int reset_request(struct reset_ctl *reset_ctl);
264 int reset_free(struct reset_ctl *reset_ctl);
278 int reset_assert(struct reset_ctl *reset_ctl);
306 int reset_deassert(struct reset_ctl *reset_ctl);
329 int reset_status(struct reset_ctl *reset_ctl);
403 struct reset_ctl *reset_ctl) in reset_get_by_index() argument
415 struct reset_ctl *reset_ctl) in reset_get_by_name() argument
[all …]
A Dreset-uclass.h39 int (*of_xlate)(struct reset_ctl *reset_ctl,
52 int (*request)(struct reset_ctl *reset_ctl);
61 int (*rfree)(struct reset_ctl *reset_ctl);
71 int (*rst_assert)(struct reset_ctl *reset_ctl);
78 int (*rst_deassert)(struct reset_ctl *reset_ctl);
86 int (*rst_status)(struct reset_ctl *reset_ctl);
/u-boot/drivers/reset/
A Dtegra-car-reset.c14 static int tegra_car_reset_request(struct reset_ctl *reset_ctl) in tegra_car_reset_request() argument
17 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_request()
20 if (reset_ctl->id >= PERIPH_ID_COUNT) in tegra_car_reset_request()
26 static int tegra_car_reset_free(struct reset_ctl *reset_ctl) in tegra_car_reset_free() argument
29 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_free()
34 static int tegra_car_reset_assert(struct reset_ctl *reset_ctl) in tegra_car_reset_assert() argument
37 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_assert()
39 reset_set_enable(reset_ctl->id, 1); in tegra_car_reset_assert()
44 static int tegra_car_reset_deassert(struct reset_ctl *reset_ctl) in tegra_car_reset_deassert() argument
47 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_deassert()
[all …]
A Dtegra186-reset.c14 static int tegra186_reset_request(struct reset_ctl *reset_ctl) in tegra186_reset_request() argument
17 reset_ctl->dev, reset_ctl->id); in tegra186_reset_request()
22 static int tegra186_reset_free(struct reset_ctl *reset_ctl) in tegra186_reset_free() argument
25 reset_ctl->dev, reset_ctl->id); in tegra186_reset_free()
30 static int tegra186_reset_common(struct reset_ctl *reset_ctl, in tegra186_reset_common() argument
37 req.reset_id = reset_ctl->id; in tegra186_reset_common()
47 static int tegra186_reset_assert(struct reset_ctl *reset_ctl) in tegra186_reset_assert() argument
50 reset_ctl->dev, reset_ctl->id); in tegra186_reset_assert()
52 return tegra186_reset_common(reset_ctl, CMD_RESET_ASSERT); in tegra186_reset_assert()
55 static int tegra186_reset_deassert(struct reset_ctl *reset_ctl) in tegra186_reset_deassert() argument
[all …]
A Dreset-uclass.c39 struct reset_ctl *reset_ctl) in reset_get_by_index_tail() argument
79 struct reset_ctl *reset_ctl) in reset_get_by_index() argument
92 struct reset_ctl *reset_ctl) in reset_get_by_index_nodev() argument
146 struct reset_ctl *reset_ctl) in reset_get_by_name() argument
163 int reset_request(struct reset_ctl *reset_ctl) in reset_request() argument
172 int reset_free(struct reset_ctl *reset_ctl) in reset_free() argument
181 int reset_assert(struct reset_ctl *reset_ctl) in reset_assert() argument
203 int reset_deassert(struct reset_ctl *reset_ctl) in reset_deassert() argument
225 int reset_status(struct reset_ctl *reset_ctl) in reset_status() argument
266 struct reset_ctl *reset_ctl; in devm_reset_control_get_by_index() local
[all …]
A Dreset-ast2600.c20 static int ast2600_reset_request(struct reset_ctl *reset_ctl) in ast2600_reset_request() argument
23 reset_ctl->dev, reset_ctl->id); in ast2600_reset_request()
28 static int ast2600_reset_free(struct reset_ctl *reset_ctl) in ast2600_reset_free() argument
31 reset_ctl->dev, reset_ctl->id); in ast2600_reset_free()
36 static int ast2600_reset_assert(struct reset_ctl *reset_ctl) in ast2600_reset_assert() argument
43 if (reset_ctl->id < 32) in ast2600_reset_assert()
44 writel(BIT(reset_ctl->id), scu->modrst_ctrl1); in ast2600_reset_assert()
51 static int ast2600_reset_deassert(struct reset_ctl *reset_ctl) in ast2600_reset_deassert() argument
58 if (reset_ctl->id < 32) in ast2600_reset_deassert()
59 writel(BIT(reset_ctl->id), scu->modrst_clr1); in ast2600_reset_deassert()
[all …]
A Dreset-ast2500.c21 static int ast2500_reset_request(struct reset_ctl *reset_ctl) in ast2500_reset_request() argument
24 reset_ctl->dev, reset_ctl->id); in ast2500_reset_request()
29 static int ast2500_reset_free(struct reset_ctl *reset_ctl) in ast2500_reset_free() argument
32 reset_ctl->dev, reset_ctl->id); in ast2500_reset_free()
37 static int ast2500_reset_assert(struct reset_ctl *reset_ctl) in ast2500_reset_assert() argument
42 debug("%s: reset_ctl->id: %lu\n", __func__, reset_ctl->id); in ast2500_reset_assert()
44 if (reset_ctl->id < 32) in ast2500_reset_assert()
45 setbits_le32(&scu->sysreset_ctrl1, BIT(reset_ctl->id)); in ast2500_reset_assert()
52 static int ast2500_reset_deassert(struct reset_ctl *reset_ctl) in ast2500_reset_deassert() argument
59 if (reset_ctl->id < 32) in ast2500_reset_deassert()
[all …]
A Dreset-rockchip.c30 static int rockchip_reset_request(struct reset_ctl *reset_ctl) in rockchip_reset_request() argument
35 reset_ctl, reset_ctl->dev, reset_ctl->id, priv->reset_reg_num); in rockchip_reset_request()
43 static int rockchip_reset_free(struct reset_ctl *reset_ctl) in rockchip_reset_free() argument
46 reset_ctl->dev, reset_ctl->id); in rockchip_reset_free()
51 static int rockchip_reset_assert(struct reset_ctl *reset_ctl) in rockchip_reset_assert() argument
54 int bank = reset_ctl->id / ROCKCHIP_RESET_NUM_IN_REG; in rockchip_reset_assert()
55 int offset = reset_ctl->id % ROCKCHIP_RESET_NUM_IN_REG; in rockchip_reset_assert()
58 reset_ctl, reset_ctl->dev, reset_ctl->id, in rockchip_reset_assert()
66 static int rockchip_reset_deassert(struct reset_ctl *reset_ctl) in rockchip_reset_deassert() argument
69 int bank = reset_ctl->id / ROCKCHIP_RESET_NUM_IN_REG; in rockchip_reset_deassert()
[all …]
A Dsandbox-reset.c25 static int sandbox_reset_request(struct reset_ctl *reset_ctl) in sandbox_reset_request() argument
29 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in sandbox_reset_request()
31 if (reset_ctl->id >= SANDBOX_RESET_SIGNALS) in sandbox_reset_request()
34 sbr->signals[reset_ctl->id].requested = true; in sandbox_reset_request()
38 static int sandbox_reset_free(struct reset_ctl *reset_ctl) in sandbox_reset_free() argument
42 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in sandbox_reset_free()
44 sbr->signals[reset_ctl->id].requested = false; in sandbox_reset_free()
48 static int sandbox_reset_assert(struct reset_ctl *reset_ctl) in sandbox_reset_assert() argument
54 sbr->signals[reset_ctl->id].asserted = true; in sandbox_reset_assert()
59 static int sandbox_reset_deassert(struct reset_ctl *reset_ctl) in sandbox_reset_deassert() argument
[all …]
A Dreset-sunxi.c32 static int sunxi_reset_request(struct reset_ctl *reset_ctl) in sunxi_reset_request() argument
36 debug("%s: (RST#%ld)\n", __func__, reset_ctl->id); in sunxi_reset_request()
38 if (reset_ctl->id >= priv->count) in sunxi_reset_request()
44 static int sunxi_reset_free(struct reset_ctl *reset_ctl) in sunxi_reset_free() argument
46 debug("%s: (RST#%ld)\n", __func__, reset_ctl->id); in sunxi_reset_free()
51 static int sunxi_set_reset(struct reset_ctl *reset_ctl, bool on) in sunxi_set_reset() argument
63 reset_ctl->id, reset->off, ilog2(reset->bit)); in sunxi_set_reset()
76 static int sunxi_reset_assert(struct reset_ctl *reset_ctl) in sunxi_reset_assert() argument
78 return sunxi_set_reset(reset_ctl, false); in sunxi_reset_assert()
81 static int sunxi_reset_deassert(struct reset_ctl *reset_ctl) in sunxi_reset_deassert() argument
[all …]
A Dstm32-reset.c30 static int stm32_reset_request(struct reset_ctl *reset_ctl) in stm32_reset_request() argument
35 static int stm32_reset_free(struct reset_ctl *reset_ctl) in stm32_reset_free() argument
40 static int stm32_reset_assert(struct reset_ctl *reset_ctl) in stm32_reset_assert() argument
43 int bank = (reset_ctl->id / BITS_PER_LONG) * 4; in stm32_reset_assert()
44 int offset = reset_ctl->id % BITS_PER_LONG; in stm32_reset_assert()
47 reset_ctl->id, bank, offset); in stm32_reset_assert()
49 if (dev_get_driver_data(reset_ctl->dev) == STM32MP1) in stm32_reset_assert()
61 static int stm32_reset_deassert(struct reset_ctl *reset_ctl) in stm32_reset_deassert() argument
64 int bank = (reset_ctl->id / BITS_PER_LONG) * 4; in stm32_reset_deassert()
65 int offset = reset_ctl->id % BITS_PER_LONG; in stm32_reset_deassert()
[all …]
A Dreset-meson.c25 static int meson_reset_request(struct reset_ctl *reset_ctl) in meson_reset_request() argument
27 if (reset_ctl->id > (REG_COUNT * BITS_PER_REG)) in meson_reset_request()
33 static int meson_reset_free(struct reset_ctl *reset_ctl) in meson_reset_free() argument
38 static int meson_reset_level(struct reset_ctl *reset_ctl, bool assert) in meson_reset_level() argument
40 struct meson_reset_priv *priv = dev_get_priv(reset_ctl->dev); in meson_reset_level()
41 uint bank = reset_ctl->id / BITS_PER_REG; in meson_reset_level()
42 uint offset = reset_ctl->id % BITS_PER_REG; in meson_reset_level()
56 static int meson_reset_assert(struct reset_ctl *reset_ctl) in meson_reset_assert() argument
58 return meson_reset_level(reset_ctl, true); in meson_reset_assert()
61 static int meson_reset_deassert(struct reset_ctl *reset_ctl) in meson_reset_deassert() argument
[all …]
A Dreset-raspberrypi.c13 static int raspberrypi_reset_request(struct reset_ctl *reset_ctl) in raspberrypi_reset_request() argument
15 if (reset_ctl->id >= RASPBERRYPI_FIRMWARE_RESET_NUM_IDS) in raspberrypi_reset_request()
21 static int raspberrypi_reset_free(struct reset_ctl *reset_ctl) in raspberrypi_reset_free() argument
26 static int raspberrypi_reset_assert(struct reset_ctl *reset_ctl) in raspberrypi_reset_assert() argument
28 switch (reset_ctl->id) { in raspberrypi_reset_assert()
37 static int raspberrypi_reset_deassert(struct reset_ctl *reset_ctl) in raspberrypi_reset_deassert() argument
A Dreset-socfpga.c65 static int socfpga_reset_assert(struct reset_ctl *reset_ctl) in socfpga_reset_assert() argument
67 struct socfpga_reset_data *data = dev_get_priv(reset_ctl->dev); in socfpga_reset_assert()
68 int id = reset_ctl->id; in socfpga_reset_assert()
77 static int socfpga_reset_deassert(struct reset_ctl *reset_ctl) in socfpga_reset_deassert() argument
79 struct socfpga_reset_data *data = dev_get_priv(reset_ctl->dev); in socfpga_reset_deassert()
80 int id = reset_ctl->id; in socfpga_reset_deassert()
92 static int socfpga_reset_request(struct reset_ctl *reset_ctl) in socfpga_reset_request() argument
95 reset_ctl, reset_ctl->dev, reset_ctl->id); in socfpga_reset_request()
100 static int socfpga_reset_free(struct reset_ctl *reset_ctl) in socfpga_reset_free() argument
102 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in socfpga_reset_free()
[all …]
A Dreset-mtmips.c21 static int mtmips_reset_request(struct reset_ctl *reset_ctl) in mtmips_reset_request() argument
26 static int mtmips_reset_free(struct reset_ctl *reset_ctl) in mtmips_reset_free() argument
31 static int mtmips_reset_assert(struct reset_ctl *reset_ctl) in mtmips_reset_assert() argument
33 struct mtmips_reset_priv *priv = dev_get_priv(reset_ctl->dev); in mtmips_reset_assert()
35 setbits_32(priv->base, BIT(reset_ctl->id)); in mtmips_reset_assert()
40 static int mtmips_reset_deassert(struct reset_ctl *reset_ctl) in mtmips_reset_deassert() argument
42 struct mtmips_reset_priv *priv = dev_get_priv(reset_ctl->dev); in mtmips_reset_deassert()
44 clrbits_32(priv->base, BIT(reset_ctl->id)); in mtmips_reset_deassert()
A Dreset-mediatek.c27 static int mediatek_reset_request(struct reset_ctl *reset_ctl) in mediatek_reset_request() argument
32 static int mediatek_reset_free(struct reset_ctl *reset_ctl) in mediatek_reset_free() argument
37 static int mediatek_reset_assert(struct reset_ctl *reset_ctl) in mediatek_reset_assert() argument
39 struct mediatek_reset_priv *priv = dev_get_priv(reset_ctl->dev); in mediatek_reset_assert()
40 int id = reset_ctl->id; in mediatek_reset_assert()
49 static int mediatek_reset_deassert(struct reset_ctl *reset_ctl) in mediatek_reset_deassert() argument
51 struct mediatek_reset_priv *priv = dev_get_priv(reset_ctl->dev); in mediatek_reset_deassert()
52 int id = reset_ctl->id; in mediatek_reset_deassert()
A Dsti-reset.c227 static int sti_reset_program_hw(struct reset_ctl *reset_ctl, int assert) in sti_reset_program_hw() argument
229 struct udevice *dev = reset_ctl->dev; in sti_reset_program_hw()
238 if (reset_ctl->id >= reset_desc->nr_channels) in sti_reset_program_hw()
244 ch = &reset_desc->channels[reset_ctl->id]; in sti_reset_program_hw()
258 reset_ctl, reset_ctl->dev, reset_ctl->id); in sti_reset_program_hw()
275 reset_ctl, reset_ctl->dev, reset_ctl->id); in sti_reset_program_hw()
283 static int sti_reset_request(struct reset_ctl *reset_ctl) in sti_reset_request() argument
288 static int sti_reset_free(struct reset_ctl *reset_ctl) in sti_reset_free() argument
293 static int sti_reset_assert(struct reset_ctl *reset_ctl) in sti_reset_assert() argument
295 return sti_reset_program_hw(reset_ctl, true); in sti_reset_assert()
[all …]
A Dreset-uniphier.c184 static int uniphier_reset_request(struct reset_ctl *reset_ctl) in uniphier_reset_request() argument
189 static int uniphier_reset_free(struct reset_ctl *reset_ctl) in uniphier_reset_free() argument
194 static int uniphier_reset_update(struct reset_ctl *reset_ctl, int assert) in uniphier_reset_update() argument
196 struct uniphier_reset_priv *priv = dev_get_priv(reset_ctl->dev); in uniphier_reset_update()
197 unsigned long id = reset_ctl->id; in uniphier_reset_update()
223 dev_err(reset_ctl->dev, "reset_id=%lu was not handled\n", id); in uniphier_reset_update()
228 static int uniphier_reset_assert(struct reset_ctl *reset_ctl) in uniphier_reset_assert() argument
230 return uniphier_reset_update(reset_ctl, 1); in uniphier_reset_assert()
233 static int uniphier_reset_deassert(struct reset_ctl *reset_ctl) in uniphier_reset_deassert() argument
235 return uniphier_reset_update(reset_ctl, 0); in uniphier_reset_deassert()
A Dreset-scmi.c13 static int scmi_reset_set_level(struct reset_ctl *rst, bool assert_not_deassert) in scmi_reset_set_level()
33 static int scmi_reset_assert(struct reset_ctl *rst) in scmi_reset_assert()
38 static int scmi_reset_deassert(struct reset_ctl *rst) in scmi_reset_deassert()
43 static int scmi_reset_request(struct reset_ctl *rst) in scmi_reset_request()
65 static int scmi_reset_rfree(struct reset_ctl *rst) in scmi_reset_rfree()
A Dreset-ti-sci.c46 static int ti_sci_reset_of_xlate(struct reset_ctl *rst, in ti_sci_reset_of_xlate()
66 static int ti_sci_reset_request(struct reset_ctl *rst) in ti_sci_reset_request()
72 static int ti_sci_reset_free(struct reset_ctl *rst) in ti_sci_reset_free()
93 static int ti_sci_reset_set(struct reset_ctl *rst, bool assert) in ti_sci_reset_set()
134 static int ti_sci_reset_assert(struct reset_ctl *rst) in ti_sci_reset_assert()
151 static int ti_sci_reset_deassert(struct reset_ctl *rst) in ti_sci_reset_deassert()
169 static int ti_sci_reset_status(struct reset_ctl *rst) in ti_sci_reset_status()
A Dreset-bcm6345.c25 static int bcm6345_reset_assert(struct reset_ctl *rst) in bcm6345_reset_assert()
35 static int bcm6345_reset_deassert(struct reset_ctl *rst) in bcm6345_reset_deassert()
45 static int bcm6345_reset_free(struct reset_ctl *rst) in bcm6345_reset_free()
50 static int bcm6345_reset_request(struct reset_ctl *rst) in bcm6345_reset_request()
A Dreset-hisilicon.c19 static int hisi_reset_deassert(struct reset_ctl *rst) in hisi_reset_deassert()
34 static int hisi_reset_assert(struct reset_ctl *rst) in hisi_reset_assert()
49 static int hisi_reset_free(struct reset_ctl *rst) in hisi_reset_free()
54 static int hisi_reset_request(struct reset_ctl *rst) in hisi_reset_request()
59 static int hisi_reset_of_xlate(struct reset_ctl *rst, in hisi_reset_of_xlate()
A Dreset-sifive.c24 static int sifive_rst_trigger(struct reset_ctl *rst, bool level) in sifive_rst_trigger()
43 static int sifive_reset_assert(struct reset_ctl *rst) in sifive_reset_assert()
48 static int sifive_reset_deassert(struct reset_ctl *rst) in sifive_reset_deassert()
53 static int sifive_reset_request(struct reset_ctl *rst) in sifive_reset_request()
66 static int sifive_reset_free(struct reset_ctl *rst) in sifive_reset_free()
A Dreset-syscon.c22 static int syscon_reset_request(struct reset_ctl *rst) in syscon_reset_request()
32 static int syscon_reset_assert(struct reset_ctl *rst) in syscon_reset_assert()
40 static int syscon_reset_deassert(struct reset_ctl *rst) in syscon_reset_deassert()
/u-boot/drivers/remoteproc/
A Dstm32_copro.c25 struct reset_ctl reset_ctl; member
26 struct reset_ctl hold_boot;
42 ret = reset_get_by_name(dev, "mcu_rst", &priv->reset_ctl); in stm32_copro_probe()
108 ret = reset_assert(&priv->reset_ctl); in stm32_copro_load()
175 ret = reset_assert(&priv->reset_ctl); in stm32_copro_reset()

Completed in 25 milliseconds

1234