/external/u-boot/drivers/reset/ |
D | reset-uclass.c | 17 static int reset_of_xlate_default(struct reset_ctl *reset_ctl, in reset_of_xlate_default() argument 20 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in reset_of_xlate_default() 27 reset_ctl->id = args->args[0]; in reset_of_xlate_default() 33 struct reset_ctl *reset_ctl) in reset_get_by_index() argument 41 reset_ctl); in reset_get_by_index() 42 reset_ctl->dev = NULL; in reset_get_by_index() 62 reset_ctl->dev = dev_reset; in reset_get_by_index() 64 ret = ops->of_xlate(reset_ctl, &args); in reset_get_by_index() 66 ret = reset_of_xlate_default(reset_ctl, &args); in reset_get_by_index() 72 ret = ops->request(reset_ctl); in reset_get_by_index() [all …]
|
D | tegra186-reset.c | 12 static int tegra186_reset_request(struct reset_ctl *reset_ctl) in tegra186_reset_request() argument 14 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra186_reset_request() 15 reset_ctl->dev, reset_ctl->id); in tegra186_reset_request() 20 static int tegra186_reset_free(struct reset_ctl *reset_ctl) in tegra186_reset_free() argument 22 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra186_reset_free() 23 reset_ctl->dev, reset_ctl->id); in tegra186_reset_free() 28 static int tegra186_reset_common(struct reset_ctl *reset_ctl, in tegra186_reset_common() argument 35 req.reset_id = reset_ctl->id; in tegra186_reset_common() 37 ret = misc_call(reset_ctl->dev->parent, MRQ_RESET, &req, sizeof(req), in tegra186_reset_common() 45 static int tegra186_reset_assert(struct reset_ctl *reset_ctl) in tegra186_reset_assert() argument [all …]
|
D | tegra-car-reset.c | 12 static int tegra_car_reset_request(struct reset_ctl *reset_ctl) in tegra_car_reset_request() argument 14 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra_car_reset_request() 15 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_request() 18 if (reset_ctl->id >= PERIPH_ID_COUNT) in tegra_car_reset_request() 24 static int tegra_car_reset_free(struct reset_ctl *reset_ctl) in tegra_car_reset_free() argument 26 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra_car_reset_free() 27 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_free() 32 static int tegra_car_reset_assert(struct reset_ctl *reset_ctl) in tegra_car_reset_assert() argument 34 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in tegra_car_reset_assert() 35 reset_ctl->dev, reset_ctl->id); in tegra_car_reset_assert() [all …]
|
D | reset-rockchip.c | 26 static int rockchip_reset_request(struct reset_ctl *reset_ctl) in rockchip_reset_request() argument 28 struct rockchip_reset_priv *priv = dev_get_priv(reset_ctl->dev); in rockchip_reset_request() 31 reset_ctl, reset_ctl->dev, reset_ctl->id, priv->reset_reg_num); in rockchip_reset_request() 33 if (reset_ctl->id / ROCKCHIP_RESET_NUM_IN_REG >= priv->reset_reg_num) in rockchip_reset_request() 39 static int rockchip_reset_free(struct reset_ctl *reset_ctl) in rockchip_reset_free() argument 41 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in rockchip_reset_free() 42 reset_ctl->dev, reset_ctl->id); in rockchip_reset_free() 47 static int rockchip_reset_assert(struct reset_ctl *reset_ctl) in rockchip_reset_assert() argument 49 struct rockchip_reset_priv *priv = dev_get_priv(reset_ctl->dev); in rockchip_reset_assert() 50 int bank = reset_ctl->id / ROCKCHIP_RESET_NUM_IN_REG; in rockchip_reset_assert() [all …]
|
D | reset-socfpga.c | 30 static int socfpga_reset_assert(struct reset_ctl *reset_ctl) in socfpga_reset_assert() argument 32 struct socfpga_reset_data *data = dev_get_priv(reset_ctl->dev); in socfpga_reset_assert() 33 int id = reset_ctl->id; in socfpga_reset_assert() 42 static int socfpga_reset_deassert(struct reset_ctl *reset_ctl) in socfpga_reset_deassert() argument 44 struct socfpga_reset_data *data = dev_get_priv(reset_ctl->dev); in socfpga_reset_deassert() 45 int id = reset_ctl->id; in socfpga_reset_deassert() 54 static int socfpga_reset_request(struct reset_ctl *reset_ctl) in socfpga_reset_request() argument 57 reset_ctl, reset_ctl->dev, reset_ctl->id); in socfpga_reset_request() 62 static int socfpga_reset_free(struct reset_ctl *reset_ctl) in socfpga_reset_free() argument 64 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in socfpga_reset_free() [all …]
|
D | sandbox-reset.c | 22 static int sandbox_reset_request(struct reset_ctl *reset_ctl) in sandbox_reset_request() argument 24 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in sandbox_reset_request() 26 if (reset_ctl->id >= SANDBOX_RESET_SIGNALS) in sandbox_reset_request() 32 static int sandbox_reset_free(struct reset_ctl *reset_ctl) in sandbox_reset_free() argument 34 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in sandbox_reset_free() 39 static int sandbox_reset_assert(struct reset_ctl *reset_ctl) in sandbox_reset_assert() argument 41 struct sandbox_reset *sbr = dev_get_priv(reset_ctl->dev); in sandbox_reset_assert() 43 debug("%s(reset_ctl=%p)\n", __func__, reset_ctl); in sandbox_reset_assert() 45 sbr->signals[reset_ctl->id].asserted = true; in sandbox_reset_assert() 50 static int sandbox_reset_deassert(struct reset_ctl *reset_ctl) in sandbox_reset_deassert() argument [all …]
|
D | stm32-reset.c | 25 static int stm32_reset_request(struct reset_ctl *reset_ctl) in stm32_reset_request() argument 30 static int stm32_reset_free(struct reset_ctl *reset_ctl) in stm32_reset_free() argument 35 static int stm32_reset_assert(struct reset_ctl *reset_ctl) in stm32_reset_assert() argument 37 struct stm32_reset_priv *priv = dev_get_priv(reset_ctl->dev); in stm32_reset_assert() 38 int bank = (reset_ctl->id / BITS_PER_LONG) * 4; in stm32_reset_assert() 39 int offset = reset_ctl->id % BITS_PER_LONG; in stm32_reset_assert() 41 reset_ctl->id, bank, offset); in stm32_reset_assert() 43 if (dev_get_driver_data(reset_ctl->dev) == RCC_STM32MP) in stm32_reset_assert() 52 static int stm32_reset_deassert(struct reset_ctl *reset_ctl) in stm32_reset_deassert() argument 54 struct stm32_reset_priv *priv = dev_get_priv(reset_ctl->dev); in stm32_reset_deassert() [all …]
|
D | reset-meson.c | 22 static int meson_reset_request(struct reset_ctl *reset_ctl) in meson_reset_request() argument 24 if (reset_ctl->id > (REG_COUNT * BITS_PER_REG)) in meson_reset_request() 30 static int meson_reset_free(struct reset_ctl *reset_ctl) in meson_reset_free() argument 35 static int meson_reset_level(struct reset_ctl *reset_ctl, bool assert) in meson_reset_level() argument 37 struct meson_reset_priv *priv = dev_get_priv(reset_ctl->dev); in meson_reset_level() 38 uint bank = reset_ctl->id / BITS_PER_REG; in meson_reset_level() 39 uint offset = reset_ctl->id % BITS_PER_REG; in meson_reset_level() 53 static int meson_reset_assert(struct reset_ctl *reset_ctl) in meson_reset_assert() argument 55 return meson_reset_level(reset_ctl, true); in meson_reset_assert() 58 static int meson_reset_deassert(struct reset_ctl *reset_ctl) in meson_reset_deassert() argument [all …]
|
D | sti-reset.c | 223 static int sti_reset_program_hw(struct reset_ctl *reset_ctl, int assert) in sti_reset_program_hw() argument 225 struct udevice *dev = reset_ctl->dev; in sti_reset_program_hw() 234 if (reset_ctl->id >= reset_desc->nr_channels) in sti_reset_program_hw() 238 base = sti_reset_get_regmap(reset_desc->channels[reset_ctl->id].compatible); in sti_reset_program_hw() 240 ch = &reset_desc->channels[reset_ctl->id]; in sti_reset_program_hw() 254 reset_ctl, reset_ctl->dev, reset_ctl->id); in sti_reset_program_hw() 271 reset_ctl, reset_ctl->dev, reset_ctl->id); in sti_reset_program_hw() 279 static int sti_reset_request(struct reset_ctl *reset_ctl) in sti_reset_request() argument 284 static int sti_reset_free(struct reset_ctl *reset_ctl) in sti_reset_free() argument 289 static int sti_reset_assert(struct reset_ctl *reset_ctl) in sti_reset_assert() argument [all …]
|
D | ast2500-reset.c | 37 static int ast2500_reset_assert(struct reset_ctl *reset_ctl) in ast2500_reset_assert() argument 39 struct ast2500_reset_priv *priv = dev_get_priv(reset_ctl->dev); in ast2500_reset_assert() 48 reset_mode = ast_reset_mode_from_flags(reset_ctl->id); in ast2500_reset_assert() 49 reset_mask = ast_reset_mask_from_flags(reset_ctl->id); in ast2500_reset_assert() 57 ret = wdt_expire_now(priv->wdt, reset_ctl->id); in ast2500_reset_assert() 62 ret = wdt_expire_now(priv->wdt, reset_ctl->id); in ast2500_reset_assert() 68 static int ast2500_reset_request(struct reset_ctl *reset_ctl) in ast2500_reset_request() argument 70 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in ast2500_reset_request() 71 reset_ctl->dev, reset_ctl->id); in ast2500_reset_request()
|
D | reset-uniphier.c | 181 static int uniphier_reset_request(struct reset_ctl *reset_ctl) in uniphier_reset_request() argument 186 static int uniphier_reset_free(struct reset_ctl *reset_ctl) in uniphier_reset_free() argument 191 static int uniphier_reset_update(struct reset_ctl *reset_ctl, int assert) in uniphier_reset_update() argument 193 struct uniphier_reset_priv *priv = dev_get_priv(reset_ctl->dev); in uniphier_reset_update() 194 unsigned long id = reset_ctl->id; in uniphier_reset_update() 220 dev_err(reset_ctl->dev, "reset_id=%lu was not handled\n", id); in uniphier_reset_update() 225 static int uniphier_reset_assert(struct reset_ctl *reset_ctl) in uniphier_reset_assert() argument 227 return uniphier_reset_update(reset_ctl, 1); in uniphier_reset_assert() 230 static int uniphier_reset_deassert(struct reset_ctl *reset_ctl) in uniphier_reset_deassert() argument 232 return uniphier_reset_update(reset_ctl, 0); in uniphier_reset_deassert()
|
D | reset-bcm6345.c | 21 static int bcm6345_reset_assert(struct reset_ctl *rst) in bcm6345_reset_assert() 31 static int bcm6345_reset_deassert(struct reset_ctl *rst) in bcm6345_reset_deassert() 41 static int bcm6345_reset_free(struct reset_ctl *rst) in bcm6345_reset_free() 46 static int bcm6345_reset_request(struct reset_ctl *rst) in bcm6345_reset_request()
|
/external/u-boot/include/ |
D | reset.h | 53 struct reset_ctl { struct 76 struct reset_ctl *resets; argument 98 struct reset_ctl *reset_ctl); 133 struct reset_ctl *reset_ctl); 142 int reset_request(struct reset_ctl *reset_ctl); 151 int reset_free(struct reset_ctl *reset_ctl); 165 int reset_assert(struct reset_ctl *reset_ctl); 193 int reset_deassert(struct reset_ctl *reset_ctl); 220 int reset_release_all(struct reset_ctl *reset_ctl, int count); 240 struct reset_ctl *reset_ctl) in reset_get_by_index() argument [all …]
|
D | reset-uclass.h | 39 int (*of_xlate)(struct reset_ctl *reset_ctl, 52 int (*request)(struct reset_ctl *reset_ctl); 61 int (*free)(struct reset_ctl *reset_ctl); 71 int (*rst_assert)(struct reset_ctl *reset_ctl); 78 int (*rst_deassert)(struct reset_ctl *reset_ctl);
|
/external/u-boot/drivers/i2c/ |
D | tegra_i2c.c | 31 struct reset_ctl reset_ctl; member 64 reset_assert(&i2c_bus->reset_ctl); in i2c_reset_controller() 66 reset_deassert(&i2c_bus->reset_ctl); in i2c_reset_controller() 77 ret = reset_assert(&i2c_bus->reset_ctl); in i2c_init_clock() 86 ret = reset_deassert(&i2c_bus->reset_ctl); in i2c_init_clock() 370 ret = reset_get_by_name(dev, "i2c", &i2c_bus->reset_ctl); in tegra_i2c_probe()
|
D | designware_i2c.c | 37 struct reset_ctl reset_ctl; member 554 ret = reset_get_by_name(bus, "i2c", &priv->reset_ctl); 558 if (&priv->reset_ctl) 559 reset_deassert(&priv->reset_ctl);
|
/external/u-boot/board/freescale/t208xrdb/ |
D | cpld.c | 33 CPLD_WRITE(reset_ctl, CPLD_LBMAP_RESET); in cpld_set_altbank() 43 CPLD_WRITE(reset_ctl, CPLD_LBMAP_RESET); in cpld_set_defbank()
|
D | t208xrdb.c | 106 reg = CPLD_READ(reset_ctl); in misc_init_r() 108 CPLD_WRITE(reset_ctl, reg); in misc_init_r()
|
/external/u-boot/arch/arm/mach-aspeed/ast2500/ |
D | sdram_ast2500.c | 330 struct reset_ctl reset_ctl; in ast2500_sdrammc_probe() local 348 ret = reset_get_by_index(dev, 0, &reset_ctl); in ast2500_sdrammc_probe() 354 ret = reset_assert(&reset_ctl); in ast2500_sdrammc_probe()
|
/external/u-boot/drivers/mmc/ |
D | stm32_sdmmc2.c | 26 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() 549 ret = reset_get_by_index(dev, 0, &priv->reset_ctl); in stm32_sdmmc2_probe()
|
D | tegra_mmc.c | 25 struct reset_ctl reset_ctl; member 622 ret = reset_get_by_name(dev, "sdhci", &priv->reset_ctl); in tegra_mmc_probe() 633 ret = reset_assert(&priv->reset_ctl); in tegra_mmc_probe() 642 ret = reset_deassert(&priv->reset_ctl); in tegra_mmc_probe()
|
/external/u-boot/drivers/spi/ |
D | stm32_qspi.c | 461 struct reset_ctl reset_ctl; in stm32_qspi_probe() local 489 ret = reset_get_by_index(bus, 0, &reset_ctl); in stm32_qspi_probe() 498 reset_assert(&reset_ctl); in stm32_qspi_probe() 500 reset_deassert(&reset_ctl); in stm32_qspi_probe()
|
/external/u-boot/drivers/phy/ |
D | sti_usb_phy.c | 37 struct reset_ctl global_ctl; 38 struct reset_ctl port_ctl;
|
/external/u-boot/drivers/usb/host/ |
D | ehci-generic.c | 23 struct reset_ctl *resets; 122 sizeof(struct reset_ctl), in ehci_usb_probe()
|
D | ohci-generic.c | 21 struct reset_ctl *resets; /* reset list */ 114 sizeof(struct reset_ctl), in ohci_usb_probe()
|