/* ipu_enable_channel() - enable an IPU channel. @channel: channel ID.  */
static int ipu_enable_channel(enum ipu_channel channel)
/* ipu_enable_channel() - enable an IPU channel. @channel: channel ID.  */
static int ipu_enable_channel(enum ipu_channel channel)
{
	uint32_t reg;
	writel(1UL << channel, IPU_CHA_CUR_BUF);
	switch (channel) {
	case IDMAC_SDC_0:
		ipu_channel_set_priority(channel, 1);
		break;
	default:
		break;
	}
	reg = readl(IDMAC_CHA_EN);
	writel(reg | (1UL << channel), IDMAC_CHA_EN);
	return 0;
}