linux/drivers/media/platform/chips-media/coda/coda-gdi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Coda multi-standard codec IP
 *
 * Copyright (C) 2014 Philipp Zabel, Pengutronix
 */

#include <linux/bitops.h>
#include "coda.h"

#define XY2_INVERT
#define XY2_ZERO
#define XY2_TB_XOR
#define XY2_XYSEL
#define XY2_Y
#define XY2_X

#define XY2(luma_sel, luma_bit, chroma_sel, chroma_bit)

static const u16 xy2ca_zero_map[16] =;

static const u16 xy2ca_tiled_map[16] =;

/*
 * RA[15:0], CA[15:8] are hardwired to contain the 24-bit macroblock
 * start offset (macroblock size is 16x16 for luma, 16x8 for chroma).
 * Bits CA[4:0] are set using XY2CA above. BA[3:0] seems to be unused.
 */

#define RBC_CA
#define RBC_BA
#define RBC_RA
#define RBC_ZERO

#define RBC(luma_sel, luma_bit, chroma_sel, chroma_bit)

static const u16 rbc2axi_tiled_map[32] =;

void coda_set_gdi_regs(struct coda_ctx *ctx)
{}