Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/u-boot/drivers/reset/
H A Dreset-uclass.c20 static int reset_of_xlate_default(struct reset_ctl *reset_ctl, in reset_of_xlate_default() argument
23 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in reset_of_xlate_default()
30 reset_ctl->id = args->args[0]; in reset_of_xlate_default()
36 struct reset_ctl *reset_ctl) in reset_get_by_index() argument
44 reset_ctl); in reset_get_by_index()
45 reset_ctl->dev = NULL; in reset_get_by_index()
65 reset_ctl->dev = dev_reset; in reset_get_by_index()
67 ret = ops->of_xlate(reset_ctl, &args); in reset_get_by_index()
69 ret = reset_of_xlate_default(reset_ctl, &args); in reset_get_by_index()
75 ret = ops->request(reset_ctl); in reset_get_by_index()
[all …]
H A Dtegra186-reset.c13 static int tegra186_reset_request(struct reset_ctl *reset_ctl) in tegra186_reset_request() argument
15 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra186_reset_request()
16 reset_ctl->dev, reset_ctl->id); in tegra186_reset_request()
21 static int tegra186_reset_free(struct reset_ctl *reset_ctl) in tegra186_reset_free() argument
23 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra186_reset_free()
24 reset_ctl->dev, reset_ctl->id); in tegra186_reset_free()
29 static int tegra186_reset_common(struct reset_ctl *reset_ctl, in tegra186_reset_common() argument
36 req.reset_id = reset_ctl->id; in tegra186_reset_common()
38 ret = misc_call(reset_ctl->dev->parent, MRQ_RESET, &req, sizeof(req), in tegra186_reset_common()
46 static int tegra186_reset_assert(struct reset_ctl *reset_ctl) in tegra186_reset_assert() argument
[all …]
H A Dreset-rockchip.c18 static int rockchip_reset_request(struct reset_ctl *reset_ctl) in rockchip_reset_request() argument
20 struct rockchip_reset_priv *priv = dev_get_priv(reset_ctl->dev); in rockchip_reset_request()
23 reset_ctl, reset_ctl->dev, reset_ctl->id, priv->sf_reset_num); in rockchip_reset_request()
25 if (reset_ctl->id / 16 >= priv->sf_reset_num) in rockchip_reset_request()
31 static int rockchip_reset_free(struct reset_ctl *reset_ctl) in rockchip_reset_free() argument
33 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in rockchip_reset_free()
34 reset_ctl->dev, reset_ctl->id); in rockchip_reset_free()
39 static int rockchip_reset_assert(struct reset_ctl *reset_ctl) in rockchip_reset_assert() argument
41 struct rockchip_reset_priv *priv = dev_get_priv(reset_ctl->dev); in rockchip_reset_assert()
42 int bank = reset_ctl->id / 16; in rockchip_reset_assert()
[all …]
H A Dtegra-car-reset.c13 static int tegra_car_reset_request(struct reset_ctl *reset_ctl) in tegra_car_reset_request() argument
15 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra_car_reset_request()
16 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_request()
19 if (reset_ctl->id >= PERIPH_ID_COUNT) in tegra_car_reset_request()
25 static int tegra_car_reset_free(struct reset_ctl *reset_ctl) in tegra_car_reset_free() argument
27 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra_car_reset_free()
28 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_free()
33 static int tegra_car_reset_assert(struct reset_ctl *reset_ctl) in tegra_car_reset_assert() argument
35 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra_car_reset_assert()
36 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_assert()
[all …]
H A Dsandbox-reset.c23 static int sandbox_reset_request(struct reset_ctl *reset_ctl) in sandbox_reset_request() argument
25 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in sandbox_reset_request()
27 if (reset_ctl->id >= SANDBOX_RESET_SIGNALS) in sandbox_reset_request()
33 static int sandbox_reset_free(struct reset_ctl *reset_ctl) in sandbox_reset_free() argument
35 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in sandbox_reset_free()
40 static int sandbox_reset_assert(struct reset_ctl *reset_ctl) in sandbox_reset_assert() argument
42 struct sandbox_reset *sbr = dev_get_priv(reset_ctl->dev); in sandbox_reset_assert()
44 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in sandbox_reset_assert()
46 sbr->signals[reset_ctl->id].asserted = true; in sandbox_reset_assert()
51 static int sandbox_reset_deassert(struct reset_ctl *reset_ctl) in sandbox_reset_deassert() argument
[all …]
H A Dsti-reset.c224 static int sti_reset_program_hw(struct reset_ctl *reset_ctl, int assert) in sti_reset_program_hw() argument
226 struct udevice *dev = reset_ctl->dev; in sti_reset_program_hw()
235 if (reset_ctl->id >= reset_desc->nr_channels) in sti_reset_program_hw()
239 base = sti_reset_get_regmap(reset_desc->channels[reset_ctl->id].compatible); in sti_reset_program_hw()
241 ch = &reset_desc->channels[reset_ctl->id]; in sti_reset_program_hw()
255 reset_ctl, reset_ctl->dev, reset_ctl->id); in sti_reset_program_hw()
272 reset_ctl, reset_ctl->dev, reset_ctl->id); in sti_reset_program_hw()
280 static int sti_reset_request(struct reset_ctl *reset_ctl) in sti_reset_request() argument
285 static int sti_reset_free(struct reset_ctl *reset_ctl) in sti_reset_free() argument
290 static int sti_reset_assert(struct reset_ctl *reset_ctl) in sti_reset_assert() argument
[all …]
H A Dast2500-reset.c40 static int ast2500_reset_assert(struct reset_ctl *reset_ctl) in ast2500_reset_assert() argument
42 struct ast2500_reset_priv *priv = dev_get_priv(reset_ctl->dev); in ast2500_reset_assert()
51 reset_mode = ast_reset_mode_from_flags(reset_ctl->id); in ast2500_reset_assert()
52 reset_mask = ast_reset_mask_from_flags(reset_ctl->id); in ast2500_reset_assert()
60 ret = wdt_expire_now(priv->wdt, reset_ctl->id); in ast2500_reset_assert()
65 ret = wdt_expire_now(priv->wdt, reset_ctl->id); in ast2500_reset_assert()
71 static int ast2500_reset_request(struct reset_ctl *reset_ctl) in ast2500_reset_request() argument
73 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in ast2500_reset_request()
74 reset_ctl->dev, reset_ctl->id); in ast2500_reset_request()
H A Dreset-uniphier.c174 static int uniphier_reset_request(struct reset_ctl *reset_ctl) in uniphier_reset_request() argument
179 static int uniphier_reset_free(struct reset_ctl *reset_ctl) in uniphier_reset_free() argument
184 static int uniphier_reset_update(struct reset_ctl *reset_ctl, int assert) in uniphier_reset_update() argument
186 struct uniphier_reset_priv *priv = dev_get_priv(reset_ctl->dev); in uniphier_reset_update()
187 unsigned long id = reset_ctl->id; in uniphier_reset_update()
217 static int uniphier_reset_assert(struct reset_ctl *reset_ctl) in uniphier_reset_assert() argument
219 return uniphier_reset_update(reset_ctl, 1); in uniphier_reset_assert()
222 static int uniphier_reset_deassert(struct reset_ctl *reset_ctl) in uniphier_reset_deassert() argument
224 return uniphier_reset_update(reset_ctl, 0); in uniphier_reset_deassert()
H 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()
H A Dreset-bcm6345.c22 static int bcm6345_reset_assert(struct reset_ctl *rst) in bcm6345_reset_assert()
32 static int bcm6345_reset_deassert(struct reset_ctl *rst) in bcm6345_reset_deassert()
42 static int bcm6345_reset_free(struct reset_ctl *rst) in bcm6345_reset_free()
47 static int bcm6345_reset_request(struct reset_ctl *rst) in bcm6345_reset_request()
/OK3568_Linux_fs/u-boot/include/
H A Dreset.h54 struct reset_ctl { struct
77 struct reset_ctl *resets; argument
99 struct reset_ctl *reset_ctl);
134 struct reset_ctl *reset_ctl);
143 int reset_request(struct reset_ctl *reset_ctl);
152 int reset_free(struct reset_ctl *reset_ctl);
166 int reset_assert(struct reset_ctl *reset_ctl);
194 int reset_deassert(struct reset_ctl *reset_ctl);
221 int reset_release_all(struct reset_ctl *reset_ctl, int count);
241 struct reset_ctl *reset_ctl) in reset_get_by_index() argument
[all …]
H A Dreset-uclass.h40 int (*of_xlate)(struct reset_ctl *reset_ctl,
53 int (*request)(struct reset_ctl *reset_ctl);
62 int (*free)(struct reset_ctl *reset_ctl);
72 int (*rst_assert)(struct reset_ctl *reset_ctl);
79 int (*rst_deassert)(struct reset_ctl *reset_ctl);
/OK3568_Linux_fs/u-boot/include/linux/usb/
H A Drockchip_phy_typec.h32 struct reset_ctl uphy_rst;
33 struct reset_ctl pipe_rst;
34 struct reset_ctl tcphy_rst;
/OK3568_Linux_fs/u-boot/drivers/i2c/
H A Dtegra_i2c.c34 struct reset_ctl reset_ctl; member
67 reset_assert(&i2c_bus->reset_ctl); in i2c_reset_controller()
69 reset_deassert(&i2c_bus->reset_ctl); in i2c_reset_controller()
80 ret = reset_assert(&i2c_bus->reset_ctl); in i2c_init_clock()
89 ret = reset_deassert(&i2c_bus->reset_ctl); in i2c_init_clock()
373 ret = reset_get_by_name(dev, "i2c", &i2c_bus->reset_ctl); in tegra_i2c_probe()
H A Dstm32f7_i2c.c808 struct reset_ctl reset_ctl; in stm32_i2c_probe() local
826 ret = reset_get_by_index(dev, 0, &reset_ctl); in stm32_i2c_probe()
830 reset_assert(&reset_ctl); in stm32_i2c_probe()
832 reset_deassert(&reset_ctl); in stm32_i2c_probe()
/OK3568_Linux_fs/u-boot/board/freescale/t208xrdb/
H A Dcpld.c34 CPLD_WRITE(reset_ctl, CPLD_LBMAP_RESET); in cpld_set_altbank()
44 CPLD_WRITE(reset_ctl, CPLD_LBMAP_RESET); in cpld_set_defbank()
H A Dt208xrdb.c107 reg = CPLD_READ(reset_ctl); in misc_init_r()
109 CPLD_WRITE(reset_ctl, reg); in misc_init_r()
/OK3568_Linux_fs/u-boot/drivers/net/
H A Ddwc_eth_qos.h55 struct reset_ctl reset_ctl; member
/OK3568_Linux_fs/u-boot/arch/arm/mach-aspeed/ast2500/
H A Dsdram_ast2500.c331 struct reset_ctl reset_ctl; in ast2500_sdrammc_probe() local
349 ret = reset_get_by_index(dev, 0, &reset_ctl); in ast2500_sdrammc_probe()
355 ret = reset_assert(&reset_ctl); in ast2500_sdrammc_probe()
/OK3568_Linux_fs/u-boot/drivers/mmc/
H A Dtegra_mmc.c28 struct reset_ctl reset_ctl; member
625 ret = reset_get_by_name(dev, "sdhci", &priv->reset_ctl); in tegra_mmc_probe()
636 ret = reset_assert(&priv->reset_ctl); in tegra_mmc_probe()
645 ret = reset_deassert(&priv->reset_ctl); in tegra_mmc_probe()
H A Dstm32_sdmmc2.c27 struct reset_ctl reset_ctl; member
446 reset_assert(&priv->reset_ctl); in stm32_sdmmc2_pwron()
448 reset_deassert(&priv->reset_ctl); in stm32_sdmmc2_pwron()
546 ret = reset_get_by_index(dev, 0, &priv->reset_ctl); in stm32_sdmmc2_probe()
/OK3568_Linux_fs/u-boot/drivers/phy/
H A Dsti_usb_phy.c38 struct reset_ctl global_ctl;
39 struct reset_ctl port_ctl;
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dehci-generic.c25 struct reset_ctl *resets;
120 sizeof(struct reset_ctl), in ehci_usb_probe()
H A Ddwc3-sti-glue.c39 struct reset_ctl powerdown_ctl;
40 struct reset_ctl softreset_ctl;
H A Dohci-generic.c23 struct reset_ctl *resets; /* reset list */
116 sizeof(struct reset_ctl), in ohci_usb_probe()

12