diff mbox

[U-Boot] dm365: disable cache usage due to coherency issues

Message ID 1313590652-2419-1-git-send-email-nagabhushana.netagunte@ti.com
State Accepted
Commit 98c19aff9524e1d0dd6bf39bf7bde5644f121feb
Headers show

Commit Message

nagabhushana.netagunte@ti.com Aug. 17, 2011, 2:17 p.m. UTC
From: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>

there are cache coherency issues when using the DAVINCI Ethernet driver,
hence caches cant be used for d365 u-boot. As per new cache management
framework,if the caches are not used in u-boot, it needs to be explicitly
indicated through macros in config file. CACHE disable is  indicated by
the following macro definitions in config file,

1. CONFIG_SYS_ICACHE_OFF
2. CONFIG_SYS_DCACHE_OFF
3. CONFIG_SYS_L2CACHE_OFF

Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
---
 include/configs/davinci_dm365evm.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Comments

nagabhushana.netagunte@ti.com Aug. 31, 2011, 5:42 a.m. UTC | #1
Denk,

As there are no comments, can you please ACK this patch?

Regards,
Nag

On Wed, Aug 17, 2011 at 19:47:32, Netagunte, Nagabhushana wrote:
> From: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
> 
> there are cache coherency issues when using the DAVINCI Ethernet driver, hence caches cant be used for d365 u-boot. As per new cache management framework,if the caches are not used in u-boot, it needs to be explicitly indicated through macros in config file. CACHE disable is  indicated by the following macro definitions in config file,
> 
> 1. CONFIG_SYS_ICACHE_OFF
> 2. CONFIG_SYS_DCACHE_OFF
> 3. CONFIG_SYS_L2CACHE_OFF
> 
> Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
> ---
>  include/configs/davinci_dm365evm.h |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/include/configs/davinci_dm365evm.h b/include/configs/davinci_dm365evm.h
> index 2825050..172a852 100644
> --- a/include/configs/davinci_dm365evm.h
> +++ b/include/configs/davinci_dm365evm.h
> @@ -33,6 +33,9 @@
>  #define CONFIG_SYS_HZ_CLOCK		24000000	/* timer0 freq */
>  #define CONFIG_SYS_HZ			1000
>  #define CONFIG_SOC_DM365
> +#define CONFIG_SYS_ICACHE_OFF
> +#define CONFIG_SYS_DCACHE_OFF
> +#define CONFIG_SYS_L2CACHE_OFF
>  
>  /* Memory Info */
>  #define CONFIG_NR_DRAM_BANKS		1
> --
> 1.6.2.4
> 
>
diff mbox

Patch

diff --git a/include/configs/davinci_dm365evm.h b/include/configs/davinci_dm365evm.h
index 2825050..172a852 100644
--- a/include/configs/davinci_dm365evm.h
+++ b/include/configs/davinci_dm365evm.h
@@ -33,6 +33,9 @@ 
 #define CONFIG_SYS_HZ_CLOCK		24000000	/* timer0 freq */
 #define CONFIG_SYS_HZ			1000
 #define CONFIG_SOC_DM365
+#define CONFIG_SYS_ICACHE_OFF
+#define CONFIG_SYS_DCACHE_OFF
+#define CONFIG_SYS_L2CACHE_OFF
 
 /* Memory Info */
 #define CONFIG_NR_DRAM_BANKS		1