2 * Copyright 2007-2009 Analog Devices Inc.
3 * Graff Yang <graf.yang@analog.com>
5 * Licensed under the GPL-2 or later.
8 #include <asm/blackfin.h>
10 #define SIC_SYSIRQ(irq) (irq - (IRQ_CORETMR + 1))
14 void platform_cpu_die(void)
16 unsigned long iwr
[2] = {0, 0};
17 unsigned long bank
= SIC_SYSIRQ(IRQ_SUPPLE_0
) / 32;
18 unsigned long bit
= 1 << (SIC_SYSIRQ(IRQ_SUPPLE_0
) % 32);
24 /* disable core timer */
27 /* clear ipi interrupt IRQ_SUPPLE_0 */
28 bfin_write_SICB_SYSCR(bfin_read_SICB_SYSCR() | (1 << (10 + 1)));
31 coreb_sleep(iwr
[0], iwr
[1], 0);