ARM: rmobile: Repair TMU clock on Gen2
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 19 Sep 2018 14:33:09 +0000 (16:33 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 3 Oct 2018 10:56:12 +0000 (12:56 +0200)
The CPfi/4 is derived from XTAL clock and is not fixed. Undo
the previous commit 7984ac8d1635aebd11175c96b07f937a39f0384d.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
include/configs/rcar-gen2-common.h

index 01583f8cc24cc19e14b89da177bdeb9ee9d77994..d606da8b0ec4bff262d415e0b47b5cfe16af3d3c 100644 (file)
@@ -60,6 +60,6 @@
 #define CONFIG_TMU_TIMER
 #define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER       (TMU_BASE + 0xc)        /* TCNT0 */
-#define CONFIG_SYS_TIMER_RATE          (32500000 / 4)          /* CP/4 */
+#define CONFIG_SYS_TIMER_RATE          (CONFIG_SYS_CLK_FREQ / 8)
 
 #endif /* __RCAR_GEN2_COMMON_H */