xref: /netbsd-src/sys/arch/mips/ingenic/jzfb_regs.h (revision 9dd1f145af8678a85bdbfe52a65f1cd9b6bdd50d)
1*9dd1f145Sskrll /*	$NetBSD: jzfb_regs.h,v 1.2 2017/05/19 07:43:31 skrll Exp $ */
206576a06Smacallan 
306576a06Smacallan /*-
406576a06Smacallan  * Copyright (c) 2015 Michael Lorenz
506576a06Smacallan  * All rights reserved.
606576a06Smacallan  *
706576a06Smacallan  * Redistribution and use in source and binary forms, with or without
806576a06Smacallan  * modification, are permitted provided that the following conditions
906576a06Smacallan  * are met:
1006576a06Smacallan  * 1. Redistributions of source code must retain the above copyright
1106576a06Smacallan  *    notice, this list of conditions and the following disclaimer.
1206576a06Smacallan  * 2. Redistributions in binary form must reproduce the above copyright
1306576a06Smacallan  *    notice, this list of conditions and the following disclaimer in the
1406576a06Smacallan  *    documentation and/or other materials provided with the distribution.
1506576a06Smacallan  *
1606576a06Smacallan  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
1706576a06Smacallan  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1806576a06Smacallan  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1906576a06Smacallan  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2006576a06Smacallan  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2106576a06Smacallan  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2206576a06Smacallan  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2306576a06Smacallan  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2406576a06Smacallan  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2506576a06Smacallan  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2606576a06Smacallan  * POSSIBILITY OF SUCH DAMAGE.
2706576a06Smacallan  */
2806576a06Smacallan 
2906576a06Smacallan #ifndef JZFB_REGS_H
3006576a06Smacallan #define JZFB_REGS_H
3106576a06Smacallan 
3206576a06Smacallan #define JZ_LCDCFG		0x0000
3306576a06Smacallan #define JZ_LCDCTRL		0x0030
3406576a06Smacallan #define JZ_LCDSTATE		0x0034
3506576a06Smacallan #define JZ_LCDOSDC		0x0100
3606576a06Smacallan #define JZ_LCDOSDCTRL		0x0104
3706576a06Smacallan #define JZ_LCDOSDS		0x0108
3806576a06Smacallan #define JZ_LCDBGC0		0x010C
3906576a06Smacallan #define JZ_LCDBGC1		0x02C4
4006576a06Smacallan #define JZ_LCDKEY0		0x0110
4106576a06Smacallan #define JZ_LCDKEY1		0x0114
4206576a06Smacallan #define JZ_LCDALPHA		0x0118
4306576a06Smacallan #define JZ_LCDIPUR		0x011C
4406576a06Smacallan #define JZ_LCDRGBC		0x0090
4506576a06Smacallan #define JZ_LCDVAT		0x000C
4606576a06Smacallan #define JZ_LCDDAH		0x0010
4706576a06Smacallan #define JZ_LCDDAV		0x0014
4806576a06Smacallan #define JZ_LCDXYP0		0x0120
4906576a06Smacallan #define JZ_LCDXYP1		0x0124
5006576a06Smacallan #define JZ_LCDSIZE0		0x0128
5106576a06Smacallan #define JZ_LCDSIZE1		0x012C
5206576a06Smacallan #define JZ_LCDVSYNC		0x0004
5306576a06Smacallan #define JZ_LCDHSYNC		0x0008
5406576a06Smacallan #define JZ_LCDPS		0x0018
5506576a06Smacallan #define JZ_LCDCLS		0x001C
5606576a06Smacallan #define JZ_LCDSPL		0x0020
5706576a06Smacallan #define JZ_LCDREV		0x0024
5806576a06Smacallan #define JZ_LCDIID		0x0038
5906576a06Smacallan #define JZ_LCDDA0		0x0040
6006576a06Smacallan #define JZ_LCDSA0		0x0044
6106576a06Smacallan #define JZ_LCDFID0		0x0048
6206576a06Smacallan #define JZ_LCDCMD0		0x004C
6306576a06Smacallan #define JZ_LCDDA1		0x0050
6406576a06Smacallan #define JZ_LCDSA1		0x0054
6506576a06Smacallan #define JZ_LCDOFFS0		0x0060
6606576a06Smacallan #define JZ_LCDPW0		0x0064
6706576a06Smacallan #define JZ_LCDCNUM0		0x0068
6806576a06Smacallan #define JZ_LCDPOS0		0x0068
6906576a06Smacallan #define JZ_LCDDESSIZE0		0x006C
7006576a06Smacallan #define JZ_LCDFID1		0x0058
7106576a06Smacallan #define JZ_LCDCMD1		0x005C
7206576a06Smacallan #define JZ_LCDOFFS1		0x0070
7306576a06Smacallan #define JZ_LCDPW1		0x0074
7406576a06Smacallan #define JZ_LCDCNUM1		0x0078
7506576a06Smacallan #define JZ_LCDPOS1		0x0078
7606576a06Smacallan #define JZ_LCDDESSIZE1		0x007C
7706576a06Smacallan #define JZ_LCDPCFG		0x02C0
7806576a06Smacallan #define JZ_LCDDUALCTRL		0x02C8
7906576a06Smacallan #define JZ_LCDENH_CFG		0x0400
8006576a06Smacallan #define JZ_LCDENH_CSCCFG	0x0404
8106576a06Smacallan #define JZ_LCDENH_LUMACFG	0x0408
8206576a06Smacallan #define JZ_LCDENH_CHROCFG0	0x040C
8306576a06Smacallan #define JZ_LCDENH_CHROCFG1	0x0410
8406576a06Smacallan #define JZ_LCDENH_DITHERCFG	0x0414
8506576a06Smacallan #define JZ_LCDENH_STATUS	0x0418
8606576a06Smacallan #define JZ_LCDENH_GAMMA		0x0800
8706576a06Smacallan #define JZ_LCDENH_VEE		0x1000
8806576a06Smacallan 
8906576a06Smacallan #endif /* JZFB_REGS_H */
90