public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] dm: mips: Fix lb60 WDT control
@ 2012-07-27 18:58 Marek Vasut
  2012-07-27 18:58 ` [U-Boot] [PATCH 2/3] dm: mips: Fix lb60 timer code Marek Vasut
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Marek Vasut @ 2012-07-27 18:58 UTC (permalink / raw)
  To: u-boot

Write the TSCR register via 32bit write instead of 16bit one.
The register is 32bit wide and bit 16 is being set, triggering
gcc overflow error and making the code broken.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Daniel <zpxu@ingenic.cn>
Cc: Shinya Kuribayashi <skuribay@pobox.com>
Cc: Xiangfu Liu <xiangfu@openmobilefree.net>
---
 arch/mips/cpu/xburst/cpu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/cpu/xburst/cpu.c b/arch/mips/cpu/xburst/cpu.c
index e976341..ddcbfaa 100644
--- a/arch/mips/cpu/xburst/cpu.c
+++ b/arch/mips/cpu/xburst/cpu.c
@@ -62,7 +62,7 @@ void __attribute__((weak)) _machine_restart(void)
 
 	writew(100, &wdt->tdr); /* wdt_set_data(100) */
 	writew(0, &wdt->tcnt); /* wdt_set_count(0); */
-	writew(TCU_TSSR_WDTSC, &tcu->tscr); /* tcu_start_wdt_clock */
+	writel(TCU_TSSR_WDTSC, &tcu->tscr); /* tcu_start_wdt_clock */
 	writeb(readb(&wdt->tcer) | WDT_TCER_TCEN, &wdt->tcer); /* wdt start */
 
 	while (1)
-- 
1.7.10.4

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

end of thread, other threads:[~2012-08-20  5:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-27 18:58 [U-Boot] [PATCH 1/3] dm: mips: Fix lb60 WDT control Marek Vasut
2012-07-27 18:58 ` [U-Boot] [PATCH 2/3] dm: mips: Fix lb60 timer code Marek Vasut
2012-08-19 18:19   ` [U-Boot] [U-Boot-DM] " Daniel Schwierzeck
2012-07-27 18:58 ` [U-Boot] [PATCH 3/3] dm: mips: Fix warnings in lb60 board Marek Vasut
2012-08-19 18:19   ` [U-Boot] [U-Boot-DM] " Daniel Schwierzeck
2012-08-20  5:37     ` Xiangfu Liu
2012-07-30  6:36 ` [U-Boot] [PATCH 1/3] dm: mips: Fix lb60 WDT control Marek Vasut
2012-07-30 10:50   ` Daniel Schwierzeck
2012-08-19 18:19 ` Daniel Schwierzeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox