From patchwork Thu May 14 19:31:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 23817 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4EJTcP4026650 for ; Thu, 14 May 2009 19:31:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751244AbZENTbX (ORCPT ); Thu, 14 May 2009 15:31:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752623AbZENTbX (ORCPT ); Thu, 14 May 2009 15:31:23 -0400 Received: from web110808.mail.gq1.yahoo.com ([67.195.13.231]:28814 "HELO web110808.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751244AbZENTbW (ORCPT ); Thu, 14 May 2009 15:31:22 -0400 Received: (qmail 32607 invoked by uid 60001); 14 May 2009 19:31:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1242329483; bh=IYLu6vjkAvCUMnHkfXuOsl9D0rErf0SQgkQWuhF76eg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=fMc2jZs07yWXtdIHYv7XtwHTc4qSh8XeCy16PWOoLc18KrgAHlI3dWabUcvwQ/oyY+gBpXsN/l5QN7xmCkXn2a21FdLGZVtmu1LX+TMRst1Xr159rQwqUeWVXreKHx7cdZQuN1J68XuyWTvx+JsIoXVZ7JkbcepXjdfUc4vAfsw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=ueZayJtiLl4iKr6FOP2KSkx9va3buPhHPD+y1QNCr3+ol1ajVhF9xdW3dOMeMloLKP8b/883XRKNPi1bEVok79GRVp9IM4e0GUOsuqNLPQwMfG7j6ao0bcoHQL4ZOcJrHbsoW2Xn9hyEHk/7aUAekiu3VRCF8WttJCg1A1qqFE8=; Message-ID: <422468.32142.qm@web110808.mail.gq1.yahoo.com> X-YMail-OSG: RAgqfuYVM1nARRdahgJUmBhNOXUmkjRG6o4TamHEFyqY0CcwEtMDVo9950_piEwP0tL8JLoZWVD1.95CrtsVdDxQ5KK0wsalUeLGUJDEalSODt7djBK.4HDZ6IlexL.r1h5M140gt.p9vyGD3YIyK8L3ZB5_vNAd7IxSejKCti6uHHShaT6i50iKpiZ0zKeQ0EoedncwGE0r6_gkjq4hmyvM9EZXlvETHrq3OSLAi7P299_YCw0Y18Z_tQvmDXTiXgQss4zsJ8gv8mD0Q5O6Jn2JzXWIW8o.VfEanWKwFLgufSU5L30hTr9tM5DjrTdr8Yxn18oXn3.Y7pkNfPlQ9ijjusGl96LIdz3s2NiIigy0hABCu9d0ru7T2g-- Received: from [199.203.99.233] by web110808.mail.gq1.yahoo.com via HTTP; Thu, 14 May 2009 12:31:23 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Thu, 14 May 2009 12:31:23 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [0905_16] Siano: smscards - add gpio look-up table To: LinuxML MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Uri Shkolnik # Date 1242326150 -10800 # Node ID dd2de98ad42c1328d24e7bf90903fab1e1368b0b # Parent 0f7ae5e8b09ff516f35f299e81aacbba237ba038 [0905_16] Siano: smscards - add gpio look-up table From: Uri Shkolnik Add gpio look-up table for various requirements, any target may select any gpio and assign it to a function Priority: normal Signed-off-by: Uri Shkolnik --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r 0f7ae5e8b09f -r dd2de98ad42c linux/drivers/media/dvb/siano/sms-cards.h --- a/linux/drivers/media/dvb/siano/sms-cards.h Thu May 14 21:30:45 2009 +0300 +++ b/linux/drivers/media/dvb/siano/sms-cards.h Thu May 14 21:35:50 2009 +0300 @@ -37,9 +37,43 @@ #define SMS1XXX_BOARD_SIANO_NICE 11 #define SMS1XXX_BOARD_SIANO_VENICE 12 +struct sms_board_gpio_cfg { + int lna_vhf_exist; + int lna_vhf_ctrl; + int lna_uhf_exist; + int lna_uhf_ctrl; + int lna_uhf_d_ctrl; + int lna_sband_exist; + int lna_sband_ctrl; + int lna_sband_d_ctrl; + int foreign_lna0_ctrl; + int foreign_lna1_ctrl; + int foreign_lna2_ctrl; + int rf_switch_vhf; + int rf_switch_uhf; + int rf_switch_sband; + int leds_power; + int led0; + int led1; + int led2; + int led3; + int led4; + int ir; + int eeprom_wp; + int mrc_sense; + int mrc_pdn_resetn; + int mrc_gp0; /* mrcs spi int */ + int mrc_gp1; + int mrc_gp2; + int mrc_gp3; + int mrc_gp4; + int host_spi_gsp_ts_int; +}; + struct sms_board { enum sms_device_type_st type; char *name, *fw[DEVICE_MODE_MAX]; + struct sms_board_gpio_cfg board_cfg; /* gpios */ int led_power, led_hi, led_lo, lna_ctrl, rf_switch;