linux/drivers/gpu/drm/mxsfb/mxsfb_regs.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2010 Juergen Beisert, Pengutronix
 * Copyright (C) 2016 Marek Vasut <[email protected]>
 *
 * i.MX23/i.MX28/i.MX6SX MXSFB LCD controller driver.
 */

#ifndef __MXSFB_REGS_H__
#define __MXSFB_REGS_H__

#define REG_SET
#define REG_CLR

#define LCDC_CTRL
#define LCDC_CTRL1
#define LCDC_V3_TRANSFER_COUNT
#define LCDC_V4_CTRL2
#define LCDC_V4_TRANSFER_COUNT
#define LCDC_V4_CUR_BUF
#define LCDC_V4_NEXT_BUF
#define LCDC_V3_CUR_BUF
#define LCDC_V3_NEXT_BUF
#define LCDC_VDCTRL0
#define LCDC_VDCTRL1
#define LCDC_VDCTRL2
#define LCDC_VDCTRL3
#define LCDC_VDCTRL4
#define LCDC_V4_CRC_STAT
#define LCDC_V4_DEBUG0
#define LCDC_V3_DEBUG0
#define LCDC_AS_CTRL
#define LCDC_AS_BUF
#define LCDC_AS_NEXT_BUF
#define LCDC_AS_CLRKEYLOW
#define LCDC_AS_CLRKEYHIGH

#define CTRL_SFTRST
#define CTRL_CLKGATE
#define CTRL_BYPASS_COUNT
#define CTRL_VSYNC_MODE
#define CTRL_DOTCLK_MODE
#define CTRL_DATA_SELECT
#define CTRL_BUS_WIDTH_16
#define CTRL_BUS_WIDTH_8
#define CTRL_BUS_WIDTH_18
#define CTRL_BUS_WIDTH_24
#define CTRL_BUS_WIDTH_MASK
#define CTRL_WORD_LENGTH_16
#define CTRL_WORD_LENGTH_8
#define CTRL_WORD_LENGTH_18
#define CTRL_WORD_LENGTH_24
#define CTRL_MASTER
#define CTRL_DF16
#define CTRL_DF18
#define CTRL_DF24
#define CTRL_RUN

#define CTRL1_RECOVER_ON_UNDERFLOW
#define CTRL1_FIFO_CLEAR
#define CTRL1_SET_BYTE_PACKAGING(x)
#define CTRL1_GET_BYTE_PACKAGING(x)
#define CTRL1_CUR_FRAME_DONE_IRQ_EN
#define CTRL1_CUR_FRAME_DONE_IRQ

#define CTRL2_SET_OUTSTANDING_REQS_1
#define CTRL2_SET_OUTSTANDING_REQS_2
#define CTRL2_SET_OUTSTANDING_REQS_4
#define CTRL2_SET_OUTSTANDING_REQS_8
#define CTRL2_SET_OUTSTANDING_REQS_16
#define CTRL2_SET_OUTSTANDING_REQS_MASK

#define TRANSFER_COUNT_SET_VCOUNT(x)
#define TRANSFER_COUNT_GET_VCOUNT(x)
#define TRANSFER_COUNT_SET_HCOUNT(x)
#define TRANSFER_COUNT_GET_HCOUNT(x)

#define VDCTRL0_ENABLE_PRESENT
#define VDCTRL0_VSYNC_ACT_HIGH
#define VDCTRL0_HSYNC_ACT_HIGH
#define VDCTRL0_DOTCLK_ACT_FALLING
#define VDCTRL0_ENABLE_ACT_HIGH
#define VDCTRL0_VSYNC_PERIOD_UNIT
#define VDCTRL0_VSYNC_PULSE_WIDTH_UNIT
#define VDCTRL0_HALF_LINE
#define VDCTRL0_HALF_LINE_MODE
#define VDCTRL0_SET_VSYNC_PULSE_WIDTH(x)
#define VDCTRL0_GET_VSYNC_PULSE_WIDTH(x)

#define VDCTRL2_SET_HSYNC_PERIOD(x)
#define VDCTRL2_GET_HSYNC_PERIOD(x)

#define VDCTRL3_MUX_SYNC_SIGNALS
#define VDCTRL3_VSYNC_ONLY
#define SET_HOR_WAIT_CNT(x)
#define GET_HOR_WAIT_CNT(x)
#define SET_VERT_WAIT_CNT(x)
#define GET_VERT_WAIT_CNT(x)

#define VDCTRL4_SET_DOTCLK_DLY(x)
#define VDCTRL4_GET_DOTCLK_DLY(x)
#define VDCTRL4_SYNC_SIGNALS_ON
#define SET_DOTCLK_H_VALID_DATA_CNT(x)

#define DEBUG0_HSYNC
#define DEBUG0_VSYNC

#define AS_CTRL_PS_DISABLE
#define AS_CTRL_ALPHA_INVERT
#define AS_CTRL_ALPHA(a)
#define AS_CTRL_FORMAT_RGB565
#define AS_CTRL_FORMAT_RGB444
#define AS_CTRL_FORMAT_RGB555
#define AS_CTRL_FORMAT_ARGB4444
#define AS_CTRL_FORMAT_ARGB1555
#define AS_CTRL_FORMAT_RGB888
#define AS_CTRL_FORMAT_ARGB8888
#define AS_CTRL_ENABLE_COLORKEY
#define AS_CTRL_ALPHA_CTRL_ROP
#define AS_CTRL_ALPHA_CTRL_MULTIPLY
#define AS_CTRL_ALPHA_CTRL_OVERRIDE
#define AS_CTRL_ALPHA_CTRL_EMBEDDED
#define AS_CTRL_AS_ENABLE

#define MXSFB_MIN_XRES
#define MXSFB_MIN_YRES
#define MXSFB_MAX_XRES
#define MXSFB_MAX_YRES

#endif /* __MXSFB_REGS_H__ */