4 * Copyright (c) 2006 Jachym Holecek
7 * Written for DFC Design, s.r.o.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _VIRTEX_DEV_LLFBREG_H_
33 #define _VIRTEX_DEV_LLFBREG_H_
37 /* Used by PLB version, ignored in CDMAC version. */
38 #define TFT_ADDR 0x0000 /* Framebuffer in RAM */
39 #define ADDR_MASK 0xffe00000 /* High 11bits decoded */
40 #define ADDR_ALIGN (~ADDR_MASK + 1)
41 #define ADDR_MAKE(addr) ((addr) >> 21) /* Write only useful bits */
43 #define TFT_CTRL 0x0004
44 #define CTRL_RESET 0x80000000 /* Software reset */
45 #define CTRL_REVERSE 0x00000002 /* Reverse scan direction */
46 #define CTRL_ENABLE 0x00000001
48 #endif /* _VIRTEX_DEV_LLFBREG_H_ */