linux/drivers/gpu/drm/logicvc/logicvc_regs.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2019-2022 Bootlin
 * Author: Paul Kocialkowski <[email protected]>
 *
 * Copyright (C) 2014 Xylon d.o.o.
 * Author: Davor Joja <[email protected]>
 */

#ifndef _LOGICVC_REGS_H_
#define _LOGICVC_REGS_H_

#define LOGICVC_DIMENSIONS_MAX

#define LOGICVC_HSYNC_FRONT_PORCH_REG
#define LOGICVC_HSYNC_REG
#define LOGICVC_HSYNC_BACK_PORCH_REG
#define LOGICVC_HRES_REG
#define LOGICVC_VSYNC_FRONT_PORCH_REG
#define LOGICVC_VSYNC_REG
#define LOGICVC_VSYNC_BACK_PORCH_REG
#define LOGICVC_VRES_REG

#define LOGICVC_CTRL_REG
#define LOGICVC_CTRL_CLOCK_INVERT
#define LOGICVC_CTRL_PIXEL_INVERT
#define LOGICVC_CTRL_DE_INVERT
#define LOGICVC_CTRL_DE_ENABLE
#define LOGICVC_CTRL_VSYNC_INVERT
#define LOGICVC_CTRL_VSYNC_ENABLE
#define LOGICVC_CTRL_HSYNC_INVERT
#define LOGICVC_CTRL_HSYNC_ENABLE

#define LOGICVC_DTYPE_REG
#define LOGICVC_BACKGROUND_COLOR_REG

#define LOGICVC_BUFFER_SEL_REG
#define LOGICVC_BUFFER_SEL_VALUE(i, v)
#define LOGICVC_BUFFER_SEL_MAX

#define LOGICVC_DOUBLE_CLUT_REG

#define LOGICVC_INT_STAT_REG
#define LOGICVC_INT_STAT_V_SYNC

#define LOGICVC_INT_MASK_REG
#define LOGICVC_INT_MASK_V_SYNC

#define LOGICVC_POWER_CTRL_REG
#define LOGICVC_POWER_CTRL_BACKLIGHT_ENABLE
#define LOGICVC_POWER_CTRL_VDD_ENABLE
#define LOGICVC_POWER_CTRL_VEE_ENABLE
#define LOGICVC_POWER_CTRL_VIDEO_ENABLE

#define LOGICVC_IP_VERSION_REG
#define LOGICVC_IP_VERSION_MAJOR_MASK
#define LOGICVC_IP_VERSION_MINOR_MASK
#define LOGICVC_IP_VERSION_LEVEL_MASK

#define LOGICVC_LAYER_ADDRESS_REG(i)
#define LOGICVC_LAYER_HOFFSET_REG(i)

#define LOGICVC_LAYER_VOFFSET_REG(i)
#define LOGICVC_LAYER_VOFFSET_MAX

#define LOGICVC_LAYER_HPOSITION_REG(i)
#define LOGICVC_LAYER_VPOSITION_REG(i)
#define LOGICVC_LAYER_WIDTH_REG(i)
#define LOGICVC_LAYER_HEIGHT_REG(i)
#define LOGICVC_LAYER_ALPHA_REG(i)

#define LOGICVC_LAYER_CTRL_REG(i)
#define LOGICVC_LAYER_CTRL_ENABLE
#define LOGICVC_LAYER_CTRL_COLOR_KEY_DISABLE
#define LOGICVC_LAYER_CTRL_PIXEL_FORMAT_INVERT

#define LOGICVC_LAYER_COLOR_KEY_REG(i)

#endif