mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-15 04:19:27 +01:00
ipq806x: enabled dcache support
Change-Id: Ibfb0cfeb2e6b1919f4debc4d689426ee3ba29702 Signed-off-by: Antony Arun T <antothom@codeaurora.org>
This commit is contained in:
parent
2281952673
commit
0ecdac3fea
3 changed files with 15 additions and 3 deletions
|
|
@ -343,12 +343,12 @@ void report_l2err(u32 l2esr)
|
|||
}
|
||||
#endif
|
||||
|
||||
void enable_caches(void)
|
||||
__weak void enable_caches(void)
|
||||
{
|
||||
icache_enable();
|
||||
}
|
||||
|
||||
void disable_caches(void)
|
||||
__weak void disable_caches(void)
|
||||
{
|
||||
icache_disable();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -968,3 +968,15 @@ void clear_l2cache_err(void)
|
|||
set_l2_indirect_reg(L2ESR_IND_ADDR, val);
|
||||
#endif
|
||||
}
|
||||
|
||||
void enable_caches(void)
|
||||
{
|
||||
icache_enable();
|
||||
dcache_enable();
|
||||
}
|
||||
|
||||
void disable_caches(void)
|
||||
{
|
||||
icache_disable();
|
||||
dcache_disable();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ typedef struct {
|
|||
* Cache flush and invalidation based on L1 cache, so the cache line
|
||||
* size is configured to 64 */
|
||||
#define CONFIG_SYS_CACHELINE_SIZE 64
|
||||
#define CONFIG_SYS_DCACHE_OFF
|
||||
/*#define CONFIG_SYS_DCACHE_OFF*/
|
||||
|
||||
/* Enabling this flag will report any L2 errors.
|
||||
* By default we are disabling it */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue