From patchwork Thu Apr 28 06:37:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 66850 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp40922qge; Wed, 27 Apr 2016 23:37:49 -0700 (PDT) X-Received: by 10.194.95.40 with SMTP id dh8mr14331135wjb.146.1461825469398; Wed, 27 Apr 2016 23:37:49 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id jo9si8927686wjc.10.2016.04.27.23.37.49; Wed, 27 Apr 2016 23:37:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 89FCCA786B; Thu, 28 Apr 2016 08:37:47 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IXwV6DVrdHZ4; Thu, 28 Apr 2016 08:37:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B5501A7854; Thu, 28 Apr 2016 08:37:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CB145A7861 for ; Thu, 28 Apr 2016 08:37:42 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SaXKVT9z3LPJ for ; Thu, 28 Apr 2016 08:37:42 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-09.nifty.com (conuserg-09.nifty.com [210.131.2.76]) by theia.denx.de (Postfix) with ESMTPS id 0A3B4A784C for ; Thu, 28 Apr 2016 08:37:38 +0200 (CEST) Received: from grover.sesame (FL1-119-242-215-193.osk.mesh.ad.jp [119.242.215.193]) (authenticated) by conuserg-09.nifty.com with ESMTP id u3S6bKPr032061; Thu, 28 Apr 2016 15:37:24 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u3S6bKPr032061 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1461825445; bh=F4NNljQAP5sQMD5mVPW6vZawjOMTHSJIgD9w/EHB9p4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JLKKqcYzmJCXpQsBvPjEDAXVfEsQVnoqLWeeGQi/ix0tOifp+ikXR0BXvQYc/Fx8H ay0EW5DMxM7lp+jehozsWbrRCw+cvRDZ5RHKfxqSNmLCN2IgAf960qjMaJgYg6vIrn +vvhxTWyoYrl5EQm7t0HQt/2zPCh/O0r7Hh7SwvvIZfPrDBgHbTmlOQZFNyeYfm8V3 ouQU/iDR2bPvjbzMCAYNF+0GSVuvubHKcLZnPUPLvDnhRoJkg8ifwxP9KT23ZwMikS 1GerlV2uGAZSatc4tYCtGfXZYhdWWukWfLiz+Nt5wFcMq5mOeEEuf8JSzMCXM1jKEM NOZ1WUe9qCsqg== X-Nifty-SrcIP: [119.242.215.193] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 28 Apr 2016 15:37:14 +0900 Message-Id: <1461825436-2915-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461825436-2915-1-git-send-email-yamada.masahiro@socionext.com> References: <1461825436-2915-1-git-send-email-yamada.masahiro@socionext.com> Subject: [U-Boot] [PATCH 2/4] ARM: uniphier: enable Peripherl clock to use UART in SPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This is needed to use UART on SPL. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/early-clk/early-clk-ld20.c | 4 ++++ 1 file changed, 4 insertions(+) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/arch/arm/mach-uniphier/early-clk/early-clk-ld20.c b/arch/arm/mach-uniphier/early-clk/early-clk-ld20.c index 37adb37..5201a55 100644 --- a/arch/arm/mach-uniphier/early-clk/early-clk-ld20.c +++ b/arch/arm/mach-uniphier/early-clk/early-clk-ld20.c @@ -21,6 +21,10 @@ int uniphier_ld20_early_clk_init(const struct uniphier_board_data *bd) writel(tmp, SC_RSTCTRL7); /* provide clocks */ + tmp = readl(SC_CLKCTRL4); + tmp |= SC_CLKCTRL4_PERI; + writel(tmp, SC_CLKCTRL4); + tmp = readl(SC_CLKCTRL7); tmp |= SC_CLKCTRL7_UMCSB | SC_CLKCTRL7_UMC32 | SC_CLKCTRL7_UMC31 | SC_CLKCTRL7_UMC30;