linux/include/video/atmel_lcdc.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  Header file for AT91/AT32 LCD Controller
 *
 *  Data structure and register user interface
 *
 *  Copyright (C) 2007 Atmel Corporation
 */
#ifndef __ATMEL_LCDC_H__
#define __ATMEL_LCDC_H__

#include <linux/workqueue.h>

/* Way LCD wires are connected to the chip:
 * Some Atmel chips use BGR color mode (instead of standard RGB)
 * A swapped wiring onboard can bring to RGB mode.
 */
#define ATMEL_LCDC_WIRING_BGR
#define ATMEL_LCDC_WIRING_RGB


 /* LCD Controller info data structure, stored in device platform_data */
struct atmel_lcdfb_pdata {};

#define ATMEL_LCDC_DMABADDR1
#define ATMEL_LCDC_DMABADDR2
#define ATMEL_LCDC_DMAFRMPT1
#define ATMEL_LCDC_DMAFRMPT2
#define ATMEL_LCDC_DMAFRMADD1
#define ATMEL_LCDC_DMAFRMADD2

#define ATMEL_LCDC_DMAFRMCFG
#define ATMEL_LCDC_FRSIZE
#define ATMEL_LCDC_BLENGTH_OFFSET
#define ATMEL_LCDC_BLENGTH

#define ATMEL_LCDC_DMACON
#define ATMEL_LCDC_DMAEN
#define ATMEL_LCDC_DMARST
#define ATMEL_LCDC_DMABUSY
#define ATMEL_LCDC_DMAUPDT
#define ATMEL_LCDC_DMA2DEN

#define ATMEL_LCDC_DMA2DCFG
#define ATMEL_LCDC_ADDRINC_OFFSET
#define ATMEL_LCDC_ADDRINC
#define ATMEL_LCDC_PIXELOFF_OFFSET
#define ATMEL_LCDC_PIXELOFF

#define ATMEL_LCDC_LCDCON1
#define ATMEL_LCDC_BYPASS
#define ATMEL_LCDC_CLKVAL_OFFSET
#define ATMEL_LCDC_CLKVAL
#define ATMEL_LCDC_LINCNT

#define ATMEL_LCDC_LCDCON2
#define ATMEL_LCDC_DISTYPE
#define ATMEL_LCDC_DISTYPE_STNMONO
#define ATMEL_LCDC_DISTYPE_STNCOLOR
#define ATMEL_LCDC_DISTYPE_TFT
#define ATMEL_LCDC_SCANMOD
#define ATMEL_LCDC_SCANMOD_SINGLE
#define ATMEL_LCDC_SCANMOD_DUAL
#define ATMEL_LCDC_IFWIDTH
#define ATMEL_LCDC_IFWIDTH_4
#define ATMEL_LCDC_IFWIDTH_8
#define ATMEL_LCDC_IFWIDTH_16
#define ATMEL_LCDC_PIXELSIZE
#define ATMEL_LCDC_PIXELSIZE_1
#define ATMEL_LCDC_PIXELSIZE_2
#define ATMEL_LCDC_PIXELSIZE_4
#define ATMEL_LCDC_PIXELSIZE_8
#define ATMEL_LCDC_PIXELSIZE_16
#define ATMEL_LCDC_PIXELSIZE_24
#define ATMEL_LCDC_PIXELSIZE_32
#define ATMEL_LCDC_INVVD
#define ATMEL_LCDC_INVVD_NORMAL
#define ATMEL_LCDC_INVVD_INVERTED
#define ATMEL_LCDC_INVFRAME
#define ATMEL_LCDC_INVFRAME_NORMAL
#define ATMEL_LCDC_INVFRAME_INVERTED
#define ATMEL_LCDC_INVLINE
#define ATMEL_LCDC_INVLINE_NORMAL
#define ATMEL_LCDC_INVLINE_INVERTED
#define ATMEL_LCDC_INVCLK
#define ATMEL_LCDC_INVCLK_NORMAL
#define ATMEL_LCDC_INVCLK_INVERTED
#define ATMEL_LCDC_INVDVAL
#define ATMEL_LCDC_INVDVAL_NORMAL
#define ATMEL_LCDC_INVDVAL_INVERTED
#define ATMEL_LCDC_CLKMOD
#define ATMEL_LCDC_CLKMOD_ACTIVEDISPLAY
#define ATMEL_LCDC_CLKMOD_ALWAYSACTIVE
#define ATMEL_LCDC_MEMOR
#define ATMEL_LCDC_MEMOR_BIG
#define ATMEL_LCDC_MEMOR_LITTLE

