1 1.3 jmcneill /* $NetBSD: tvpll_tuners.c,v 1.3 2011/07/15 03:31:37 jmcneill Exp $ */ 2 1.1 jakllsch 3 1.1 jakllsch /* 4 1.1 jakllsch * Copyright (c) 2008, 2011 Jonathan A. Kollasch 5 1.1 jakllsch * All rights reserved. 6 1.1 jakllsch * 7 1.1 jakllsch * Redistribution and use in source and binary forms, with or without 8 1.1 jakllsch * modification, are permitted provided that the following conditions 9 1.1 jakllsch * are met: 10 1.1 jakllsch * 1. Redistributions of source code must retain the above copyright 11 1.1 jakllsch * notice, this list of conditions and the following disclaimer. 12 1.1 jakllsch * 2. Redistributions in binary form must reproduce the above copyright 13 1.1 jakllsch * notice, this list of conditions and the following disclaimer in the 14 1.1 jakllsch * documentation and/or other materials provided with the distribution. 15 1.1 jakllsch * 16 1.1 jakllsch * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17 1.1 jakllsch * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18 1.1 jakllsch * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 1.1 jakllsch * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 20 1.1 jakllsch * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 1.1 jakllsch * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 1.1 jakllsch * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 23 1.1 jakllsch * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 1.1 jakllsch * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 25 1.1 jakllsch * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 26 1.1 jakllsch * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 1.1 jakllsch */ 28 1.1 jakllsch 29 1.1 jakllsch #include <sys/cdefs.h> 30 1.3 jmcneill __KERNEL_RCSID(0, "$NetBSD: tvpll_tuners.c,v 1.3 2011/07/15 03:31:37 jmcneill Exp $"); 31 1.1 jakllsch 32 1.1 jakllsch #include <sys/param.h> 33 1.1 jakllsch #include <dev/i2c/tvpllvar.h> 34 1.1 jakllsch #include <dev/i2c/tvpll_tuners.h> 35 1.1 jakllsch 36 1.1 jakllsch static struct tvpll_entry tuv1236d_pll_entries[] = { 37 1.3 jmcneill { 157250000, 62500, 0xc6, 0x41, TVPLL_IGNORE_AUX }, 38 1.3 jmcneill { 454000000, 62500, 0xc6, 0x42, TVPLL_IGNORE_AUX }, 39 1.3 jmcneill { 999999999, 62500, 0xc6, 0x44, TVPLL_IGNORE_AUX }, 40 1.1 jakllsch }; 41 1.1 jakllsch struct tvpll_data tvpll_tuv1236d_pll = { 42 1.1 jakllsch "Philips TUV1236D", 43 1.1 jakllsch 54000000, 864000000, 44000000, 44 1.1 jakllsch NULL, NULL, 45 1.1 jakllsch __arraycount(tuv1236d_pll_entries), tuv1236d_pll_entries 46 1.1 jakllsch }; 47 1.1 jakllsch 48 1.3 jmcneill static uint8_t tdvs_h06xf_initdata[] = { 2, 0xdf, 0x50 }; 49 1.1 jakllsch static struct tvpll_entry tdvs_h06xf_pll_entries[] = { 50 1.3 jmcneill { 165000000, 62500, 0xce, 0x01, 0x50 }, 51 1.3 jmcneill { 450000000, 62500, 0xce, 0x02, 0x50 }, 52 1.3 jmcneill { 999999999, 62500, 0xce, 0x04, 0x50 }, 53 1.1 jakllsch }; 54 1.1 jakllsch struct tvpll_data tvpll_tdvs_h06xf_pll = { 55 1.1 jakllsch "LG TDVS-H06xF", 56 1.1 jakllsch 54000000, 863000000, 44000000, 57 1.3 jmcneill tdvs_h06xf_initdata, NULL, 58 1.1 jakllsch __arraycount(tdvs_h06xf_pll_entries), tdvs_h06xf_pll_entries 59 1.1 jakllsch }; 60