xref: /netbsd-src/sys/arch/mips/ingenic/jzfb_regs.h (revision 9dd1f145af8678a85bdbfe52a65f1cd9b6bdd50d)
1 /*	$NetBSD: jzfb_regs.h,v 1.2 2017/05/19 07:43:31 skrll Exp $ */
2 
3 /*-
4  * Copyright (c) 2015 Michael Lorenz
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  * POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #ifndef JZFB_REGS_H
30 #define JZFB_REGS_H
31 
32 #define JZ_LCDCFG		0x0000
33 #define JZ_LCDCTRL		0x0030
34 #define JZ_LCDSTATE		0x0034
35 #define JZ_LCDOSDC		0x0100
36 #define JZ_LCDOSDCTRL		0x0104
37 #define JZ_LCDOSDS		0x0108
38 #define JZ_LCDBGC0		0x010C
39 #define JZ_LCDBGC1		0x02C4
40 #define JZ_LCDKEY0		0x0110
41 #define JZ_LCDKEY1		0x0114
42 #define JZ_LCDALPHA		0x0118
43 #define JZ_LCDIPUR		0x011C
44 #define JZ_LCDRGBC		0x0090
45 #define JZ_LCDVAT		0x000C
46 #define JZ_LCDDAH		0x0010
47 #define JZ_LCDDAV		0x0014
48 #define JZ_LCDXYP0		0x0120
49 #define JZ_LCDXYP1		0x0124
50 #define JZ_LCDSIZE0		0x0128
51 #define JZ_LCDSIZE1		0x012C
52 #define JZ_LCDVSYNC		0x0004
53 #define JZ_LCDHSYNC		0x0008
54 #define JZ_LCDPS		0x0018
55 #define JZ_LCDCLS		0x001C
56 #define JZ_LCDSPL		0x0020
57 #define JZ_LCDREV		0x0024
58 #define JZ_LCDIID		0x0038
59 #define JZ_LCDDA0		0x0040
60 #define JZ_LCDSA0		0x0044
61 #define JZ_LCDFID0		0x0048
62 #define JZ_LCDCMD0		0x004C
63 #define JZ_LCDDA1		0x0050
64 #define JZ_LCDSA1		0x0054
65 #define JZ_LCDOFFS0		0x0060
66 #define JZ_LCDPW0		0x0064
67 #define JZ_LCDCNUM0		0x0068
68 #define JZ_LCDPOS0		0x0068
69 #define JZ_LCDDESSIZE0		0x006C
70 #define JZ_LCDFID1		0x0058
71 #define JZ_LCDCMD1		0x005C
72 #define JZ_LCDOFFS1		0x0070
73 #define JZ_LCDPW1		0x0074
74 #define JZ_LCDCNUM1		0x0078
75 #define JZ_LCDPOS1		0x0078
76 #define JZ_LCDDESSIZE1		0x007C
77 #define JZ_LCDPCFG		0x02C0
78 #define JZ_LCDDUALCTRL		0x02C8
79 #define JZ_LCDENH_CFG		0x0400
80 #define JZ_LCDENH_CSCCFG	0x0404
81 #define JZ_LCDENH_LUMACFG	0x0408
82 #define JZ_LCDENH_CHROCFG0	0x040C
83 #define JZ_LCDENH_CHROCFG1	0x0410
84 #define JZ_LCDENH_DITHERCFG	0x0414
85 #define JZ_LCDENH_STATUS	0x0418
86 #define JZ_LCDENH_GAMMA		0x0800
87 #define JZ_LCDENH_VEE		0x1000
88 
89 #endif /* JZFB_REGS_H */
90