]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: lager: Disable TMU0 before OS boot
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 11 Oct 2013 06:00:37 +0000 (15:00 +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/lager/lager.c

index cdd5b32135785f6886ea4c29d2c35ebd45716d7f..ad5289a23b9abe86804fca359040ca99a8025e2d 100644 (file)
@@ -254,6 +254,12 @@ int board_early_init_f(void)
        return 0;
 }
 
+void arch_preboot_os(void)
+{
+       /* Disable TMU0 */
+       mstp_setbits_le32(MSTPSR1, SMSTPCR1, TMU0_MSTP125);
+}
+
 DECLARE_GLOBAL_DATA_PTR;
 int board_init(void)
 {