162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * GOVR registers list for WM8505 chips 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2010 Ed Spiridonov <edo.rus@gmail.com> 662306a36Sopenharmony_ci * Based on VIA/WonderMedia wm8510-govrh-reg.h 762306a36Sopenharmony_ci * http://github.com/projectgus/kernel_wm8505/blob/wm8505_2.6.29/ 862306a36Sopenharmony_ci * drivers/video/wmt/register/wm8510/wm8510-govrh-reg.h 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#ifndef _WM8505FB_REGS_H 1262306a36Sopenharmony_ci#define _WM8505FB_REGS_H 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci/* 1562306a36Sopenharmony_ci * Color space select register, default value 0x1c 1662306a36Sopenharmony_ci * BIT0 GOVRH_DVO_YUV2RGB_ENABLE 1762306a36Sopenharmony_ci * BIT1 GOVRH_VGA_YUV2RGB_ENABLE 1862306a36Sopenharmony_ci * BIT2 GOVRH_RGB_MODE 1962306a36Sopenharmony_ci * BIT3 GOVRH_DAC_CLKINV 2062306a36Sopenharmony_ci * BIT4 GOVRH_BLANK_ZERO 2162306a36Sopenharmony_ci */ 2262306a36Sopenharmony_ci#define WMT_GOVR_COLORSPACE 0x1e4 2362306a36Sopenharmony_ci/* 2462306a36Sopenharmony_ci * Another colorspace select register, default value 1 2562306a36Sopenharmony_ci * BIT0 GOVRH_DVO_RGB 2662306a36Sopenharmony_ci * BIT1 GOVRH_DVO_YUV422 2762306a36Sopenharmony_ci */ 2862306a36Sopenharmony_ci#define WMT_GOVR_COLORSPACE1 0x30 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#define WMT_GOVR_CONTRAST 0x1b8 3162306a36Sopenharmony_ci#define WMT_GOVR_BRGHTNESS 0x1bc /* incompatible with RGB? */ 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci/* Framubeffer address */ 3462306a36Sopenharmony_ci#define WMT_GOVR_FBADDR 0x90 3562306a36Sopenharmony_ci#define WMT_GOVR_FBADDR1 0x94 /* UV offset in YUV mode */ 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci/* Offset of visible window */ 3862306a36Sopenharmony_ci#define WMT_GOVR_XPAN 0xa4 3962306a36Sopenharmony_ci#define WMT_GOVR_YPAN 0xa0 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci#define WMT_GOVR_XRES 0x98 4262306a36Sopenharmony_ci#define WMT_GOVR_XRES_VIRTUAL 0x9c 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci#define WMT_GOVR_MIF_ENABLE 0x80 4562306a36Sopenharmony_ci#define WMT_GOVR_FHI 0xa8 4662306a36Sopenharmony_ci#define WMT_GOVR_REG_UPDATE 0xe4 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci/* 4962306a36Sopenharmony_ci * BIT0 GOVRH_DVO_OUTWIDTH 5062306a36Sopenharmony_ci * BIT1 GOVRH_DVO_SYNC_POLAR 5162306a36Sopenharmony_ci * BIT2 GOVRH_DVO_ENABLE 5262306a36Sopenharmony_ci */ 5362306a36Sopenharmony_ci#define WMT_GOVR_DVO_SET 0x148 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ci/* Timing generator? */ 5662306a36Sopenharmony_ci#define WMT_GOVR_TG 0x100 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci/* Timings */ 5962306a36Sopenharmony_ci#define WMT_GOVR_TIMING_H_ALL 0x108 6062306a36Sopenharmony_ci#define WMT_GOVR_TIMING_V_ALL 0x10c 6162306a36Sopenharmony_ci#define WMT_GOVR_TIMING_V_START 0x110 6262306a36Sopenharmony_ci#define WMT_GOVR_TIMING_V_END 0x114 6362306a36Sopenharmony_ci#define WMT_GOVR_TIMING_H_START 0x118 6462306a36Sopenharmony_ci#define WMT_GOVR_TIMING_H_END 0x11c 6562306a36Sopenharmony_ci#define WMT_GOVR_TIMING_V_SYNC 0x128 6662306a36Sopenharmony_ci#define WMT_GOVR_TIMING_H_SYNC 0x12c 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci#endif /* _WM8505FB_REGS_H */ 69