/* stm32_copro_reset() - Reset the STM32 remote processor @dev: corresponding STM32 remote processor device  */
static int stm32_copro_reset(struct udevice *dev)
/* stm32_copro_reset() - Reset the STM32 remote processor @dev: corresponding STM32 remote processor device  */
static int stm32_copro_reset(struct udevice *dev)
{
	struct stm32_copro_privdata *priv;
	int ret;
	priv = dev_get_priv(dev);
	ret = stm32_copro_set_hold_boot(dev, true);
	if (ret)
		return ret;
	ret = reset_assert(&priv->reset_ctl);
	if (ret) {
		dev_err(dev, "Unable to assert reset line (ret=%d)\n", ret);
		return ret;
	}
	writel(TAMP_COPRO_STATE_OFF, TAMP_COPRO_STATE);
	return 0;
}