/* * drivers/video/mmp/hw/mmp_ctrl.h * * * Copyright (C) 2012 Marvell Technology Group Ltd. * Authors: Guoqing Li <ligq@marvell.com> * Lisa Du <cldu@marvell.com> * Zhou Zhu <zzhu3@marvell.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. * */#ifndef _MMP_CTRL_H_#define _MMP_CTRL_H_#include<video/mmp_disp.h>/* ------------< LCD register >------------ */structlcd_regs{/* TV patch register for MMP2 *//* 32 bit TV Video Frame0 Y Starting Address */#define LCD_TVD_START_ADDR_Y0 (0x0000)/* 32 bit TV Video Frame0 U Starting Address */#define LCD_TVD_START_ADDR_U0 (0x0004)/* 32 bit TV Video Frame0 V Starting Address */#define LCD_TVD_START_ADDR_V0 (0x0008)/* 32 bit TV Video Frame0 Command Starting Address */#define LCD_TVD_START_ADDR_C0 (0x000C)/* 32 bit TV Video Frame1 Y Starting Address Register*/#define LCD_TVD_START_ADDR_Y1 (0x0010)/* 32 bit TV Video Frame1 U Starting Address Register*/#define LCD_TVD_START_ADDR_U1 (0x0014)/* 32 bit TV Video Frame1 V Starting Address Register*/#define LCD_TVD_START_ADDR_V1 (0x0018)/* 32 bit TV Video Frame1 Command Starting Address Register*/#define LCD_TVD_START_ADDR_C1 (0x001C)/* 32 bit TV Video Y andC Line Length(Pitch)Register*/#define LCD_TVD_PITCH_YC (0x0020)/* 32 bit TV Video U andV Line Length(Pitch)Register*/#define LCD_TVD_PITCH_UV (0x0024)/* 32 bit TV Video Starting Point on Screen Register*/#define LCD_TVD_OVSA_HPXL_VLN (0x0028)/* 32 bit TV Video Source Size Register*/#define LCD_TVD_HPXL_VLN (0x002C)/* 32 bit TV Video Destination Size (After Zooming)Register*/#define LCD_TVDZM_HPXL_VLN (0x0030)u32v_y0;u32v_u0;u32v_v0;u32v_c0;u32v_y1;u32v_u1;u32v_v1;u32v_c1;u32v_pitch_yc;/* Video Y and C Line Length (Pitch) */u32v_pitch_uv;/* Video U and V Line Length (Pitch) */u32v_start;/* Video Starting Point on Screen */u32v_size;/* Video Source Size */u32v_size_z;/* Video Destination Size (After Zooming) *//* 32 bit TV Graphic Frame 0 Starting Address Register*/#define LCD_TVG_START_ADDR0 (0x0034)/* 32 bit TV Graphic Frame 1 Starting Address Register*/#define LCD_TVG_START_ADDR1 (0x0038)/* 32 bit TV Graphic Line Length(Pitch)Register*/#define LCD_TVG_PITCH (0x003C)/* 32 bit TV Graph