aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf609/boards/ezkit.c1
-rw-r--r--arch/blackfin/mach-bf609/include/mach/anomaly.h3
-rw-r--r--arch/blackfin/mach-bf609/pm.c9
-rw-r--r--arch/blackfin/mach-common/ints-priority.c6
4 files changed, 9 insertions, 10 deletions
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c
index 36fbdacc0b76..c2cf1ae31189 100644
--- a/arch/blackfin/mach-bf609/boards/ezkit.c
+++ b/arch/blackfin/mach-bf609/boards/ezkit.c
@@ -688,7 +688,6 @@ void bf609_nor_flash_exit(struct platform_device *dev)
688 peripheral_free_list(pins); 688 peripheral_free_list(pins);
689 689
690 bfin_write32(SMC_GCTL, 0); 690 bfin_write32(SMC_GCTL, 0);
691 return 0;
692} 691}
693 692
694static struct physmap_flash_data ezkit_flash_data = { 693static struct physmap_flash_data ezkit_flash_data = {
diff --git a/arch/blackfin/mach-bf609/include/mach/anomaly.h b/arch/blackfin/mach-bf609/include/mach/anomaly.h
index 51d78657cf31..7a07374308ac 100644
--- a/arch/blackfin/mach-bf609/include/mach/anomaly.h
+++ b/arch/blackfin/mach-bf609/include/mach/anomaly.h
@@ -67,6 +67,7 @@
67#define ANOMALY_05000158 (0) 67#define ANOMALY_05000158 (0)
68#define ANOMALY_05000189 (0) 68#define ANOMALY_05000189 (0)
69#define ANOMALY_05000198 (0) 69#define ANOMALY_05000198 (0)
70#define ANOMALY_05000220 (0)
70#define ANOMALY_05000230 (0) 71#define ANOMALY_05000230 (0)
71#define ANOMALY_05000231 (0) 72#define ANOMALY_05000231 (0)
72#define ANOMALY_05000244 (0) 73#define ANOMALY_05000244 (0)
@@ -81,7 +82,9 @@
81#define ANOMALY_05000323 (0) 82#define ANOMALY_05000323 (0)
82#define ANOMALY_05000363 (0) 83#define ANOMALY_05000363 (0)
83#define ANOMALY_05000380 (0) 84#define ANOMALY_05000380 (0)
85#define ANOMALY_05000448 (0)
84#define ANOMALY_05000450 (0) 86#define ANOMALY_05000450 (0)
87#define ANOMALY_05000456 (0)
85#define ANOMALY_05000480 (0) 88#define ANOMALY_05000480 (0)
86#define ANOMALY_05000481 (1) 89#define ANOMALY_05000481 (1)
87 90
diff --git a/arch/blackfin/mach-bf609/pm.c b/arch/blackfin/mach-bf609/pm.c
index 0211ebd142c4..dacafc163f76 100644
--- a/arch/blackfin/mach-bf609/pm.c
+++ b/arch/blackfin/mach-bf609/pm.c
@@ -174,11 +174,7 @@ void bfin_hibernate_syscontrol(void)
174 bfin_write32(DPM0_RESTORE5, bfin_read32(DPM0_RESTORE5) | 4); 174 bfin_write32(DPM0_RESTORE5, bfin_read32(DPM0_RESTORE5) | 4);
175} 175}
176 176
177#ifndef CONFIG_BF60x 177#define IRQ_SID(irq) ((irq) - IVG15)
178# define SIC_SYSIRQ(irq) (irq - (IRQ_CORETMR + 1))
179#else
180# define SIC_SYSIRQ(irq) ((irq) - IVG15)
181#endif
182asmlinkage void enter_deepsleep(void); 178asmlinkage void enter_deepsleep(void);
183 179
184__attribute__((l1_text)) 180__attribute__((l1_text))
@@ -314,6 +310,8 @@ static struct syscore_ops smc_pm_syscore_ops = {
314static irqreturn_t test_isr(int irq, void *dev_id) 310static irqreturn_t test_isr(int irq, void *dev_id)
315{ 311{
316 printk(KERN_DEBUG "gpio irq %d\n", irq); 312 printk(KERN_DEBUG "gpio irq %d\n", irq);
313 if (irq == 231)
314 bfin_sec_raise_irq(IRQ_SID(IRQ_SOFT1));
317 return IRQ_HANDLED; 315 return IRQ_HANDLED;
318} 316}
319 317
@@ -323,7 +321,6 @@ static irqreturn_t dpm0_isr(int irq, void *dev_id)
323 bfin_write32(CGU0_STAT, bfin_read32(CGU0_STAT)); 321 bfin_write32(CGU0_STAT, bfin_read32(CGU0_STAT));
324 return IRQ_HANDLED; 322 return IRQ_HANDLED;
325} 323}
326#endif
327 324
328static int __init bf609_init_pm(void) 325static int __init bf609_init_pm(void)
329{ 326{
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c
index 9660d5fdbed4..7ca09ec2ca53 100644
--- a/arch/blackfin/mach-common/ints-priority.c
+++ b/arch/blackfin/mach-common/ints-priority.c
@@ -328,7 +328,7 @@ static void bfin_sec_set_priority(unsigned int sec_int_levels, u8 *sec_int_prior
328 hard_local_irq_restore(flags); 328 hard_local_irq_restore(flags);
329} 329}
330 330
331static void bfin_sec_raise_irq(unsigned int sid) 331void bfin_sec_raise_irq(unsigned int sid)
332{ 332{
333 unsigned long flags = hard_local_irq_save(); 333 unsigned long flags = hard_local_irq_save();
334 334
@@ -434,10 +434,10 @@ void handle_core_fault(unsigned int irq, struct irq_desc *desc)
434 panic("Kernel core hardware error"); 434 panic("Kernel core hardware error");
435 break; 435 break;
436 case IRQ_C0_NMI_L1_PARITY_ERR: 436 case IRQ_C0_NMI_L1_PARITY_ERR:
437 panic("NMI %d occurs unexpectedly"); 437 panic("NMI occurs unexpectedly");
438 break; 438 break;
439 default: 439 default:
440 panic("Core 1 fault %d occurs unexpectedly"); 440 panic("Core 1 fault occurs unexpectedly");
441 } 441 }
442 442
443 raw_spin_unlock(&desc->lock); 443 raw_spin_unlock(&desc->lock);