/* stm32_copro_start() - Start the STM32 remote processor @dev: corresponding STM32 remote processor device  */
static int stm32_copro_start(struct udevice *dev)
/* stm32_copro_start() - Start the STM32 remote processor @dev: corresponding STM32 remote processor device  */
static int stm32_copro_start(struct udevice *dev)
{
	struct stm32_copro_privdata *priv;
	int ret;
	priv = dev_get_priv(dev);
	ret = stm32_copro_set_hold_boot(dev, false);
	if (ret)
		return ret;
	ret = stm32_copro_set_hold_boot(dev, true);
	writel(ret ? TAMP_COPRO_STATE_OFF : TAMP_COPRO_STATE_CRUN,
	       TAMP_COPRO_STATE);
	if (!ret)
		writel(priv->rsc_table_addr, TAMP_COPRO_RSC_TBL_ADDRESS);
	return ret;
}