1 | /* $NetBSD: tvpll_tuners.c,v 1.3 2011/07/15 03:31:37 jmcneill Exp $ */ |
2 | |
3 | /* |
4 | * Copyright (c) 2008, 2011 Jonathan A. Kollasch |
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 COPYRIGHT HOLDERS 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 COPYRIGHT HOLDER OR |
20 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
21 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
22 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
23 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
24 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
25 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
26 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
28 | |
29 | #include <sys/cdefs.h> |
30 | __KERNEL_RCSID(0, "$NetBSD: tvpll_tuners.c,v 1.3 2011/07/15 03:31:37 jmcneill Exp $" ); |
31 | |
32 | #include <sys/param.h> |
33 | #include <dev/i2c/tvpllvar.h> |
34 | #include <dev/i2c/tvpll_tuners.h> |
35 | |
36 | static struct tvpll_entry tuv1236d_pll_entries[] = { |
37 | { 157250000, 62500, 0xc6, 0x41, TVPLL_IGNORE_AUX }, |
38 | { 454000000, 62500, 0xc6, 0x42, TVPLL_IGNORE_AUX }, |
39 | { 999999999, 62500, 0xc6, 0x44, TVPLL_IGNORE_AUX }, |
40 | }; |
41 | struct tvpll_data tvpll_tuv1236d_pll = { |
42 | "Philips TUV1236D" , |
43 | 54000000, 864000000, 44000000, |
44 | NULL, NULL, |
45 | __arraycount(tuv1236d_pll_entries), tuv1236d_pll_entries |
46 | }; |
47 | |
48 | static uint8_t tdvs_h06xf_initdata[] = { 2, 0xdf, 0x50 }; |
49 | static struct tvpll_entry tdvs_h06xf_pll_entries[] = { |
50 | { 165000000, 62500, 0xce, 0x01, 0x50 }, |
51 | { 450000000, 62500, 0xce, 0x02, 0x50 }, |
52 | { 999999999, 62500, 0xce, 0x04, 0x50 }, |
53 | }; |
54 | struct tvpll_data tvpll_tdvs_h06xf_pll = { |
55 | "LG TDVS-H06xF" , |
56 | 54000000, 863000000, 44000000, |
57 | tdvs_h06xf_initdata, NULL, |
58 | __arraycount(tdvs_h06xf_pll_entries), tdvs_h06xf_pll_entries |
59 | }; |
60 | |