]> git.sur5r.net Git - u-boot/commitdiff
arm: koelsch: Disable TMU0 before OS boot
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 11 Oct 2013 05:49:04 +0000 (14:49 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 15 Jan 2014 23:07:20 +0000 (08:07 +0900)
On U-boot uses TMU0 as timer, but TMU0 does not use on linux kernel
and other.
This disables TMU0 at the request of from kernel user.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/koelsch/koelsch.c

index 89f5c91c636bf7174b7533ebc79698def41e8003..32d3b584bce1059f1eb8808da37f845937fbf364 100644 (file)
@@ -253,6 +253,12 @@ int board_early_init_f(void)
        return 0;
 }
 
+void arch_preboot_os(void)
+{
+       /* Disable TMU0 */
+       mstp_setbits_le32(MSTPSR1, SMSTPCR1, TMU0_MSTP125);
+}
+
 /* LSI pin pull-up control */
 #define PUPR5 0xe6060114
 #define PUPR5_ETH 0x3FFC0000