All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 1/4] arm: lager: Disable TMU0 before OS boots
@ 2014-01-08  1:32 Nobuhiro Iwamatsu
  2014-01-08  1:32 ` [U-Boot] [PATCH v2 2/4] arm: lager: Add support QSPI device and enable boot from SPI flash Nobuhiro Iwamatsu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2014-01-08  1:32 UTC (permalink / raw)
  To: u-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>
---
 v2: no changes.

 board/renesas/lager/lager.c | 6 ++++++
 1 file changed, 6 insertions(+)

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)
 {
-- 
1.8.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-08  1:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-08  1:32 [U-Boot] [PATCH v2 1/4] arm: lager: Disable TMU0 before OS boots Nobuhiro Iwamatsu
2014-01-08  1:32 ` [U-Boot] [PATCH v2 2/4] arm: lager: Add support QSPI device and enable boot from SPI flash Nobuhiro Iwamatsu
2014-01-08  1:32 ` [U-Boot] [PATCH v2 3/4] arm: koelsch: Disable TMU0 before OS boots Nobuhiro Iwamatsu
2014-01-08  1:32 ` [U-Boot] [PATCH v2 4/4] arm: koelsch: Add support QSPI device and enable boot from SPI flash Nobuhiro Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.