From patchwork Wed Feb 13 19:25:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: girishks2000@gmail.com X-Patchwork-Id: 2139191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 8D8C73FCA4 for ; Wed, 13 Feb 2013 19:30:08 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5hzo-0000lk-Uh; Wed, 13 Feb 2013 19:27:56 +0000 Received: from mail-da0-f44.google.com ([209.85.210.44]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U5hyr-0000W3-1T for linux-arm-kernel@lists.infradead.org; Wed, 13 Feb 2013 19:26:59 +0000 Received: by mail-da0-f44.google.com with SMTP id z20so719105dae.17 for ; Wed, 13 Feb 2013 11:26:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=9/iEpsJ2kaonz2Qgteww70WvSMtoYolEHHhrU80sQJo=; b=eSe3FLy2hIAQpOdRrm+LSAeQ6kGuoltxYcRTHsnI/TeujIdl4svFrIaIKDds1hzCOE gD4M63zQdAZhZxsSN7651CyT89+TE4QtrNkNLzIgxx8/8qyJUdFnidXsCxNT2cma3cED jrbUZ5d6fikRtrNsqEhCfqx3tEgZ3WprXEN1CdiQdYnKY9pw5sGgNwycDd1bTFs/HSWI pcC5iEyxCg0IOZGVdx98GQdTmdFNPVdcDSSqooVDA4+5pEctGd2V1ryDQZNiDEMc7A01 ASDvdec5lrkYXsX8elUBfcjiv5AVm7wbvIUdlEE9BD5F0scRP9xGFPXBTMkQhdxVEMsi lLZg== X-Received: by 10.66.192.162 with SMTP id hh2mr51998207pac.79.1360783615503; Wed, 13 Feb 2013 11:26:55 -0800 (PST) Received: from localhost.localdomain (D32450A4.uspool.samsung.com. [211.36.80.164]) by mx.google.com with ESMTPS id t6sm85719744paz.11.2013.02.13.11.26.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 11:26:55 -0800 (PST) From: Girish K S To: spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH V2 5/5] spi: s3c64xx: Added support for exynos5440 spi Date: Wed, 13 Feb 2013 11:25:31 -0800 Message-Id: <1360783531-32654-6-git-send-email-ks.giri@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360783531-32654-1-git-send-email-ks.giri@samsung.com> References: <1360783531-32654-1-git-send-email-ks.giri@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130213_142657_228986_E5074910 X-CRM114-Status: GOOD ( 13.81 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.44 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (girishks2000[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (girishks2000[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: grant.likely@secretlab.ca, t.figa@samsung.com, broonie@opensource.wolfsonmicro.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds support for the exynos5440 spi controller. The integration of the spi IP in exynos5440 is different from other SoC's. The I/O pins are no more configured via gpio, they have dedicated pins. Signed-off-by: Girish K S --- changes in v2: the fifo mask modified to 0x1ff drivers/spi/spi-s3c64xx.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 15b7ee9..332a4df 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1580,6 +1580,15 @@ static struct s3c64xx_spi_port_config exynos4_spi_port_config = { .clk_from_cmu = true, }; +static struct s3c64xx_spi_port_config exynos5440_spi_port_config = { + .fifo_lvl_mask = { 0x1ff }, + .rx_lvl_offset = 15, + .tx_st_done = 25, + .high_speed = true, + .clk_from_cmu = true, + .quirks = S3C64XX_SPI_QUIRK_POLL, +}; + static struct platform_device_id s3c64xx_spi_driver_ids[] = { { .name = "s3c2443-spi", @@ -1608,6 +1617,9 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = { { .compatible = "samsung,exynos4210-spi", .data = (void *)&exynos4_spi_port_config, }, + { .compatible = "samsung,exynos5440-spi", + .data = (void *)&exynos5440_spi_port_config, + }, { }, }; MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match);