summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2013-10-11 15:00:37 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2014-01-16 08:07:20 +0900
commit16bf36f77931393965c8a2fdd62f441f93de0b67 (patch)
tree86ee43b925d08bc82c09179682b24e8d7fd8163f
parent9f861f0ae23674c3cda4815541f3756e8a5fc8c8 (diff)
downloadu-boot-imx-16bf36f77931393965c8a2fdd62f441f93de0b67.zip
u-boot-imx-16bf36f77931393965c8a2fdd62f441f93de0b67.tar.gz
u-boot-imx-16bf36f77931393965c8a2fdd62f441f93de0b67.tar.bz2
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 <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
-rw-r--r--board/renesas/lager/lager.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c
index cdd5b32..ad5289a 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)
{