blackfin:dma: rename bfin_dma_5xx.c to bfin_dma.c
authorBob Liu <lliubbo@gmail.com>
Mon, 19 Mar 2012 05:50:27 +0000 (13:50 +0800)
committerBob Liu <lliubbo@gmail.com>
Wed, 21 Mar 2012 03:00:10 +0000 (11:00 +0800)
bfin_dma_5xx is not a generic name for all blackfin chips.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/kernel/Makefile
arch/blackfin/kernel/bfin_dma.c [moved from arch/blackfin/kernel/bfin_dma_5xx.c with 98% similarity]

index 1f88edd..9a0d6d7 100644 (file)
@@ -7,7 +7,7 @@ extra-y := init_task.o vmlinux.lds
 obj-y := \
        entry.o process.o bfin_ksyms.o ptrace.o setup.o signal.o \
        sys_bfin.o traps.o irqchip.o dma-mapping.o flat.o \
-       fixed_code.o reboot.o bfin_gpio.o bfin_dma_5xx.o \
+       fixed_code.o reboot.o bfin_gpio.o bfin_dma.o \
        exception.o dumpstack.o
 
 ifeq ($(CONFIG_GENERIC_CLOCKEVENTS),y)
similarity index 98%
rename from arch/blackfin/kernel/bfin_dma_5xx.c
rename to arch/blackfin/kernel/bfin_dma.c
index 71dbaa4..40c2ed6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * bfin_dma_5xx.c - Blackfin DMA implementation
+ * bfin_dma.c - Blackfin DMA implementation
  *
  * Copyright 2004-2008 Analog Devices Inc.
  *
@@ -218,6 +218,9 @@ int blackfin_dma_suspend(void)
                        dma_ch[i].saved_peripheral_map = dma_ch[i].regs->peripheral_map;
        }
 
+#if ANOMALY_05000480
+       bfin_write_DMAC_TC_PER(0x0);
+#endif
        return 0;
 }
 
@@ -231,6 +234,9 @@ void blackfin_dma_resume(void)
                if (i < MAX_DMA_SUSPEND_CHANNELS)
                        dma_ch[i].regs->peripheral_map = dma_ch[i].saved_peripheral_map;
        }
+#if ANOMALY_05000480
+       bfin_write_DMAC_TC_PER(0x0111);
+#endif
 }
 #endif