From patchwork Tue Jan 13 13:26:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 2145 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 n0DDMFAH006654 for ; Tue, 13 Jan 2009 05:22:15 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754058AbZAMN0M (ORCPT ); Tue, 13 Jan 2009 08:26:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756926AbZAMN0M (ORCPT ); Tue, 13 Jan 2009 08:26:12 -0500 Received: from web110812.mail.gq1.yahoo.com ([67.195.13.235]:35300 "HELO web110812.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754058AbZAMN0L (ORCPT ); Tue, 13 Jan 2009 08:26:11 -0500 Received: (qmail 61813 invoked by uid 60001); 13 Jan 2009 13:26:10 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=jlahNxOXORfr56v9hGyfHzU3IswcgmDSRpibuVnDyzGWRqF9s1Hjrx4zkPcJPiFpYh7bClQHPe5Zo6o71MyyvtXn4YG5hLZEfsBUa6/c2J5uYnTjbUlvfKSabeFABb1XYDB2eFOwGHz8x9mApb5FhfqIrZ4+MK4Kf4p9MIO3jKU=; X-YMail-OSG: T81InjQVM1lvy5zntrnLZbhtr9p2J2Sld34ojDUsYMxomxqUfLkYEyNhvyBpDy.2txDaHml6m03pRXG61bBRCsp7p.pEtowvftKaZb9u6wa1igWNCK4cs9mkyedJhPWOSdVmLT1ShyiJkQE6aItIk.rDAYsSkHMPsMDVd1Cw.4X_89YIQiMwBXnbcDmRue4qIzz.UQOtRURl Received: from [199.203.99.233] by web110812.mail.gq1.yahoo.com via HTTP; Tue, 13 Jan 2009 05:26:09 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Tue, 13 Jan 2009 05:26:09 -0800 (PST) From: Uri Shkolnik Reply-To: urishk@yahoo.com Subject: [PATCH] Siano 10229 Build configuration upgrade To: linux-media@vger.kernel.org Cc: Mauro Carvalho MIME-Version: 1.0 Message-ID: <28770.61622.qm@web110812.mail.gq1.yahoo.com> 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 1231849232 -7200 # Node ID 46b5358fa358cf6a0338918a1472728b2fdf2685 # Parent 84bd0617f712c993f6ee767c78483e147b049a49 SMS driver build upgrade From: Uri Shkolnik This patch provides the following: A) SPI and SDIO interfaces driver support B) DVB-API v5 (S2) and Siano's subsystems support C) Dynamic configuration for single module 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 84bd0617f712 -r 46b5358fa358 linux/drivers/media/dvb/siano/Kconfig --- a/linux/drivers/media/dvb/siano/Kconfig Tue Jan 13 14:17:23 2009 +0200 +++ b/linux/drivers/media/dvb/siano/Kconfig Tue Jan 13 14:20:32 2009 +0200 @@ -2,25 +2,69 @@ # Siano Mobile Silicon Digital TV device configuration # -config DVB_SIANO_SMS1XXX - tristate "Siano SMS1XXX USB dongle support" - depends on DVB_CORE && USB +config SMS_SIANO_MDTV + tristate "Siano MDTV receiver" + default m ---help--- - Choose Y here if you have a USB dongle with a SMS1XXX chipset. + Choose Y or M here if you have MDTV receiver with a Siano chipset. - To compile this driver as a module, choose M here: the - module will be called sms1xxx. + To compile this driver as a module, choose M here + (The modules will be called smsmdtv). -config DVB_SIANO_SMS1XXX_SMS_IDS - bool "Enable support for Siano Mobile Silicon default USB IDs" - depends on DVB_SIANO_SMS1XXX + Note: All dependents, if selected, will be part of this module. + + Further documentation on this driver can be found on the WWW at http://www.siano-ms.com/ + +if SMS_SIANO_MDTV + +# Kernel sub systems support + +config SMS_DVB3_SUBSYS + bool "DVB v.3 Subsystem support" default y ---help--- - Choose Y here if you have a USB dongle with a SMS1XXX chipset - that uses Siano Mobile Silicon's default usb vid:pid. + Choose if you would like to have DVB v.3 kernel sub-system support. - Choose N here if you would prefer to use Siano's external driver. +config SMS_DVB5_S2API_SUBSYS + bool "DVB v.5 (S2 API) Subsystem support" + default n + ---help--- + Choose if you would like to have DVB v.5 (S2 API) kernel sub-system support. - Further documentation on this driver can be found on the WWW at - . +config SMS_HOSTLIB_SUBSYS + bool "Host Library Subsystem support" + default n + ---help--- + Choose if you would like to have Siano's host library kernel sub-system support. +if SMS_HOSTLIB_SUBSYS + +config SMS_NET_SUBSYS + bool "Siano Network Adapter" + default n + ---help--- + Choose if you would like to have Siano's network adapter support. + +endif # SMS_HOSTLIB_SUBSYS + +# Hardware interfaces support + +config SMS_USB_DRV + bool "USB interface support" + default y + ---help--- + Choose if you would like to have Siano's support for USB interface + +config SMS_SDIO_DRV + bool "SDIO interface support" + default n + ---help--- + Choose if you would like to have Siano's support for SDIO interface + +config SMS_SPI_PXA310_DRV + bool "PXA 310 SPI interface support" + default n + ---help--- + Choose if you would like to have Siano's support for PXA 310 SPI interface + +endif # SMS_SIANO_MDTV diff -r 84bd0617f712 -r 46b5358fa358 linux/drivers/media/dvb/siano/Makefile --- a/linux/drivers/media/dvb/siano/Makefile Tue Jan 13 14:17:23 2009 +0200 +++ b/linux/drivers/media/dvb/siano/Makefile Tue Jan 13 14:20:32 2009 +0200 @@ -1,8 +1,102 @@ sms1xxx-objs := smscoreapi.o smsusb.o sm -sms1xxx-objs := smscoreapi.o smsusb.o smsdvb.o sms-cards.o +############################################################################### +# +# Siano Mobile Silicon, Inc. +# MDTV receiver kernel modules. +# Copyright (C) 2006-2008, Uri Shkolnik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################### -obj-$(CONFIG_DVB_SIANO_SMS1XXX) += sms1xxx.o -EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core +# Local variables initialization +SMS_DVB3_SUBSYS := 0 +SMS_DVB5_S2API_SUBSYS := 0 +SMS_HOSTLIB_SUBSYS := 0 + +SMS_USB_DRV := 0 +SMS_SDIO_DRV := 0 +SMS_SPI_PXA310_DRV := 0 + + +# Default object, include in every build variant +SMSOBJ := smscoreapi.o sms-cards.o EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m) + +# Kernel subsystems support +ifdef CONFIG_SMS_DVB3_SUBSYS +ifneq ($(CONFIG_SMS_DVB3_SUBSYS),n) +SMS_DVB3_SUBSYS := 1 +EXTRA_CFLAGS += -DSMS_DVB3_SUBSYS -Idrivers/media/dvb/dvb-core +SMSOBJ += smsdvb.o +endif +endif + +ifdef CONFIG_SMS_DVB5_S2API_SUBSYS +ifneq ($(CONFIG_SMS_DVB5_S2API_SUBSYS),n) +SMS_DVB5_S2API_SUBSYS := 1 +EXTRA_CFLAGS += -DSMS_DVB5_S2API_SUBSYS +endif +endif + +ifdef CONFIG_SMS_HOSTLIB_SUBSYS +ifneq ($(CONFIG_SMS_HOSTLIB_SUBSYS),n) +SMS_HOSTLIB_SUBSYS := 1 +EXTRA_CFLAGS += -DSMS_HOSTLIB_SUBSYS +SMSOBJ += smschar.o +endif +endif + +ifdef CONFIG_SMS_NET_SUBSYS +ifneq ($(CONFIG_SMS_NET_SUBSYS),n) +SMS_NET_SUBSYS := 1 +EXTRA_CFLAGS += -DSMS_NET_SUBSYS +SMSOBJ += smsnet.o +endif +endif + +# Hardware (host) interfaces support +ifdef CONFIG_SMS_USB_DRV +ifneq ($(CONFIG_SMS_USB_DRV),n) +SMS_USB_DRV := 1 +EXTRA_CFLAGS += -DSMS_USB_DRV +SMSOBJ += smsusb.o +endif +endif + +ifdef CONFIG_SMS_SDIO_DRV +ifneq ($(CONFIG_SMS_SDIO_DRV),n) +SMS_SDIO_DRV := 1 +EXTRA_CFLAGS += -DSMS_SDIO_DRV +SMSOBJ += smssdio.o +endif +endif + +ifdef CONFIG_SMS_SPI_PXA310_DRV +ifneq ($(CONFIG_SMS_SPI_PXA310_DRV),n) +SMS_SPI_PXA310_DRV := 1 +EXTRA_CFLAGS += -DSMS_SPI_PXA310_DRV +SMSOBJ += smsspilog.o smsspicommon.o smsspiphy_pxa.o +endif +endif + +# All selected in one module named smsmdtv +smsmdtv-objs := $(SMSOBJ) + +obj-$(CONFIG_SMS_SIANO_MDTV) := smsmdtv.o + + +