From patchwork Fri Oct 18 05:33:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cao Minh Hiep X-Patchwork-Id: 3064651 Return-Path: X-Original-To: patchwork-linux-sh@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 9C5C09F243 for ; Fri, 18 Oct 2013 05:33:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C689C20480 for ; Fri, 18 Oct 2013 05:33:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8BC082047C for ; Fri, 18 Oct 2013 05:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751367Ab3JRFdH (ORCPT ); Fri, 18 Oct 2013 01:33:07 -0400 Received: from m119.secure.ne.jp ([158.199.161.240]:48794 "HELO m119.secure.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751228Ab3JRFdG (ORCPT ); Fri, 18 Oct 2013 01:33:06 -0400 Received: (qmail 71321 invoked from network); 18 Oct 2013 14:33:04 +0900 Received: from unknown (HELO localhost) (61.118.107.10) by 0 with SMTP; 18 Oct 2013 14:33:04 +0900 From: Cao Minh Hiep To: linux-sh@vger.kernel.org, horms@verge.net.au Cc: magnus.damm@gmail.com, kuninori.morimoto.gx@renesas.com, yoshihiro.shimoda.uh@renesas.com, cm-hiep@jinso.co.jp Subject: [PATCH 1/2 v2] ARM: shmobile: r8a7790: add QSPI support Date: Fri, 18 Oct 2013 14:33:03 +0900 Message-Id: <1382074384-24975-2-git-send-email-cm-hiep@jinso.co.jp> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1382074384-24975-1-git-send-email-cm-hiep@jinso.co.jp> References: <1382074384-24975-1-git-send-email-cm-hiep@jinso.co.jp> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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: Hiep Cao Minh Adds clock support for QSPI on the r8a7790. Signed-off-by: Hiep Cao Minh --- arch/arm/mach-shmobile/clock-r8a7790.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index a64f965..ba6f258 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -182,7 +182,7 @@ static struct clk div6_clks[DIV6_NR] = { /* MSTP */ enum { - MSTP931, MSTP930, MSTP929, MSTP928, + MSTP931, MSTP930, MSTP929, MSTP928, MSTP917, MSTP813, MSTP726, MSTP725, MSTP724, MSTP723, MSTP722, MSTP721, MSTP720, MSTP717, MSTP716, @@ -198,6 +198,7 @@ static struct clk mstp_clks[MSTP_NR] = { [MSTP930] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 30, 0), /* I2C1 */ [MSTP929] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 29, 0), /* I2C2 */ [MSTP928] = SH_CLK_MSTP32(&hp_clk, SMSTPCR9, 28, 0), /* I2C3 */ + [MSTP917] = SH_CLK_MSTP32(&qspi_clk, SMSTPCR9, 17, 0), /* QSPI */ [MSTP813] = SH_CLK_MSTP32(&p_clk, SMSTPCR8, 13, 0), /* Ether */ [MSTP726] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 26, 0), /* LVDS0 */ [MSTP725] = SH_CLK_MSTP32(&zx_clk, SMSTPCR7, 25, 0), /* LVDS1 */ @@ -296,6 +297,7 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("ee220000.mmcif", &mstp_clks[MSTP305]), CLKDEV_DEV_ID("sh_mmcif.1", &mstp_clks[MSTP305]), CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]), + CLKDEV_DEV_ID("qspi.0", &mstp_clks[MSTP917]), }; #define R8A7790_CLOCK_ROOT(e, m, p0, p1, p30, p31) \