summaryrefslogtreecommitdiff
path: root/board/renesas
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2013-10-11 14:49:04 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2014-01-16 08:07:20 +0900
commit9f861f0ae23674c3cda4815541f3756e8a5fc8c8 (patch)
tree882cd1c415c17b7d35dfabd038239f487e07d038 /board/renesas
parentbf46e7d8d134521301ff02b6d97e8998aa10a83d (diff)
downloadu-boot-imx-9f861f0ae23674c3cda4815541f3756e8a5fc8c8.zip
u-boot-imx-9f861f0ae23674c3cda4815541f3756e8a5fc8c8.tar.gz
u-boot-imx-9f861f0ae23674c3cda4815541f3756e8a5fc8c8.tar.bz2
arm: koelsch: 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>
Diffstat (limited to 'board/renesas')
-rw-r--r--board/renesas/koelsch/koelsch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/renesas/koelsch/koelsch.c b/board/renesas/koelsch/koelsch.c
index 89f5c91..32d3b58 100644
--- a/board/renesas/koelsch/koelsch.c
+++ b/board/renesas/koelsch/koelsch.c
@@ -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