From patchwork Tue Apr 5 21:38:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gardiner X-Patchwork-Id: 688821 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p35LfAbd008872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 5 Apr 2011 21:41:30 GMT Received: from dlep35.itg.ti.com ([157.170.170.118]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p35LdNVg017520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Apr 2011 16:39:23 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id p35LdM9t019382; Tue, 5 Apr 2011 16:39:22 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 704D380630; Tue, 5 Apr 2011 16:39:20 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id 7B84280635 for ; Tue, 5 Apr 2011 16:38:24 -0500 (CDT) Received: from red.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id p35LcOsH006558 for ; Tue, 5 Apr 2011 16:38:24 -0500 (CDT) Received: from psmtp.com (na3sys009amx242.postini.com [74.125.149.126]) by red.ext.ti.com (8.13.7/8.13.7) with SMTP id p35LcNdH032368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 Apr 2011 16:38:23 -0500 Received: from na3sys009aog108.obsmtp.com ([209.85.213.47]) (using TLSv1) by na3sys009amx242.postini.com ([74.125.148.10]) with SMTP; Tue, 05 Apr 2011 21:38:23 GMT Received: from mail-yw0-f47.google.com ([209.85.213.47]) (using TLSv1) by na3sys009aob108.postini.com ([74.125.148.12]) with SMTP ID DSNKTZuLzst+RN+3ujSkrnHT9KkM0rySAuH9@postini.com; Tue, 05 Apr 2011 14:38:23 PDT Received: by mail-yw0-f47.google.com with SMTP id 8so422434ywg.34 for ; Tue, 05 Apr 2011 14:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nanometrics.ca; s=google; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=tLbF7XMeEFPegYc7QRb9f809mzTLb24fAnOu9PRFO+U=; b=ADDWeIf+ub8EZtA2JtUTSyd+obrcHhz4AoCJrS+oy7sz/03+Q4BW5TmQC2UoMJN3Dr Vl74Vx0u3zm7dGR5dRgwNHyb6KyAQg70Xdyl8xx5W2FzaHsskP9ma9NyTzxCb/9va6TB TS0BxmOIziqhEY9HkCuDZatoeRZyzBwC9KunI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=nanometrics.ca; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=ldutIKp4LLPEZW5VRbGwL1RVL8VUnII5yapUiBzzchDbihPQ8mrwan4oJenCi0lkOC 5adPhgUYbfb2z2iQcUbvn1v8eLKy2CEthIwJasgE7u2wwOpdBXvxUepdOnnE8cwjHfs3 nD9ZDQTP2dfBvBgk9OYsEL/EIGs+4Un83cXk8= Received: by 10.101.177.8 with SMTP id e8mr174333anp.14.1302039502434; Tue, 05 Apr 2011 14:38:22 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id c24sm6932367ana.21.2011.04.05.14.38.20 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2011 14:38:21 -0700 (PDT) From: Ben Gardiner To: davinci-linux-open-source@linux.davincidsp.com, linux-i2c@vger.kernel.org, Sekhar Nori , Ben Dooks Subject: [PATCH 6/6] da8xx: enable the use of the ICPFUNC in i2c-davinci Date: Tue, 5 Apr 2011 17:38:09 -0400 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: References: X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: linux-kernel@vger.kernel.org, Bastian Ruppert , Philby John , Ben Dooks , linux-arm-kernel@lists.infradead.org X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 05 Apr 2011 21:41:30 +0000 (UTC) Both the da850 and da830 have an I2C controller which has the ICPFUNC registers. Indicate this for all da830 and da850 boards by setting the has_pfunc flag true in the da8xx utility setup routine for registering the I2C controller Signed-off-by: Ben Gardiner Cc: Sekhar Nori Cc: Ben Dooks --- arch/arm/mach-davinci/devices-da8xx.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index beda8a4..da01558 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -324,6 +324,12 @@ int __init da8xx_register_i2c(int instance, else return -EINVAL; + /* + * Both the DA850 and DA830 have an I2C controller which has the + * ICPFUNC et. al. registers + */ + pdata->has_pfunc = 1; + pdev->dev.platform_data = pdata; return platform_device_register(pdev); }