1f7018c21STomi Valkeinen /* 2f7018c21STomi Valkeinen * GOVR registers list for WM8505 chips 3f7018c21STomi Valkeinen * 4f7018c21STomi Valkeinen * Copyright (C) 2010 Ed Spiridonov <edo.rus@gmail.com> 5f7018c21STomi Valkeinen * Based on VIA/WonderMedia wm8510-govrh-reg.h 6f7018c21STomi Valkeinen * http://github.com/projectgus/kernel_wm8505/blob/wm8505_2.6.29/ 7f7018c21STomi Valkeinen * drivers/video/wmt/register/wm8510/wm8510-govrh-reg.h 8f7018c21STomi Valkeinen * 9f7018c21STomi Valkeinen * This software is licensed under the terms of the GNU General Public 10f7018c21STomi Valkeinen * License version 2, as published by the Free Software Foundation, and 11f7018c21STomi Valkeinen * may be copied, distributed, and modified under those terms. 12f7018c21STomi Valkeinen * 13f7018c21STomi Valkeinen * This program is distributed in the hope that it will be useful, 14f7018c21STomi Valkeinen * but WITHOUT ANY WARRANTY; without even the implied warranty of 15f7018c21STomi Valkeinen * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16f7018c21STomi Valkeinen * GNU General Public License for more details. 17f7018c21STomi Valkeinen */ 18f7018c21STomi Valkeinen 19f7018c21STomi Valkeinen #ifndef _WM8505FB_REGS_H 20f7018c21STomi Valkeinen #define _WM8505FB_REGS_H 21f7018c21STomi Valkeinen 22f7018c21STomi Valkeinen /* 23f7018c21STomi Valkeinen * Color space select register, default value 0x1c 24f7018c21STomi Valkeinen * BIT0 GOVRH_DVO_YUV2RGB_ENABLE 25f7018c21STomi Valkeinen * BIT1 GOVRH_VGA_YUV2RGB_ENABLE 26f7018c21STomi Valkeinen * BIT2 GOVRH_RGB_MODE 27f7018c21STomi Valkeinen * BIT3 GOVRH_DAC_CLKINV 28f7018c21STomi Valkeinen * BIT4 GOVRH_BLANK_ZERO 29f7018c21STomi Valkeinen */ 30f7018c21STomi Valkeinen #define WMT_GOVR_COLORSPACE 0x1e4 31f7018c21STomi Valkeinen /* 32f7018c21STomi Valkeinen * Another colorspace select register, default value 1 33f7018c21STomi Valkeinen * BIT0 GOVRH_DVO_RGB 34f7018c21STomi Valkeinen * BIT1 GOVRH_DVO_YUV422 35f7018c21STomi Valkeinen */ 36f7018c21STomi Valkeinen #define WMT_GOVR_COLORSPACE1 0x30 37f7018c21STomi Valkeinen 38f7018c21STomi Valkeinen #define WMT_GOVR_CONTRAST 0x1b8 39f7018c21STomi Valkeinen #define WMT_GOVR_BRGHTNESS 0x1bc /* incompatible with RGB? */ 40f7018c21STomi Valkeinen 41f7018c21STomi Valkeinen /* Framubeffer address */ 42f7018c21STomi Valkeinen #define WMT_GOVR_FBADDR 0x90 43f7018c21STomi Valkeinen #define WMT_GOVR_FBADDR1 0x94 /* UV offset in YUV mode */ 44f7018c21STomi Valkeinen 45f7018c21STomi Valkeinen /* Offset of visible window */ 46f7018c21STomi Valkeinen #define WMT_GOVR_XPAN 0xa4 47f7018c21STomi Valkeinen #define WMT_GOVR_YPAN 0xa0 48f7018c21STomi Valkeinen 49f7018c21STomi Valkeinen #define WMT_GOVR_XRES 0x98 50f7018c21STomi Valkeinen #define WMT_GOVR_XRES_VIRTUAL 0x9c 51f7018c21STomi Valkeinen 52f7018c21STomi Valkeinen #define WMT_GOVR_MIF_ENABLE 0x80 53f7018c21STomi Valkeinen #define WMT_GOVR_FHI 0xa8 54f7018c21STomi Valkeinen #define WMT_GOVR_REG_UPDATE 0xe4 55f7018c21STomi Valkeinen 56f7018c21STomi Valkeinen /* 57f7018c21STomi Valkeinen * BIT0 GOVRH_DVO_OUTWIDTH 58f7018c21STomi Valkeinen * BIT1 GOVRH_DVO_SYNC_POLAR 59f7018c21STomi Valkeinen * BIT2 GOVRH_DVO_ENABLE 60f7018c21STomi Valkeinen */ 61f7018c21STomi Valkeinen #define WMT_GOVR_DVO_SET 0x148 62f7018c21STomi Valkeinen 63f7018c21STomi Valkeinen /* Timing generator? */ 64f7018c21STomi Valkeinen #define WMT_GOVR_TG 0x100 65f7018c21STomi Valkeinen 66f7018c21STomi Valkeinen /* Timings */ 67f7018c21STomi Valkeinen #define WMT_GOVR_TIMING_H_ALL 0x108 68f7018c21STomi Valkeinen #define WMT_GOVR_TIMING_V_ALL 0x10c 69f7018c21STomi Valkeinen #define WMT_GOVR_TIMING_V_START 0x110 70f7018c21STomi Valkeinen #define WMT_GOVR_TIMING_V_END 0x114 71f7018c21STomi Valkeinen #define WMT_GOVR_TIMING_H_START 0x118 72f7018c21STomi Valkeinen #define WMT_GOVR_TIMING_H_END 0x11c 73f7018c21STomi Valkeinen #define WMT_GOVR_TIMING_V_SYNC 0x128 74f7018c21STomi Valkeinen #define WMT_GOVR_TIMING_H_SYNC 0x12c 75f7018c21STomi Valkeinen 76f7018c21STomi Valkeinen #endif /* _WM8505FB_REGS_H */ 77