]> err.no Git - linux-2.6/commitdiff
[POWERPC] 8xx: generic 8xx code arch/powerpc port
authorVitaly Bordug <vbordug@ru.mvista.com>
Wed, 24 Jan 2007 19:41:06 +0000 (22:41 +0300)
committerPaul Mackerras <paulus@samba.org>
Wed, 7 Feb 2007 03:01:02 +0000 (14:01 +1100)
Including support for non-coherent cache, some mm-related things +
relevant field in Kconfig and Makefiles. Also included rheap.o compilation
if 8xx is defined.

Non-coherent mapping were refined and renamed according to Cristoph
Hellwig. Orphaned functions were cleaned up.

[Also removed arch/ppc/kernel/dma-mapping.c, because otherwise
compiling with ARCH=ppc for a non DMA-cache-coherent platform ends up
with two copies of __dma_alloc_coherent etc.
 -- paulus.]

Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Kconfig
arch/powerpc/lib/Makefile
arch/powerpc/lib/dma-noncoherent.c [moved from arch/ppc/kernel/dma-mapping.c with 94% similarity]
arch/ppc/kernel/Makefile

index 54d77a5b59f682f9736645b8966473cd63e62f4c..ce431b4446f0a294656091651f0d2aec47cc21f8 100644 (file)
@@ -173,6 +173,11 @@ config PPC_86xx
        help
          The Freescale E600 SoCs have 74xx cores.
 
+config PPC_8xx
+       bool "Freescale 8xx"
+       select FSL_SOC
+       select 8xx
+
 config 40x
        bool "AMCC 40x"
        select PPC_DCR_NATIVE
@@ -181,8 +186,6 @@ config 44x
        bool "AMCC 44x"
        select PPC_DCR_NATIVE
 
-config 8xx
-       bool "Freescale 8xx"
 
 config E200
        bool "Freescale e200"
@@ -210,6 +213,10 @@ config POWER4
 config 6xx
        bool
 
+# this is temp to handle compat with arch=ppc
+config 8xx
+       bool
+
 # this is temp to handle compat with arch=ppc
 config 83xx
        bool
index a0360ae10d0ccd5db00a1a0ff77b6bde74bd1629..e2d414160c8394061aad1e7f4a434f3edc14911e 100644 (file)
@@ -16,6 +16,7 @@ obj-$(CONFIG_PPC64)   += checksum_64.o copypage_64.o copyuser_64.o \
                           strcase.o
 obj-$(CONFIG_QUICC_ENGINE) += rheap.o
 obj-$(CONFIG_XMON)     += sstep.o
+obj-$(CONFIG_NOT_COHERENT_CACHE)       += dma-noncoherent.o
 
 ifeq ($(CONFIG_PPC64),y)
 obj-$(CONFIG_SMP)      += locks.o
@@ -24,5 +25,6 @@ endif
 
 # Temporary hack until we have migrated to asm-powerpc
 ifeq ($(CONFIG_PPC_MERGE),y)
+obj-$(CONFIG_8xx)      += rheap.o
 obj-$(CONFIG_CPM2)     += rheap.o
 endif
similarity index 94%
rename from arch/ppc/kernel/dma-mapping.c
rename to arch/powerpc/lib/dma-noncoherent.c
index 10fec7363962ed15b6eedcb9b825644f1c2263c0..48f3d13a3de5abba9b35c5ea7e2fd2d95770c622 100644 (file)
  * published by the Free Software Foundation.
  */
 
-#include <linux/module.h>
-#include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
-#include <linux/ptrace.h>
-#include <linux/mman.h>
-#include <linux/mm.h>
-#include <linux/swap.h>
-#include <linux/stddef.h>
-#include <linux/vmalloc.h>
-#include <linux/init.h>
-#include <linux/delay.h>
-#include <linux/bootmem.h>
 #include <linux/highmem.h>
 #include <linux/dma-mapping.h>
-#include <linux/hardirq.h>
-
-#include <asm/pgalloc.h>
-#include <asm/prom.h>
-#include <asm/io.h>
-#include <asm/mmu_context.h>
-#include <asm/pgtable.h>
-#include <asm/mmu.h>
-#include <asm/uaccess.h>
-#include <asm/smp.h>
-#include <asm/machdep.h>
-
-int map_page(unsigned long va, phys_addr_t pa, int flags);
 
 #include <asm/tlbflush.h>
 
index 466437f4bcbb40fa7113faf183b213850e5db6e2..6b4f022111e703fe23a062c4492e718f47b209c6 100644 (file)
@@ -12,7 +12,6 @@ obj-y                         := entry.o traps.o time.o misc.o \
                                        setup.o \
                                        ppc_htab.o
 obj-$(CONFIG_MODULES)          += ppc_ksyms.o
-obj-$(CONFIG_NOT_COHERENT_CACHE)       += dma-mapping.o
 obj-$(CONFIG_PCI)              += pci.o
 obj-$(CONFIG_RAPIDIO)          += rio.o
 obj-$(CONFIG_KGDB)             += ppc-stub.o