2
*-----------------------------------------------------------------------------
3
* Filename: ovl2_regs_tnc.h
5
*-----------------------------------------------------------------------------
6
* Copyright © 2002-2010, Intel Corporation.
8
* This program is free software; you can redistribute it and/or modify it
9
* under the terms and conditions of the GNU General Public License,
10
* version 2, as published by the Free Software Foundation.
12
* This program is distributed in the hope it will be useful, but WITHOUT
13
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17
* You should have received a copy of the GNU General Public License along with
18
* this program; if not, write to the Free Software Foundation, Inc.,
19
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
20
*-----------------------------------------------------------------------------
22
* This is the internal header file for napa overlay engine. It should be not be
23
* by any other module besides the overlay module itself. It contains the
24
* neccessary hardware virtualized structures and functions internal to
25
* the napa core's overlay engine
26
*-----------------------------------------------------------------------------
28
#ifndef _OVL2_REGS_TNC_H
29
#define _OVL2_REGS_TNC_H
30
/* Second Overlay Structure.
31
* These registers are the trigger registers and should be written
33
typedef struct _ovl2_reg_tnc{
38
/* Color Correction */
39
#define OVL2_RGB_COLOR_DEF_CONT_BRGHT 0x1000000
40
#define OVL2_RGB_COLOR_DEF_SATN_HUE 0x0000080
42
/* Overlay Command Definitions */
44
#define OVL2_CMD_YVYU 0x00020000
45
#define OVL2_CMD_UYVY 0x00010000
46
#define OVL2_CMD_VYUY 0x00030000
49
#define OVL2_CMD_RGB_8888 0x18000000
50
#define OVL2_CMD_RGB_565 0x14000000
51
#define OVL2_CMD_RGB_555 0x10000000
52
#define OVL2_CMD_RGB_8 0x08000000
53
#define OVL2_CMD_YUV_422 0x00000000 /*packed YUV422*/
54
#define OVL2_CMD_SRC_FMT_MASK 0x3C000000 /*mask for above*/
56
#define OVL2_REG_ADDR_GAMMA5 0x721E0
57
#define OVL2_REG_ADDR_GAMMA4 0x721E4
58
#define OVL2_REG_ADDR_GAMMA3 0x721E8
59
#define OVL2_REG_ADDR_GAMMA2 0x721EC
60
#define OVL2_REG_ADDR_GAMMA1 0x721F0
61
#define OVL2_REG_ADDR_GAMMA0 0x721F4
62
#define OVL2_TOTAL_GAMMA_REG 6
64
/* following value are needed because hardware seems to display yuv slightly dimmer
65
than RGB when color data is calculated out to be equal */
66
#define MID_CONTRAST_YUV 0x43//4a
67
#define MID_SATURATION_YUV 0x91//92
68
#define MID_BRIGHTNESS_YUV -5
69
#endif /* _OVL2_REGS_NAP_H */