From: michal.simek@xilinx.com (Michal Simek) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] zynq: Enable dcache support Date: Fri, 3 Jan 2014 10:42:09 +0100 [thread overview] Message-ID: <7bfa25088eeec1176f0fad0f3e018837f2feb116.1388742126.git.michal.simek@xilinx.com> (raw) In-Reply-To: <521bc636ed31ff2958f8c95417b09036a523782c.1388742126.git.michal.simek@xilinx.com> Enable dcache. Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- arch/arm/cpu/armv7/zynq/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 1.8.2.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140103/c14c41fa/attachment.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Michal Simek <michal.simek@xilinx.com> To: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/2] zynq: Enable dcache support Date: Fri, 3 Jan 2014 10:42:09 +0100 [thread overview] Message-ID: <7bfa25088eeec1176f0fad0f3e018837f2feb116.1388742126.git.michal.simek@xilinx.com> (raw) In-Reply-To: <521bc636ed31ff2958f8c95417b09036a523782c.1388742126.git.michal.simek@xilinx.com> Enable dcache. Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- arch/arm/cpu/armv7/zynq/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 1.8.2.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140103/c14c41fa/attachment.pgp>
next prev parent reply other threads:[~2014-01-03 9:42 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-01-03 9:42 [PATCH 1/2] zynq: Do not explicitely enable icache Michal Simek 2014-01-03 9:42 ` [U-Boot] " Michal Simek 2014-01-03 9:42 ` Michal Simek [this message] 2014-01-03 9:42 ` [U-Boot] [PATCH 2/2] zynq: Enable dcache support Michal Simek 2014-01-03 12:52 ` [PATCH 1/2] zynq: Do not explicitely enable icache Arnd Bergmann 2014-01-03 12:52 ` [U-Boot] " Arnd Bergmann 2014-01-03 13:34 ` Michal Simek 2014-01-03 14:21 ` Russell King - ARM Linux 2014-01-03 14:21 ` [U-Boot] " Russell King - ARM Linux
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=7bfa25088eeec1176f0fad0f3e018837f2feb116.1388742126.git.michal.simek@xilinx.com \ --to=michal.simek@xilinx.com \ --cc=linux-arm-kernel@lists.infradead.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.