mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 03:51:31 +00:00
mpc85xx: fix interrupt init to not affect watchdog
TCR watchdog bit are overwritten when dec interrupt is enabled. This has been fixed with this patch. Signed-off-by: Rainer Boschung <rainer.boschung@keymile.com> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
fb5368789a
commit
3345d18d5b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ int interrupt_init_cpu(unsigned int *decrementer_count)
|
||||||
*decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
|
*decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
|
||||||
|
|
||||||
/* PIE is same as DIE, dec interrupt enable */
|
/* PIE is same as DIE, dec interrupt enable */
|
||||||
mtspr(SPRN_TCR, TCR_PIE);
|
mtspr(SPRN_TCR, mfspr(SPRN_TCR) | TCR_PIE);
|
||||||
|
|
||||||
#ifdef CONFIG_INTERRUPTS
|
#ifdef CONFIG_INTERRUPTS
|
||||||
pic->iivpr1 = 0x810001; /* 50220 enable ecm interrupts */
|
pic->iivpr1 = 0x810001; /* 50220 enable ecm interrupts */
|
||||||
|
|
Loading…
Add table
Reference in a new issue