Message ID | 7bfa25088eeec1176f0fad0f3e018837f2feb116.1388742126.git.michal.simek@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6E032C02DC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Jan 2014 09:43:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8923B20134 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Jan 2014 09:43:36 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9910820035 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Jan 2014 09:43:35 +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 1Vz1HN-0000D1-1U; Fri, 03 Jan 2014 09:42:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1HE-0002ac-VS; Fri, 03 Jan 2014 09:42:48 +0000 Received: from mail-ea0-f174.google.com ([209.85.215.174]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1H5-0002ZN-4W for linux-arm-kernel@lists.infradead.org; Fri, 03 Jan 2014 09:42:40 +0000 Received: by mail-ea0-f174.google.com with SMTP id b10so6514933eae.5 for <linux-arm-kernel@lists.infradead.org>; Fri, 03 Jan 2014 01:42:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=4f3tMzCimwYHPLisv6Mni3BVw4bc3mmpMmSUDFymgEY=; b=GY0bQQlI9OSpQe+JidBRaLmWV6R6eXgoBJGtepEJJKpmHsmdqYsZnTmeR1Yp7Yaivf 6+3/Xh54Dphkhe56v+EMVH1GBbUe929ca/HWAnKiTBYqidGnMk4+PaslxhvV4TwXN6ES Umg9OcBDyd9/F36jmA0Sfd2J+qbBEjkz2s0hf+jghx1oZKnPXYVspvQkU2HOuaGGGV6f eiF74EU9TIMmEOwCr0eb4lucYMARZigZ/MsqNRDC13LUdVu6KRYrUXQDtLCmNTRZ+XPj X22qPsfh8cvjndsXA54oDzWBfm2iCN2XmIN4qA+AmVWf/Z6DR4QfvADhp0oS+XTindPX lmsQ== X-Gm-Message-State: ALoCoQmkwTUar5Ddh9jtawFkd4ENGHTd6Cr8c+1Y1Xl6YwrH+a4Qrs8t1/NLH3/5Flie0UkDFEUG X-Received: by 10.14.251.132 with SMTP id b4mr1325478ees.78.1388742135669; Fri, 03 Jan 2014 01:42:15 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id m1sm143434357eeg.0.2014.01.03.01.42.14 for <multiple recipients> (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 03 Jan 2014 01:42:14 -0800 (PST) From: Michal Simek <michal.simek@xilinx.com> To: linux-arm-kernel@lists.infradead.org, u-boot@lists.denx.de, Albert Aribaud <albert.u.boot@aribaud.net> Subject: [PATCH 2/2] zynq: Enable dcache support Date: Fri, 3 Jan 2014 10:42:09 +0100 Message-Id: <7bfa25088eeec1176f0fad0f3e018837f2feb116.1388742126.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <521bc636ed31ff2958f8c95417b09036a523782c.1388742126.git.michal.simek@xilinx.com> References: <521bc636ed31ff2958f8c95417b09036a523782c.1388742126.git.michal.simek@xilinx.com> In-Reply-To: <521bc636ed31ff2958f8c95417b09036a523782c.1388742126.git.michal.simek@xilinx.com> References: <521bc636ed31ff2958f8c95417b09036a523782c.1388742126.git.michal.simek@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140103_044239_336395_61849BFB X-CRM114-Status: GOOD ( 11.49 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0667702340045523316==" Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS, 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 |
diff --git a/arch/arm/cpu/armv7/zynq/cpu.c b/arch/arm/cpu/armv7/zynq/cpu.c index 9af340e..c771759 100644 --- a/arch/arm/cpu/armv7/zynq/cpu.c +++ b/arch/arm/cpu/armv7/zynq/cpu.c @@ -46,3 +46,11 @@ void reset_cpu(ulong addr) while (1) ; } + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif
Enable dcache. Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- arch/arm/cpu/armv7/zynq/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 1.8.2.3