1fa225cbcSrjs/* -*- c-basic-offset: 4 -*- */ 2fa225cbcSrjs/* 3fa225cbcSrjs * Copyright © 2007 Dave Mueller 4fa225cbcSrjs * 5fa225cbcSrjs * Permission is hereby granted, free of charge, to any person obtaining a 6fa225cbcSrjs * copy of this software and associated documentation files (the "Software"), 7fa225cbcSrjs * to deal in the Software without restriction, including without limitation 8fa225cbcSrjs * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9fa225cbcSrjs * and/or sell copies of the Software, and to permit persons to whom the 10fa225cbcSrjs * Software is furnished to do so, subject to the following conditions: 11fa225cbcSrjs * 12fa225cbcSrjs * The above copyright notice and this permission notice (including the next 13fa225cbcSrjs * paragraph) shall be included in all copies or substantial portions of the 14fa225cbcSrjs * Software. 15fa225cbcSrjs * 16fa225cbcSrjs * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17fa225cbcSrjs * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18fa225cbcSrjs * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19fa225cbcSrjs * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20fa225cbcSrjs * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21fa225cbcSrjs * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 22fa225cbcSrjs * IN THE SOFTWARE. 23fa225cbcSrjs * 24fa225cbcSrjs * Authors: 25fa225cbcSrjs * Dave Mueller <dave.mueller@gmx.ch> 26fa225cbcSrjs * 27fa225cbcSrjs */ 28fa225cbcSrjs 29fa225cbcSrjs#ifndef TFP410_REG_H 30fa225cbcSrjs#define TFP410_REG_H 31fa225cbcSrjs 32fa225cbcSrjs/* register definitions according to the TFP410 data sheet */ 33fa225cbcSrjs#define TFP410_VID 0x014C 34fa225cbcSrjs#define TFP410_DID 0x0410 35fa225cbcSrjs 36fa225cbcSrjs#define TFP410_VID_LO 0x00 37fa225cbcSrjs#define TFP410_VID_HI 0x01 38fa225cbcSrjs#define TFP410_DID_LO 0x02 39fa225cbcSrjs#define TFP410_DID_HI 0x03 40fa225cbcSrjs#define TFP410_REV 0x04 41fa225cbcSrjs 42fa225cbcSrjs#define TFP410_CTL_1 0x08 43fa225cbcSrjs#define TFP410_CTL_1_TDIS (1<<6) 44fa225cbcSrjs#define TFP410_CTL_1_VEN (1<<5) 45fa225cbcSrjs#define TFP410_CTL_1_HEN (1<<4) 46fa225cbcSrjs#define TFP410_CTL_1_DSEL (1<<3) 47fa225cbcSrjs#define TFP410_CTL_1_BSEL (1<<2) 48fa225cbcSrjs#define TFP410_CTL_1_EDGE (1<<1) 49fa225cbcSrjs#define TFP410_CTL_1_PD (1<<0) 50fa225cbcSrjs 51fa225cbcSrjs#define TFP410_CTL_2 0x09 52fa225cbcSrjs#define TFP410_CTL_2_VLOW (1<<7) 53fa225cbcSrjs#define TFP410_CTL_2_MSEL_MASK (0x7<<4) 54fa225cbcSrjs#define TFP410_CTL_2_MSEL (1<<4) 55fa225cbcSrjs#define TFP410_CTL_2_TSEL (1<<3) 56fa225cbcSrjs#define TFP410_CTL_2_RSEN (1<<2) 57fa225cbcSrjs#define TFP410_CTL_2_HTPLG (1<<1) 58fa225cbcSrjs#define TFP410_CTL_2_MDI (1<<0) 59fa225cbcSrjs 60fa225cbcSrjs#define TFP410_CTL_3 0x0A 61fa225cbcSrjs#define TFP410_CTL_3_DK_MASK (0x7<<5) 62fa225cbcSrjs#define TFP410_CTL_3_DK (1<<5) 63fa225cbcSrjs#define TFP410_CTL_3_DKEN (1<<4) 64fa225cbcSrjs#define TFP410_CTL_3_CTL_MASK (0x7<<1) 65fa225cbcSrjs#define TFP410_CTL_3_CTL (1<<1) 66fa225cbcSrjs 67fa225cbcSrjs#define TFP410_USERCFG 0x0B 68fa225cbcSrjs 69fa225cbcSrjs#define TFP410_DE_DLY 0x32 70fa225cbcSrjs 71fa225cbcSrjs#define TFP410_DE_CTL 0x33 72fa225cbcSrjs#define TFP410_DE_CTL_DEGEN (1<<6) 73fa225cbcSrjs#define TFP410_DE_CTL_VSPOL (1<<5) 74fa225cbcSrjs#define TFP410_DE_CTL_HSPOL (1<<4) 75fa225cbcSrjs#define TFP410_DE_CTL_DEDLY8 (1<<0) 76fa225cbcSrjs 77fa225cbcSrjs#define TFP410_DE_TOP 0x34 78fa225cbcSrjs 79fa225cbcSrjs#define TFP410_DE_CNT_LO 0x36 80fa225cbcSrjs#define TFP410_DE_CNT_HI 0x37 81fa225cbcSrjs 82fa225cbcSrjs#define TFP410_DE_LIN_LO 0x38 83fa225cbcSrjs#define TFP410_DE_LIN_HI 0x39 84fa225cbcSrjs 85fa225cbcSrjs#define TFP410_H_RES_LO 0x3A 86fa225cbcSrjs#define TFP410_H_RES_HI 0x3B 87fa225cbcSrjs 88fa225cbcSrjs#define TFP410_V_RES_LO 0x3C 89fa225cbcSrjs#define TFP410_V_RES_HI 0x3D 90fa225cbcSrjs 91fa225cbcSrjs#endif 92