From: Nobuhiro Iwamatsu Date: Fri, 11 Oct 2013 06:00:37 +0000 (+0900) Subject: arm: lager: Disable TMU0 before OS boot X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=16bf36f77931393965c8a2fdd62f441f93de0b67;p=u-boot.git arm: lager: Disable TMU0 before OS boot 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 Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c index cdd5b32135..ad5289a23b 100644 --- a/board/renesas/lager/lager.c +++ b/board/renesas/lager/lager.c @@ -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) {