From patchwork Fri Jan 3 10:10:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 3431081 Return-Path: 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 7C200C02DC for ; Fri, 3 Jan 2014 10:59:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ACEAA2012B for ; Fri, 3 Jan 2014 10:59:06 +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 B0BE720127 for ; Fri, 3 Jan 2014 10:59:05 +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 1Vz1le-0008I7-Sj; Fri, 03 Jan 2014 10:14:16 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1kn-0003P5-4p; Fri, 03 Jan 2014 10:13:21 +0000 Received: from mail-ea0-f172.google.com ([209.85.215.172]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vz1ja-0003Bq-IL for linux-arm-kernel@lists.infradead.org; Fri, 03 Jan 2014 10:12:09 +0000 Received: by mail-ea0-f172.google.com with SMTP id q10so5712419ead.31 for ; Fri, 03 Jan 2014 02:11:44 -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:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=c3L5/obp+Mkd2agwRIEKS9nMfsCZ9uWJxp5IHzt7zv8=; b=N1PcuhrK+m/CEuBHAUE4oFAUaCzGN5Z34/iIB9i0PVtv7As4jo87BZXcSBJSr+ZPVf 4x2Y9kXfFa+QzEB2inIcwtLNXhXu8YmYXTWyNZMuC0i9pyiMSw4SafpOgokIrZDTXhYO iS8qRPKYku64Wu3vjH5unaC5hZ4fy6B57AHf2IxssRekE9pg45gpStaOSch4zq6atyUa w7babLiSTofNzrTxmkuGA1AMTh4i54+Mr7Eg8cSSAOk+aWp1z4iI5yufopl1usmqPuFs gL/I0xHoNNNySok6unkqOQ4y4rrYkxEnZJKesycU0UyY7d3exu+1fXammuwHhxvFdR/9 Tsvg== X-Gm-Message-State: ALoCoQmW/VW/xu99v1SXEmU9HEbj1/OXmZbGB1Qtath1z5RoX9u/IQyopdAsv9kTj+M5DlQQ2xxC X-Received: by 10.15.56.7 with SMTP id x7mr20267307eew.43.1388743904652; Fri, 03 Jan 2014 02:11:44 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id 4sm143602651eed.14.2014.01.03.02.11.42 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 03 Jan 2014 02:11:43 -0800 (PST) From: Michal Simek To: Michal Simek , u-boot@lists.denx.de, Joe Hershberger , linux-arm-kernel@lists.infradead.org, Albert Aribaud , Tom Rini Subject: [PATCH v1 11/24] zynq: Enable cache options Date: Fri, 3 Jan 2014 11:10:56 +0100 Message-Id: <911de6ba9b539c7ad2cb06a1a613544ca718c73b.1388743861.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140103_051206_863629_28C7413F X-CRM114-Status: GOOD ( 11.56 ) X-Spam-Score: -1.9 (-) Cc: Jagannadha Sutradharudu Teki 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=-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 From: Jagannadha Sutradharudu Teki - Enable cache command - Turn-off L2 cache - Turn-on D-cache Signed-off-by: Jagannadha Sutradharudu Teki Signed-off-by: Michal Simek --- Changes in v1: None include/configs/zynq.h | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 1.8.2.3 diff --git a/include/configs/zynq.h b/include/configs/zynq.h index 44ae5ed..3938b54 100644 --- a/include/configs/zynq.h +++ b/include/configs/zynq.h @@ -16,6 +16,16 @@ # define CONFIG_CPU_FREQ_HZ 800000000 #endif +/* Cache options */ +#define CONFIG_CMD_CACHE +#define CONFIG_SYS_CACHELINE_SIZE 32 + +#define CONFIG_SYS_L2CACHE_OFF +#ifndef CONFIG_SYS_L2CACHE_OFF +# define CONFIG_SYS_L2_PL310 +# define CONFIG_SYS_PL310_BASE 0xf8f02000 +#endif + /* Serial drivers */ #define CONFIG_BAUDRATE 115200 /* The following table includes the supported baudrates */