/* sdc_set_window_pos() - set window position of the respective plane. @mx3fb: mx3fb context. @channel: IPU DMAC channel ID. @x_pos: X coordinate relative to the top left corner to place window at. @y_pos: Y coordinate relative to the top left corner to place window at.  */
static int sdc_set_window_pos(struct mx3fb_data *mx3fb, enum ipu_channel channel, int16_t x_pos, int16_t y_pos)
/* sdc_set_window_pos() - set window position of the respective plane. @mx3fb: mx3fb context. @channel: IPU DMAC channel ID. @x_pos: X coordinate relative to the top left corner to place window at. @y_pos: Y coordinate relative to the top left corner to place window at.  */
static int sdc_set_window_pos(struct mx3fb_data *mx3fb, enum ipu_channel channel, int16_t x_pos, int16_t y_pos)
{
	if (channel != IDMAC_SDC_0)
		return -EINVAL;
	x_pos += mx3fb->h_start_width;
	y_pos += mx3fb->v_start_width;
	mx3fb_write_reg(mx3fb, (x_pos << 16) | y_pos, SDC_BG_POS);
	return 0;
}