Skip to content

Commit

Permalink
ARM: davinci: fix cache flush build error
Browse files Browse the repository at this point in the history
The TNET variant of DaVinci compiles some code that it shares
with other DaVinci variants, however it has a V6 CPU rather than
an ARM926T, thus the hardcoded call to arm926_flush_kern_cache_all()
in sleep.S will obviously fail, and we need to build with the
v6_flush_kern_cache_all() call instead. This was triggered by
manually altering the DaVinci config to build the TNET version.

Cc: Dave Martin <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
Cc: [email protected]
  • Loading branch information
linusw authored and nsekhar committed Sep 7, 2011
1 parent c087480 commit 897a6a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/arm/mach-davinci/sleep.S
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ ddr2clk_stop_done:
ENDPROC(davinci_ddr_psc_config)

CACHE_FLUSH:
.word arm926_flush_kern_cache_all
#ifdef CONFIG_CPU_V6
.word v6_flush_kern_cache_all
#else
.word arm926_flush_kern_cache_all
#endif

ENTRY(davinci_cpu_suspend_sz)
.word . - davinci_cpu_suspend
Expand Down

0 comments on commit 897a6a1

Please sign in to comment.