#define ATMEL_LCDC_TIM1
#define ATMEL_LCDC_VFP
#define ATMEL_LCDC_VBP_OFFSET
#define ATMEL_LCDC_VBP
#define ATMEL_LCDC_VPW_OFFSET
#define ATMEL_LCDC_VPW
#define ATMEL_LCDC_VHDLY_OFFSET
#define ATMEL_LCDC_VHDLY

#define ATMEL_LCDC_TIM2
#define ATMEL_LCDC_HBP
#define ATMEL_LCDC_HPW_OFFSET
#define ATMEL_LCDC_HPW
#define ATMEL_LCDC_HFP_OFFSET
#define ATMEL_LCDC_HFP

#define ATMEL_LCDC_LCDFRMCFG
#define ATMEL_LCDC_LINEVAL
#define ATMEL_LCDC_HOZVAL_OFFSET
#define ATMEL_LCDC_HOZVAL

#define ATMEL_LCDC_FIFO
#define ATMEL_LCDC_FIFOTH

#define ATMEL_LCDC_MVAL

#define ATMEL_LCDC_DP1_2
#define ATMEL_LCDC_DP4_7
#define ATMEL_LCDC_DP3_5
#define ATMEL_LCDC_DP2_3
#define ATMEL_LCDC_DP5_7
#define ATMEL_LCDC_DP3_4
#define ATMEL_LCDC_DP4_5
#define ATMEL_LCDC_DP6_7
#define ATMEL_LCDC_DP1_2_VAL
#define ATMEL_LCDC_DP4_7_VAL
#define ATMEL_LCDC_DP3_5_VAL
#define ATMEL_LCDC_DP2_3_VAL
#define ATMEL_LCDC_DP5_7_VAL
#define ATMEL_LCDC_DP3_4_VAL
#define ATMEL_LCDC_DP4_5_VAL
#define ATMEL_LCDC_DP6_7_VAL

#define ATMEL_LCDC_PWRCON
#define ATMEL_LCDC_PWR
#define ATMEL_LCDC_GUARDT_OFFSET
#define ATMEL_LCDC_GUARDT
#define ATMEL_LCDC_BUSY

#define ATMEL_LCDC_CONTRAST_CTR
#define ATMEL_LCDC_PS
#define ATMEL_LCDC_PS_DIV1
#define ATMEL_LCDC_PS_DIV2
#define ATMEL_LCDC_PS_DIV4
#define ATMEL_LCDC_PS_DIV8
#define ATMEL_LCDC_POL
#define ATMEL_LCDC_POL_NEGATIVE
#define ATMEL_LCDC_POL_POSITIVE
#define ATMEL_LCDC_ENA
#define ATMEL_LCDC_ENA_PWMDISABLE
#define ATMEL_LCDC_ENA_PWMENABLE

#define ATMEL_LCDC_CONTRAST_VAL
#define ATMEL_LCDC_CVAL

#define ATMEL_LCDC_IER
#define ATMEL_LCDC_IDR
#define ATMEL_LCDC_IMR
#define ATMEL_LCDC_ISR
#define ATMEL_LCDC_ICR
#define ATMEL_LCDC_LNI
#define ATMEL_LCDC_LSTLNI
#define ATMEL_LCDC_EOFI
#define ATMEL_LCDC_UFLWI
#define ATMEL_LCDC_OWRI
#define ATMEL_LCDC_MERI

#define ATMEL_LCDC_LUT(n)

#endif /* __ATMEL_LCDC_H__ */