1 | /* $NetBSD: au8522reg.h,v 1.2 2011/07/10 00:47:34 jmcneill Exp $ */ |
2 | |
3 | /*- |
4 | * Copyright (c) 2010 Jared D. McNeill <jmcneill@invisible.ca> |
5 | * All rights reserved. |
6 | * |
7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions |
9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. |
15 | * |
16 | * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS |
17 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
18 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS |
20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
26 | * POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
28 | |
29 | #ifndef _AU8522REG_H |
30 | #define _AU8522REG_H |
31 | |
32 | #define AU8522_REG_STATUS 0x0000 |
33 | #define AU8522_STATUS_LOCK 0xa0 |
34 | #define AU8522_REG_INTMASK 0x0010 |
35 | #define AU8522_REG_VIDEOMODE 0x0011 |
36 | #define AU8522_VIDEOMODE_CVBS 0x00 |
37 | #define AU8522_VIDEOMODE_SVIDEO 0x04 |
38 | #define AU8522_REG_TV_PGA 0x0012 |
39 | #define AU8522_TV_PGA_CVBS 0x0f |
40 | #define AU8522_REG_INPUTCTL 0x0081 |
41 | #define AU8522_INPUTCTL_SVIDEO_CH13 0x23 |
42 | #define AU8522_INPUTCTL_CVBS_CH4_SIF 0x28 |
43 | #define AU8522_INPUTCTL_CVBS_CH1 0xa2 |
44 | #define AU8522_REG_PGACTL 0x0082 |
45 | #define AU8522_REG_CLAMPCTL 0x0083 |
46 | #define AU8522_REG_I2C_CTL0 0x0090 |
47 | #define AU8522_REG_I2C_CTL1 0x0091 |
48 | #define AU8522_REG_MODCLKCTL 0x00a3 |
49 | #define AU8522_MODCLKCTL_SVIDEO 0x02 |
50 | #define AU8522_MODCLKCTL_CVBS 0x12 |
51 | #define AU8522_REG_SYSMODCTL0 0x00a4 |
52 | #define AU8522_SYSMODCTL0_RESET 0x01 |
53 | #define AU8522_SYSMODCTL0_CVBS 0x9d |
54 | #define AU8522_SYSMODCTL0_DISABLE 0x10 |
55 | #define AU8522_REG_SYSMODCTL1 0x00a5 |
56 | #define AU8522_SYSMODCTL1_SVIDEO 0x04 |
57 | #define AU8522_SYSMODCTL1_I2S 0x09 |
58 | #define AU8522_REG_AGCRANGECTL 0x00a6 |
59 | #define AU8522_REG_SYSGAINCTL 0x00a7 |
60 | #define AU8522_REG_TUNERAGCRFSTOP 0x00a8 |
61 | #define AU8522_REG_TUNERAGCRFSTART 0x00a9 |
62 | #define AU8522_REG_TUNERAGCRFDEFAULT 0x00aa |
63 | #define AU8522_REG_TUNERAGCIFSTOP 0x00ab |
64 | #define AU8522_REG_TUNERAGCIFSTART 0x00ac |
65 | #define AU8522_REG_TUNERAGCIFDEFAULT 0x00ad |
66 | #define AU8522_REG_TUNERAGCSTEP 0x00ae |
67 | #define AU8522_REG_TUNERGAINSTEP 0x00af |
68 | #define AU8522_REG_GPIO_DATA 0x00e2 |
69 | #define AU8522_REG_AUDIO_MODE 0x00f1 |
70 | #define AU8522_REG_AUDIO_VOL_L 0x00f2 |
71 | #define AU8522_REG_AUDIO_VOL_R 0x00f3 |
72 | #define AU8522_REG_AUDIO_VOL 0x00f4 |
73 | #define AU8522_REG_USBEN 0x0101 |
74 | #define AU8522_REG_TUNERCTL 0x0106 |
75 | #define AU8522_TUNERCTL_EN 0x01 |
76 | #define AU8522_REG_I2S_CTL0 0x0110 |
77 | #define AU8522_REG_I2S_CTL1 0x0111 |
78 | #define AU8522_REG_I2S_CTL2 0x0112 |
79 | #define AU8522_REG_VFCOEF_SVIDEO 0x0413 |
80 | #define AU8522_REG_VFCOEF_CVBS 0x0415 |
81 | #define AU8522_REG_AUDIO_FREQ 0x0606 |
82 | #define AU8522_REG_LPFCOEF_BASE 0x060b |
83 | #define AU8522_REG_SNR_QAM 0x4522 |
84 | #define AU8522_REG_SNR_VSB 0x4311 |
85 | |
86 | #endif /* !_AU8522REG_H */ |
87 | |