mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
dm: mips: Fix lb60 WDT control
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>
This commit is contained in:
parent
e66443fdb5
commit
36d0a42b68
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue