From patchwork Tue Jun 18 05:00:11 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: 2738751 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6109D9F39E for ; Tue, 18 Jun 2013 05:04:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6AC5720286 for ; Tue, 18 Jun 2013 05:04:02 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 05C9920284 for ; Tue, 18 Jun 2013 05:04:01 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uoo3B-0003s7-C5; Tue, 18 Jun 2013 05:01:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uoo2l-0004Mr-GL; Tue, 18 Jun 2013 05:01:23 +0000 Received: from mail-pb0-x22f.google.com ([2607:f8b0:400e:c01::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uoo2Q-0004J2-Os for linux-arm-kernel@lists.infradead.org; Tue, 18 Jun 2013 05:01:03 +0000 Received: by mail-pb0-f47.google.com with SMTP id rr13so3502921pbb.20 for ; Mon, 17 Jun 2013 22:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=EnHck4bfGaIAEQxhOmvDfb10SlMZ26aTny8xmGrf1JI=; b=Mh6zm5UsvSpgOmSiOUXH3EEkIHJQMIu8IbrxVQti+TYvRobUCxn9mo7Q+oYwbCKu1b feeBmlGYTRvtplJqpah2dH5kokipwsl34iPx+hJ7lpw3DazhYgs1kYs6buaHrqK2lVeD n+3pRf/HNd8hCqHKWXZZzAgI7MmaGwGI7XDJPBaj474B5SbE514MFLpsaPGyKHs3e1vv d/bdK6EfzNqDtKs0KV6l738uGrw5DFnbd1EIcJMtR8pW23o5ZbP3OBhV0LrXXXp64Yu7 8l/zhf9WfFSnQ517BUXChMZIJnVi+exMbu1WN698cFgjTkXGRsxodbfHy04MK8MxZIv+ w0xQ== X-Received: by 10.66.253.195 with SMTP id ac3mr592708pad.107.1371531641235; Mon, 17 Jun 2013 22:00:41 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id fm2sm17814181pab.13.2013.06.17.22.00.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 22:00:40 -0700 (PDT) From: girishks2000@gmail.com To: spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v1 3/3] spi: s3c64xx: Added support for exynos5440 spi Date: Tue, 18 Jun 2013 10:30:11 +0530 Message-Id: <51bfe978.4266420a.3737.352e@mx.google.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1371531611-29031-1-git-send-email-0000-cover-letter.patch> References: <1371531611-29031-1-git-send-email-0000-cover-letter.patch> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130618_010102_969041_01F3F67A X-CRM114-Status: GOOD ( 14.21 ) X-Spam-Score: -1.8 (-) Cc: broonie@kernel.org, Girish K S X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Girish K S 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 --- drivers/spi/spi-s3c64xx.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index eaf9e1c..bd43888 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1608,6 +1608,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", @@ -1636,6 +1645,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);