From patchwork Sun Apr 25 06:50:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bee Hock Goh X-Patchwork-Id: 94871 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3P6p1Y0000926 for ; Sun, 25 Apr 2010 06:51:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218Ab0DYGu7 (ORCPT ); Sun, 25 Apr 2010 02:50:59 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:36002 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150Ab0DYGu6 (ORCPT ); Sun, 25 Apr 2010 02:50:58 -0400 Received: by gwj19 with SMTP id 19so3420791gwj.19 for ; Sat, 24 Apr 2010 23:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=fpT8BUiGZrIqmVB7jqhjZ/XdJZ6CAPoPufOg8goT+os=; b=nJQGuLuMAl/fAhiG0o//jUDjoJM0ZNb9KnvUMgvsx9CP/kaMpgaZyjhyjBCoXP+ZPJ mDRNqfTzhwEc9eFYyb1r8VK1pDlJ2lbkwUhi1TEo6/J232dV0kqAYEMcHAUTz6yZw8h4 o1xa+cIOZwy8Se3FrwCqz35pE9ToFW36mM6tU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KM4G8f4QXgIxcySLPmOrWdzUjKJLQDCc0qzvmEMVMsWSNpz09sEMX4S1R+Icoyg2iM ZpUb/gtvKX4SoZXkMQs5DDZXyiOqEuoKBZ6NzaClIZQDhoLY9DgPdO37mLVMBqnwQZxT PNC9aPcbxsTp/YEgkhkkVARpYNVtLdT5POfew= MIME-Version: 1.0 Received: by 10.101.151.31 with SMTP id d31mr2600048ano.220.1272178257651; Sat, 24 Apr 2010 23:50:57 -0700 (PDT) Received: by 10.100.194.7 with HTTP; Sat, 24 Apr 2010 23:50:57 -0700 (PDT) Date: Sun, 25 Apr 2010 14:50:57 +0800 Message-ID: Subject: [PATCH 1/2] tm6000 : Add additional GPIO for UT821 during frmware loading From: Bee Hock Goh To: LMML Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 25 Apr 2010 06:51:01 +0000 (UTC) diff --git a/drivers/staging/tm6000/tm6000-cards.c b/drivers/staging/tm6000/tm6000-cards.c index f795a3e..ced8fce 100644 --- a/drivers/staging/tm6000/tm6000-cards.c +++ b/drivers/staging/tm6000/tm6000-cards.c @@ -349,6 +349,22 @@ int tm6000_tuner_callback(void *ptr, int component, int command, int arg) case 0: /* newer tuner can faster reset */ switch (dev->model) { + case TM5600_BOARD_10MOONS_UT821: + tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN, + dev->gpio.tuner_reset, 0x01); + tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN, + 0x300, 0x01); + msleep(10); + tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN, + dev->gpio.tuner_reset, 0x00); + tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN, + 0x300, 0x00); + msleep(10); + tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN, + dev->gpio.tuner_reset, 0x01); + tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN, + 0x300, 0x01); + break; case TM6010_BOARD_HAUPPAUGE_900H: case TM6010_BOARD_TERRATEC_CINERGY_HYBRID_XE: