From patchwork Tue Mar 27 15:15:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiro TSUKADA X-Patchwork-Id: 10310451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5551260353 for ; Tue, 27 Mar 2018 15:17:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4574228EB9 for ; Tue, 27 Mar 2018 15:17:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39D9728EF3; Tue, 27 Mar 2018 15:17:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D23B7294DB for ; Tue, 27 Mar 2018 15:17:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752159AbeC0PRC (ORCPT ); Tue, 27 Mar 2018 11:17:02 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:33623 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752046AbeC0PRC (ORCPT ); Tue, 27 Mar 2018 11:17:02 -0400 Received: by mail-pl0-f67.google.com with SMTP id c11-v6so14276617plo.0 for ; Tue, 27 Mar 2018 08:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7o8HrmRxhp6P+KwrgDjwm860DSMl9uathIOiZqrqlDM=; b=hPBTVP2k1vi44pTETruqSznfaXnhSV/upXSTNktdLIBNDDNTe6jnYOv2xB9CHH6mtz Ijthv3I3R2/tagpgvMeCIudHkeNOzJoSeMy0cfI45FuKrSRBTe4KvsR2WyVwQ2RWju9W hUiU6Bu+Js0W/JnKy+IeP5ANjFU8GL9PnPKfhJ7DwUl+FhDpLUHzRwJiOQ9NbklFtwb2 p71Vcif1S3IcE3Se8JvhA50qHbqKjd6WZW2D7gU/odx8TF2vnAq9W7HfwlulWCe+ETqR DDTqHjcX3U+vmD0o9oi4gsb6o25rmc5k6/cgnzE5u3E/cHN5Gmao7K8H7v8OAIvgl3mM 4T7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7o8HrmRxhp6P+KwrgDjwm860DSMl9uathIOiZqrqlDM=; b=ad4EUiSLi2p0hKql87MQTi87W0zHwqQYrNZ0QwxPA7/eJzAg8og6AalIRWOUq0oi2A BgvPVrnbhPeo2GobDsJT6NNdkFN5Hjy28vk3NJGDRBksbyljJ3/+eU1+o80ZyKfPC/4G t6hwfoBKC3er8rcoZZ+Llp7ZflN8Cdmn/wUE8NRhYMcAdlVCSi17LGH3TIvPrZT/3w1W wxEnO4ZTIpsUoEnwfx+/pk/OUDWnDGvfb+3MJJusOY9e+0dAmI1sY/kw5nuVPmBKWXQZ Y1thTxeQdWQJp7lOspNW05mkp/Z6MstjUl0n7OWwgLcdebNM1R+N56wuAeGF6nDWRObV nIyA== X-Gm-Message-State: AElRT7GHgpZn/kcXToxHZCaZw2fctWspTFVRaH3hN57qtCaTO/jMnXzr kqJO8/3bU8OWhTURLskldFCMNA== X-Google-Smtp-Source: AG47ELtllTwSETFiUnjimzQLQBn/lHPBkr8oK+Ti/fmtYhIf/lOtzfRJP5KmvNZgoFc8nMnDQdlmBg== X-Received: by 2002:a17:902:85:: with SMTP id a5-v6mr40338939pla.99.1522163821349; Tue, 27 Mar 2018 08:17:01 -0700 (PDT) Received: from localhost.localdomain (softbank219203027033.bbtec.net. [219.203.27.33]) by smtp.googlemail.com with ESMTPSA id c15sm3957419pfm.114.2018.03.27.08.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 08:17:00 -0700 (PDT) From: tskd08@gmail.com To: linux-media@vger.kernel.org Cc: mchehab@s-opensource.com, hiranotaka@zng.info, Akihiro Tsukada , kraxel@bytesex.org Subject: [PATCH 1/5] dvb-frontends/dvb-pll: add tda6651 ISDB-T pll_desc Date: Wed, 28 Mar 2018 00:15:58 +0900 Message-Id: <20180327151602.12250-2-tskd08@gmail.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327151602.12250-1-tskd08@gmail.com> References: <20180327151602.12250-1-tskd08@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Akihiro Tsukada This patch adds a PLL "description" of Philips TDA6651 for ISDB-T. It was extracted from (the former) va1j5jf8007t.c of EarthSoft PT1, thus the desc might include PT1 specific configs. Signed-off-by: Akihiro Tsukada --- drivers/media/dvb-frontends/dvb-pll.c | 23 +++++++++++++++++++++++ drivers/media/dvb-frontends/dvb-pll.h | 1 + 2 files changed, 24 insertions(+) diff --git a/drivers/media/dvb-frontends/dvb-pll.c b/drivers/media/dvb-frontends/dvb-pll.c index 76c091b2cb1..ba1dc3d1641 100644 --- a/drivers/media/dvb-frontends/dvb-pll.c +++ b/drivers/media/dvb-frontends/dvb-pll.c @@ -550,6 +550,28 @@ static const struct dvb_pll_desc dvb_pll_tua6034_friio = { } }; +/* Philips TDA6651 ISDB-T, used in Earthsoft PT1 */ +static const struct dvb_pll_desc dvb_pll_tda665x_earth_pt1 = { + .name = "Philips TDA6651 ISDB-T (EarthSoft PT1)", + .min = 90000000, + .max = 770000000, + .iffreq = 57000000, + .initdata = (u8[]){ 5, 0x0e, 0x7f, 0xc1, 0x80, 0x80 }, + .count = 10, + .entries = { + { 140000000, 142857, 0xc1, 0x81 }, + { 170000000, 142857, 0xc1, 0xa1 }, + { 220000000, 142857, 0xc1, 0x62 }, + { 330000000, 142857, 0xc1, 0xa2 }, + { 402000000, 142857, 0xc1, 0xe2 }, + { 450000000, 142857, 0xc1, 0x64 }, + { 550000000, 142857, 0xc1, 0x84 }, + { 600000000, 142857, 0xc1, 0xa4 }, + { 700000000, 142857, 0xc1, 0xc4 }, + { 770000000, 142857, 0xc1, 0xe4 }, + } +}; + /* ----------------------------------------------------------- */ static const struct dvb_pll_desc *pll_list[] = { @@ -574,6 +596,7 @@ static const struct dvb_pll_desc *pll_list[] = { [DVB_PLL_SAMSUNG_TBDU18132] = &dvb_pll_samsung_tbdu18132, [DVB_PLL_SAMSUNG_TBMU24112] = &dvb_pll_samsung_tbmu24112, [DVB_PLL_TUA6034_FRIIO] = &dvb_pll_tua6034_friio, + [DVB_PLL_TDA665X_EARTH_PT1] = &dvb_pll_tda665x_earth_pt1, }; /* ----------------------------------------------------------- */ diff --git a/drivers/media/dvb-frontends/dvb-pll.h b/drivers/media/dvb-frontends/dvb-pll.h index f1f3ea4c0d5..41b3df36212 100644 --- a/drivers/media/dvb-frontends/dvb-pll.h +++ b/drivers/media/dvb-frontends/dvb-pll.h @@ -30,6 +30,7 @@ #define DVB_PLL_TDEE4 18 #define DVB_PLL_THOMSON_DTT7520X 19 #define DVB_PLL_TUA6034_FRIIO 20 +#define DVB_PLL_TDA665X_EARTH_PT1 21 struct dvb_pll_config { struct dvb_frontend *fe;