18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * BRIEF MODULE DESCRIPTION
38c2ecf20Sopenharmony_ci *	Hardware definitions for the Au1200 LCD controller
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright 2004 AMD
68c2ecf20Sopenharmony_ci * Author:	AMD
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci *  This program is free software; you can redistribute	 it and/or modify it
98c2ecf20Sopenharmony_ci *  under  the terms of	 the GNU General  Public License as published by the
108c2ecf20Sopenharmony_ci *  Free Software Foundation;  either version 2 of the	License, or (at your
118c2ecf20Sopenharmony_ci *  option) any later version.
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci *  THIS  SOFTWARE  IS PROVIDED	  ``AS	IS'' AND   ANY	EXPRESS OR IMPLIED
148c2ecf20Sopenharmony_ci *  WARRANTIES,	  INCLUDING, BUT NOT  LIMITED  TO, THE IMPLIED WARRANTIES OF
158c2ecf20Sopenharmony_ci *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
168c2ecf20Sopenharmony_ci *  NO	EVENT  SHALL   THE AUTHOR  BE	 LIABLE FOR ANY	  DIRECT, INDIRECT,
178c2ecf20Sopenharmony_ci *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
188c2ecf20Sopenharmony_ci *  NOT LIMITED	  TO, PROCUREMENT OF  SUBSTITUTE GOODS	OR SERVICES; LOSS OF
198c2ecf20Sopenharmony_ci *  USE, DATA,	OR PROFITS; OR	BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
208c2ecf20Sopenharmony_ci *  ANY THEORY OF LIABILITY, WHETHER IN	 CONTRACT, STRICT LIABILITY, OR TORT
218c2ecf20Sopenharmony_ci *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
228c2ecf20Sopenharmony_ci *  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
238c2ecf20Sopenharmony_ci *
248c2ecf20Sopenharmony_ci *  You should have received a copy of the  GNU General Public License along
258c2ecf20Sopenharmony_ci *  with this program; if not, write  to the Free Software Foundation, Inc.,
268c2ecf20Sopenharmony_ci *  675 Mass Ave, Cambridge, MA 02139, USA.
278c2ecf20Sopenharmony_ci */
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#ifndef _AU1200LCD_H
308c2ecf20Sopenharmony_ci#define _AU1200LCD_H
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci/********************************************************************/
338c2ecf20Sopenharmony_ci#define AU1200_LCD_ADDR		0xB5000000
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#define uint8 unsigned char
368c2ecf20Sopenharmony_ci#define uint32 unsigned int
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_cistruct au1200_lcd {
398c2ecf20Sopenharmony_ci	volatile uint32	reserved0;
408c2ecf20Sopenharmony_ci	volatile uint32	screen;
418c2ecf20Sopenharmony_ci	volatile uint32	backcolor;
428c2ecf20Sopenharmony_ci	volatile uint32	horztiming;
438c2ecf20Sopenharmony_ci	volatile uint32	verttiming;
448c2ecf20Sopenharmony_ci	volatile uint32	clkcontrol;
458c2ecf20Sopenharmony_ci	volatile uint32	pwmdiv;
468c2ecf20Sopenharmony_ci	volatile uint32	pwmhi;
478c2ecf20Sopenharmony_ci	volatile uint32	reserved1;
488c2ecf20Sopenharmony_ci	volatile uint32	winenable;
498c2ecf20Sopenharmony_ci	volatile uint32	colorkey;
508c2ecf20Sopenharmony_ci	volatile uint32	colorkeymsk;
518c2ecf20Sopenharmony_ci	struct
528c2ecf20Sopenharmony_ci	{
538c2ecf20Sopenharmony_ci		volatile uint32	cursorctrl;
548c2ecf20Sopenharmony_ci		volatile uint32	cursorpos;
558c2ecf20Sopenharmony_ci		volatile uint32	cursorcolor0;
568c2ecf20Sopenharmony_ci		volatile uint32	cursorcolor1;
578c2ecf20Sopenharmony_ci		volatile uint32	cursorcolor2;
588c2ecf20Sopenharmony_ci		uint32	cursorcolor3;
598c2ecf20Sopenharmony_ci	} hwc;
608c2ecf20Sopenharmony_ci	volatile uint32	intstatus;
618c2ecf20Sopenharmony_ci	volatile uint32	intenable;
628c2ecf20Sopenharmony_ci	volatile uint32	outmask;
638c2ecf20Sopenharmony_ci	volatile uint32	fifoctrl;
648c2ecf20Sopenharmony_ci	uint32	reserved2[(0x0100-0x0058)/4];
658c2ecf20Sopenharmony_ci	struct
668c2ecf20Sopenharmony_ci	{
678c2ecf20Sopenharmony_ci		volatile uint32	winctrl0;
688c2ecf20Sopenharmony_ci		volatile uint32	winctrl1;
698c2ecf20Sopenharmony_ci		volatile uint32	winctrl2;
708c2ecf20Sopenharmony_ci		volatile uint32	winbuf0;
718c2ecf20Sopenharmony_ci		volatile uint32	winbuf1;
728c2ecf20Sopenharmony_ci		volatile uint32	winbufctrl;
738c2ecf20Sopenharmony_ci		uint32	winreserved0;
748c2ecf20Sopenharmony_ci		uint32	winreserved1;
758c2ecf20Sopenharmony_ci	} window[4];
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci	uint32	reserved3[(0x0400-0x0180)/4];
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci	volatile uint32	palette[(0x0800-0x0400)/4];
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci	volatile uint8	cursorpattern[256];
828c2ecf20Sopenharmony_ci};
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ci/* lcd_screen */
858c2ecf20Sopenharmony_ci#define LCD_SCREEN_SEN		(1<<31)
868c2ecf20Sopenharmony_ci#define LCD_SCREEN_SX		(0x07FF<<19)
878c2ecf20Sopenharmony_ci#define LCD_SCREEN_SY		(0x07FF<< 8)
888c2ecf20Sopenharmony_ci#define LCD_SCREEN_SWP		(1<<7)
898c2ecf20Sopenharmony_ci#define LCD_SCREEN_SWD		(1<<6)
908c2ecf20Sopenharmony_ci#define LCD_SCREEN_PT		(7<<0)
918c2ecf20Sopenharmony_ci#define LCD_SCREEN_PT_TFT	(0<<0)
928c2ecf20Sopenharmony_ci#define LCD_SCREEN_SX_N(WIDTH)	((WIDTH-1)<<19)
938c2ecf20Sopenharmony_ci#define LCD_SCREEN_SY_N(HEIGHT)	((HEIGHT-1)<<8)
948c2ecf20Sopenharmony_ci#define LCD_SCREEN_PT_CSTN	(1<<0)
958c2ecf20Sopenharmony_ci#define LCD_SCREEN_PT_CDSTN	(2<<0)
968c2ecf20Sopenharmony_ci#define LCD_SCREEN_PT_M8STN	(3<<0)
978c2ecf20Sopenharmony_ci#define LCD_SCREEN_PT_M4STN	(4<<0)
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci/* lcd_backcolor */
1008c2ecf20Sopenharmony_ci#define LCD_BACKCOLOR_SBGR		(0xFF<<16)
1018c2ecf20Sopenharmony_ci#define LCD_BACKCOLOR_SBGG		(0xFF<<8)
1028c2ecf20Sopenharmony_ci#define LCD_BACKCOLOR_SBGB		(0xFF<<0)
1038c2ecf20Sopenharmony_ci#define LCD_BACKCOLOR_SBGR_N(N)	((N)<<16)
1048c2ecf20Sopenharmony_ci#define LCD_BACKCOLOR_SBGG_N(N)	((N)<<8)
1058c2ecf20Sopenharmony_ci#define LCD_BACKCOLOR_SBGB_N(N)	((N)<<0)
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci/* lcd_winenable */
1088c2ecf20Sopenharmony_ci#define LCD_WINENABLE_WEN3		(1<<3)
1098c2ecf20Sopenharmony_ci#define LCD_WINENABLE_WEN2		(1<<2)
1108c2ecf20Sopenharmony_ci#define LCD_WINENABLE_WEN1		(1<<1)
1118c2ecf20Sopenharmony_ci#define LCD_WINENABLE_WEN0		(1<<0)
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci/* lcd_colorkey */
1148c2ecf20Sopenharmony_ci#define LCD_COLORKEY_CKR		(0xFF<<16)
1158c2ecf20Sopenharmony_ci#define LCD_COLORKEY_CKG		(0xFF<<8)
1168c2ecf20Sopenharmony_ci#define LCD_COLORKEY_CKB		(0xFF<<0)
1178c2ecf20Sopenharmony_ci#define LCD_COLORKEY_CKR_N(N)	((N)<<16)
1188c2ecf20Sopenharmony_ci#define LCD_COLORKEY_CKG_N(N)	((N)<<8)
1198c2ecf20Sopenharmony_ci#define LCD_COLORKEY_CKB_N(N)	((N)<<0)
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci/* lcd_colorkeymsk */
1228c2ecf20Sopenharmony_ci#define LCD_COLORKEYMSK_CKMR		(0xFF<<16)
1238c2ecf20Sopenharmony_ci#define LCD_COLORKEYMSK_CKMG		(0xFF<<8)
1248c2ecf20Sopenharmony_ci#define LCD_COLORKEYMSK_CKMB		(0xFF<<0)
1258c2ecf20Sopenharmony_ci#define LCD_COLORKEYMSK_CKMR_N(N)	((N)<<16)
1268c2ecf20Sopenharmony_ci#define LCD_COLORKEYMSK_CKMG_N(N)	((N)<<8)
1278c2ecf20Sopenharmony_ci#define LCD_COLORKEYMSK_CKMB_N(N)	((N)<<0)
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci/* lcd windows control 0 */
1308c2ecf20Sopenharmony_ci#define LCD_WINCTRL0_OX		(0x07FF<<21)
1318c2ecf20Sopenharmony_ci#define LCD_WINCTRL0_OY		(0x07FF<<10)
1328c2ecf20Sopenharmony_ci#define LCD_WINCTRL0_A		(0x00FF<<2)
1338c2ecf20Sopenharmony_ci#define LCD_WINCTRL0_AEN	(1<<1)
1348c2ecf20Sopenharmony_ci#define LCD_WINCTRL0_OX_N(N) ((N)<<21)
1358c2ecf20Sopenharmony_ci#define LCD_WINCTRL0_OY_N(N) ((N)<<10)
1368c2ecf20Sopenharmony_ci#define LCD_WINCTRL0_A_N(N) ((N)<<2)
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ci/* lcd windows control 1 */
1398c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_PRI	(3<<30)
1408c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_PIPE	(1<<29)
1418c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM	(0xF<<25)
1428c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_CCO	(1<<24)
1438c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_PO		(3<<22)
1448c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_SZX	(0x07FF<<11)
1458c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_SZY	(0x07FF<<0)
1468c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_1BPP	(0<<25)
1478c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_2BPP	(1<<25)
1488c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_4BPP	(2<<25)
1498c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_8BPP	(3<<25)
1508c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_12BPP	(4<<25)
1518c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_16BPP655	(5<<25)
1528c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_16BPP565	(6<<25)
1538c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_16BPP556	(7<<25)
1548c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_16BPPI1555	(8<<25)
1558c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_16BPPI5551	(9<<25)
1568c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_16BPPA1555	(10<<25)
1578c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_16BPPA5551	(11<<25)
1588c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_24BPP		(12<<25)
1598c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_FRM_32BPP		(13<<25)
1608c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_PRI_N(N)	((N)<<30)
1618c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_PO_00		(0<<22)
1628c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_PO_01		(1<<22)
1638c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_PO_10		(2<<22)
1648c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_PO_11		(3<<22)
1658c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_SZX_N(N)	((N-1)<<11)
1668c2ecf20Sopenharmony_ci#define LCD_WINCTRL1_SZY_N(N)	((N-1)<<0)
1678c2ecf20Sopenharmony_ci
1688c2ecf20Sopenharmony_ci/* lcd windows control 2 */
1698c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_CKMODE		(3<<24)
1708c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_DBM		(1<<23)
1718c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_RAM		(3<<21)
1728c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_BX			(0x1FFF<<8)
1738c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_SCX		(0xF<<4)
1748c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_SCY		(0xF<<0)
1758c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_CKMODE_00		(0<<24)
1768c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_CKMODE_01		(1<<24)
1778c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_CKMODE_10		(2<<24)
1788c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_CKMODE_11		(3<<24)
1798c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_RAM_NONE		(0<<21)
1808c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_RAM_PALETTE	(1<<21)
1818c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_RAM_GAMMA		(2<<21)
1828c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_RAM_BUFFER		(3<<21)
1838c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_BX_N(N)	((N)<<8)
1848c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_SCX_1		(0<<4)
1858c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_SCX_2		(1<<4)
1868c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_SCX_4		(2<<4)
1878c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_SCY_1		(0<<0)
1888c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_SCY_2		(1<<0)
1898c2ecf20Sopenharmony_ci#define LCD_WINCTRL2_SCY_4		(2<<0)
1908c2ecf20Sopenharmony_ci
1918c2ecf20Sopenharmony_ci/* lcd windows buffer control */
1928c2ecf20Sopenharmony_ci#define LCD_WINBUFCTRL_DB		(1<<1)
1938c2ecf20Sopenharmony_ci#define LCD_WINBUFCTRL_DBN		(1<<0)
1948c2ecf20Sopenharmony_ci
1958c2ecf20Sopenharmony_ci/* lcd_intstatus, lcd_intenable */
1968c2ecf20Sopenharmony_ci#define LCD_INT_IFO				(0xF<<14)
1978c2ecf20Sopenharmony_ci#define LCD_INT_IFU				(0xF<<10)
1988c2ecf20Sopenharmony_ci#define LCD_INT_OFO				(1<<9)
1998c2ecf20Sopenharmony_ci#define LCD_INT_OFU				(1<<8)
2008c2ecf20Sopenharmony_ci#define LCD_INT_WAIT			(1<<3)
2018c2ecf20Sopenharmony_ci#define LCD_INT_SD				(1<<2)
2028c2ecf20Sopenharmony_ci#define LCD_INT_SA				(1<<1)
2038c2ecf20Sopenharmony_ci#define LCD_INT_SS				(1<<0)
2048c2ecf20Sopenharmony_ci
2058c2ecf20Sopenharmony_ci/* lcd_horztiming */
2068c2ecf20Sopenharmony_ci#define LCD_HORZTIMING_HND2		(0x1FF<<18)
2078c2ecf20Sopenharmony_ci#define LCD_HORZTIMING_HND1		(0x1FF<<9)
2088c2ecf20Sopenharmony_ci#define LCD_HORZTIMING_HPW		(0x1FF<<0)
2098c2ecf20Sopenharmony_ci#define LCD_HORZTIMING_HND2_N(N)(((N)-1)<<18)
2108c2ecf20Sopenharmony_ci#define LCD_HORZTIMING_HND1_N(N)(((N)-1)<<9)
2118c2ecf20Sopenharmony_ci#define LCD_HORZTIMING_HPW_N(N)	(((N)-1)<<0)
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_ci/* lcd_verttiming */
2148c2ecf20Sopenharmony_ci#define LCD_VERTTIMING_VND2		(0x1FF<<18)
2158c2ecf20Sopenharmony_ci#define LCD_VERTTIMING_VND1		(0x1FF<<9)
2168c2ecf20Sopenharmony_ci#define LCD_VERTTIMING_VPW		(0x1FF<<0)
2178c2ecf20Sopenharmony_ci#define LCD_VERTTIMING_VND2_N(N)(((N)-1)<<18)
2188c2ecf20Sopenharmony_ci#define LCD_VERTTIMING_VND1_N(N)(((N)-1)<<9)
2198c2ecf20Sopenharmony_ci#define LCD_VERTTIMING_VPW_N(N)	(((N)-1)<<0)
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci/* lcd_clkcontrol */
2228c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_EXT		(1<<22)
2238c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_DELAY	(3<<20)
2248c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_CDD		(1<<19)
2258c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_IB		(1<<18)
2268c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_IC		(1<<17)
2278c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_IH		(1<<16)
2288c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_IV		(1<<15)
2298c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_BF		(0x1F<<10)
2308c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_PCD		(0x3FF<<0)
2318c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_BF_N(N)	(((N)-1)<<10)
2328c2ecf20Sopenharmony_ci#define LCD_CLKCONTROL_PCD_N(N)	((N)<<0)
2338c2ecf20Sopenharmony_ci
2348c2ecf20Sopenharmony_ci/* lcd_pwmdiv */
2358c2ecf20Sopenharmony_ci#define LCD_PWMDIV_EN			(1<<31)
2368c2ecf20Sopenharmony_ci#define LCD_PWMDIV_PWMDIV		(0x1FFFF<<0)
2378c2ecf20Sopenharmony_ci#define LCD_PWMDIV_PWMDIV_N(N)	((N)<<0)
2388c2ecf20Sopenharmony_ci
2398c2ecf20Sopenharmony_ci/* lcd_pwmhi */
2408c2ecf20Sopenharmony_ci#define LCD_PWMHI_PWMHI1		(0xFFFF<<16)
2418c2ecf20Sopenharmony_ci#define LCD_PWMHI_PWMHI0		(0xFFFF<<0)
2428c2ecf20Sopenharmony_ci#define LCD_PWMHI_PWMHI1_N(N)	((N)<<16)
2438c2ecf20Sopenharmony_ci#define LCD_PWMHI_PWMHI0_N(N)	((N)<<0)
2448c2ecf20Sopenharmony_ci
2458c2ecf20Sopenharmony_ci/* lcd_hwccon */
2468c2ecf20Sopenharmony_ci#define LCD_HWCCON_EN			(1<<0)
2478c2ecf20Sopenharmony_ci
2488c2ecf20Sopenharmony_ci/* lcd_cursorpos */
2498c2ecf20Sopenharmony_ci#define LCD_CURSORPOS_HWCXOFF		(0x1F<<27)
2508c2ecf20Sopenharmony_ci#define LCD_CURSORPOS_HWCXPOS		(0x07FF<<16)
2518c2ecf20Sopenharmony_ci#define LCD_CURSORPOS_HWCYOFF		(0x1F<<11)
2528c2ecf20Sopenharmony_ci#define LCD_CURSORPOS_HWCYPOS		(0x07FF<<0)
2538c2ecf20Sopenharmony_ci#define LCD_CURSORPOS_HWCXOFF_N(N)	((N)<<27)
2548c2ecf20Sopenharmony_ci#define LCD_CURSORPOS_HWCXPOS_N(N)	((N)<<16)
2558c2ecf20Sopenharmony_ci#define LCD_CURSORPOS_HWCYOFF_N(N)	((N)<<11)
2568c2ecf20Sopenharmony_ci#define LCD_CURSORPOS_HWCYPOS_N(N)	((N)<<0)
2578c2ecf20Sopenharmony_ci
2588c2ecf20Sopenharmony_ci/* lcd_cursorcolor */
2598c2ecf20Sopenharmony_ci#define LCD_CURSORCOLOR_HWCA		(0xFF<<24)
2608c2ecf20Sopenharmony_ci#define LCD_CURSORCOLOR_HWCR		(0xFF<<16)
2618c2ecf20Sopenharmony_ci#define LCD_CURSORCOLOR_HWCG		(0xFF<<8)
2628c2ecf20Sopenharmony_ci#define LCD_CURSORCOLOR_HWCB		(0xFF<<0)
2638c2ecf20Sopenharmony_ci#define LCD_CURSORCOLOR_HWCA_N(N)	((N)<<24)
2648c2ecf20Sopenharmony_ci#define LCD_CURSORCOLOR_HWCR_N(N)	((N)<<16)
2658c2ecf20Sopenharmony_ci#define LCD_CURSORCOLOR_HWCG_N(N)	((N)<<8)
2668c2ecf20Sopenharmony_ci#define LCD_CURSORCOLOR_HWCB_N(N)	((N)<<0)
2678c2ecf20Sopenharmony_ci
2688c2ecf20Sopenharmony_ci/* lcd_fifoctrl */
2698c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F3IF		(1<<29)
2708c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F3REQ		(0x1F<<24)
2718c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F2IF		(1<<29)
2728c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F2REQ		(0x1F<<16)
2738c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F1IF		(1<<29)
2748c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F1REQ		(0x1F<<8)
2758c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F0IF		(1<<29)
2768c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F0REQ		(0x1F<<0)
2778c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F3REQ_N(N)	((N-1)<<24)
2788c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F2REQ_N(N)	((N-1)<<16)
2798c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F1REQ_N(N)	((N-1)<<8)
2808c2ecf20Sopenharmony_ci#define LCD_FIFOCTRL_F0REQ_N(N)	((N-1)<<0)
2818c2ecf20Sopenharmony_ci
2828c2ecf20Sopenharmony_ci/* lcd_outmask */
2838c2ecf20Sopenharmony_ci#define LCD_OUTMASK_MASK		(0x00FFFFFF)
2848c2ecf20Sopenharmony_ci
2858c2ecf20Sopenharmony_ci/********************************************************************/
2868c2ecf20Sopenharmony_ci#endif /* _AU1200LCD_H */
287