Skip to content

Commit

Permalink
sh: Fixup TMU_TOCR definition for SH7300.
Browse files Browse the repository at this point in the history
SH7300 has a different TMU_TOCR, make the TMU code work again.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Sep 27, 2006
1 parent 3530570 commit d95fb13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/asm-sh/cpu-sh3/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
* ---------------------------------------------------------------------------
*/

#if !defined(CONFIG_CPU_SUBTYPE_SH7727)
#define TMU_TOCR 0xfffffe90 /* Byte access */
#endif

#if defined(CONFIG_CPU_SUBTYPE_SH7300) || defined(CONFIG_CPU_SUBTYPE_SH7710)
#define TMU_TSTR 0xa412fe92 /* Byte access */

Expand All @@ -39,9 +43,6 @@
#define TMU2_TCR 0xa412feb4 /* Word access */

#else
#if !defined(CONFIG_CPU_SUBTYPE_SH7727)
#define TMU_TOCR 0xfffffe90 /* Byte access */
#endif
#define TMU_TSTR 0xfffffe92 /* Byte access */

#define TMU0_TCOR 0xfffffe94 /* Long access */
Expand Down

0 comments on commit d95fb13

Please sign in to comment.