From patchwork Thu Jul 17 22:43:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Alves X-Patchwork-Id: 4579101 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2F8D7C0514 for ; Thu, 17 Jul 2014 22:43:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A2C9201BA for ; Thu, 17 Jul 2014 22:43:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 603A02018E for ; Thu, 17 Jul 2014 22:43:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758132AbaGQWno (ORCPT ); Thu, 17 Jul 2014 18:43:44 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:58167 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758127AbaGQWno (ORCPT ); Thu, 17 Jul 2014 18:43:44 -0400 Received: by mail-wg0-f49.google.com with SMTP id k14so2720550wgh.8 for ; Thu, 17 Jul 2014 15:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=zKYQts4QfcfoqIUT5gnLZ1NKi6aHEkZbKFeCSNCaQJc=; b=Ox6Q69I6ih34vH0Wrac7mbr+nsYvPeI3TOSMcwZ7iPTdwmO1XUXd+PO6sMd5mJ7C4t d+RS/hHEIsrW4oyLbKv/mqnudAgTaA2/7MtOfCFnO+KvDIel3+Umi/2zIUCZyv6mqg4/ hL5Dqmh8UzeXQn7R7533e0UpZdQH3y4RE/x60wwCBdUCxbm4pFbgxy5je+ndQU64jVEZ LG91+a/rxf6VbqI9cWWh4nAM21HZM7/RHvWoiRcXuD6mOCakn/0aZpI2hn/ejFfm7pKE 0AVMJqt7rMtPpLjpok/HTz9snhkeLHKOLxzMNexR3opnC5WzdTdUQNaLH32MNjDoD4Kn mu1A== X-Received: by 10.180.90.233 with SMTP id bz9mr1901135wib.42.1405637022800; Thu, 17 Jul 2014 15:43:42 -0700 (PDT) Received: from localhost.localdomain (a89-152-208-230.cpe.netcabo.pt. [89.152.208.230]) by mx.google.com with ESMTPSA id lq15sm3263937wic.1.2014.07.17.15.43.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Jul 2014 15:43:42 -0700 (PDT) From: Luis Alves To: linux-media@vger.kernel.org Cc: crope@iki.fi, Luis Alves Subject: [PATCH 1/1 v2] si2168: Support Si2168-A20 firmware downloading. Date: Thu, 17 Jul 2014 23:43:37 +0100 Message-Id: <1405637017-24036-1-git-send-email-ljalvs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP (ignore the previous one, it was incomplete) This adds support for the Si2168-A20 firmware download. Extracting the firmware: wget http://www.tbsdtv.com/download/document/tbs6281/tbs6281-t2-t-driver_v1.0.0.6.zip unzip tbs6281-t2-t-driver_v1.0.0.6.zip dd if=tbs-6281_x64/tbs6281_64.sys of=dvb-demod-si2168-a20-01.fw count=28656 bs=1 skip=1625088 md5sum: 32e06713b33915f674bfb2c209beaea5 /lib/firmware/dvb-demod-si2168-a20-01.fw Regards, Luis Signed-off-by: Luis Alves --- drivers/media/dvb-frontends/si2168.c | 5 +++++ drivers/media/dvb-frontends/si2168_priv.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index 7e45eeab..50c4a91 100644 --- a/drivers/media/dvb-frontends/si2168.c +++ b/drivers/media/dvb-frontends/si2168.c @@ -377,10 +377,14 @@ static int si2168_init(struct dvb_frontend *fe) chip_id = cmd.args[1] << 24 | cmd.args[2] << 16 | cmd.args[3] << 8 | cmd.args[4] << 0; + #define SI2168_A20 ('A' << 24 | 68 << 16 | '2' << 8 | '0' << 0) #define SI2168_A30 ('A' << 24 | 68 << 16 | '3' << 8 | '0' << 0) #define SI2168_B40 ('B' << 24 | 68 << 16 | '4' << 8 | '0' << 0) switch (chip_id) { + case SI2168_A20: + fw_file = SI2168_A20_FIRMWARE; + break; case SI2168_A30: fw_file = SI2168_A30_FIRMWARE; break; @@ -672,5 +676,6 @@ module_i2c_driver(si2168_driver); MODULE_AUTHOR("Antti Palosaari "); MODULE_DESCRIPTION("Silicon Labs Si2168 DVB-T/T2/C demodulator driver"); MODULE_LICENSE("GPL"); +MODULE_FIRMWARE(SI2168_A20_FIRMWARE); MODULE_FIRMWARE(SI2168_A30_FIRMWARE); MODULE_FIRMWARE(SI2168_B40_FIRMWARE); diff --git a/drivers/media/dvb-frontends/si2168_priv.h b/drivers/media/dvb-frontends/si2168_priv.h index bebb68a..ebbf502 100644 --- a/drivers/media/dvb-frontends/si2168_priv.h +++ b/drivers/media/dvb-frontends/si2168_priv.h @@ -22,6 +22,7 @@ #include #include +#define SI2168_A20_FIRMWARE "dvb-demod-si2168-a20-01.fw" #define SI2168_A30_FIRMWARE "dvb-demod-si2168-a30-01.fw" #define SI2168_B40_FIRMWARE "dvb-demod-si2168-b40-01.fw" #define SI2168_B40_FIRMWARE_FALLBACK "dvb-demod-si2168-02.fw"